mysql 创建用户

use mysql;
insert into user(Host,User,Password) values ("%","autotest",password("autotest"));
flush privileges;
grant all privileges on autotest.* to [email protected] identified by 'autotest';
flush privileges;

你可能感兴趣的:(mysql)