查看mysql中的用户和密码
use mysql;
select host,user,password from user;
设置密码
set password for root@localhost=password('root');
创建用户
create user 'root'@'172.18.23.201' identified by 'root';
grant all privileges on root.* to 'root'@'172.18.23.201' identified by 'root';
flush privileges;
如果你有问题,欢迎给我留言。
如果这篇博客对你有帮助,请给我一个赞👍
Life is fantastic..

浙公网安备 33010602011771号