LLEARNING NOTES

技术 · 思考 · 实践 · 成长

首页/MySQL8/正文

MySQL8创建数据库Access denied for user 'root'@'%' to database 'mytest'

MySQL81104 次阅读

表示被root用户拒绝


授权:

mysql> grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
Query OK, 0 rows affected, 1 warning (0.00 sec)

重启:

systemctl stop mysqld
systemctl start mysqld


只要认真对待生活,终有一天,你的每一份努力,都将绚烂成花。

评论交流

理性讨论,共同进步
验证码

相关文章

继续阅读