mysql创建用户:需要有root权限的账号
示例:create user coolcloudstat@'%' identified by 'password';
ps:一定要加上:flush privileges;
删除用户:DELETE FROM mysql.user WHERE User="coolcloudstat1" and Host="%";
同样要加上:flush privileges;
增加用户权限:
grant all privileges on statanalyse.* to coolcloudstat@'%' identified by 'password';
示例:create user coolcloudstat@'%' identified by 'password';
ps:一定要加上:flush privileges;
删除用户:DELETE FROM mysql.user WHERE User="coolcloudstat1" and Host="%";
同样要加上:flush privileges;
增加用户权限:
grant all privileges on statanalyse.* to coolcloudstat@'%' identified by 'password';