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

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


日子过着过着就有了答案,努力走着走着就有了温柔的着落。

评论

^