美文网首页
Mysql:access denied for user roo

Mysql:access denied for user roo

作者: 程序员小杰 | 来源:发表于2020-05-23 15:03 被阅读0次
image.png
登录mysql
root@48e34f384559:/var/lib/mysql# mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.

然后执行

GRANT ALL PRIVILEGES ON *.* TO '用户名'@'%' IDENTIFIED BY '密码' WITH GRANT OPTION;

FLUSH PRIVILEGES;
image.png

相关文章

网友评论

      本文标题:Mysql:access denied for user roo

      本文链接:https://www.haomeiwen.com/subject/sxtlahtx.html