MySQL常用命令

一、创建账号

mysql用户权限:
MySQL [(none)]> create user 'monitoring'@'x.x.x.%' IDENTIFIED BY 'vdhvs8PMT1X5uWS@';

MySQL [mysql]> update mysql.user SET MAX_USER_CONNECTIONS='3' where User='monitoring'; #设置最大连接数限制

MySQL [(none)]> GRANT SELECT, PROCESS, SUPER, REPLICATION CLIENT, RELOAD ON *.* TO 'monitoring'@'x.x.x.%';

你可能感兴趣的:(数据库,mysql,数据库,java)