ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456'; CREATE USER 'root'@'%' IDENTIFIED BY '你的密码'; grant all privileges on *.* to 'root'@'%'; ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456'; flush privileges;
1 2 3 4 5 6 7
CREATE USER 'lzz'@'%' IDENTIFIED BY '123456';
grant all privileges on *.* to 'lzz'@'%' with grant option;