时间:2021-07-01 10:21:17 帮助过:4人阅读
创建用户 create user 'username'@'host' identified by 'password';
用户授权 grant all on databasename.tablename to 'username'@'hostname' identified by 'password';
生效命令 flush privileges;
设置任何机器都可以通过已有用户名访问mysql数据库 uodate user set host='%' where user='username';