mysql> grant all privileges on *.* to root@'localhost' identified by '密码';
mysql> flush privileges;

# 或者

mysql> grant all privileges on *.* to root@'%' identified by '密码';
mysql> flush privileges;

 

posted on 2019-10-20 21:52  網絡蛀蟲  阅读(1157)  评论(0编辑  收藏  举报