计算机网络/计算机科学与应用/系统/运维/开发

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

表示被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


人生在世,不如意事十之八九;人生的滋味,哪怕是酸甜或苦辣,也要靠自己去品。人活一口气:气质看一个人的过去,气度看一个人的未来

评论

^