当前位置:Gxlcms > 数据库问题 > mysql连接报错

mysql连接报错

时间:2021-07-01 10:21:17 帮助过:44人阅读

本地root连接mysql 显示错误

host ‘127.0.0.1‘ is not allowed to connect to this mysql server

登录数据库

mysql -u root -p

 

use mysql

grant all privileges on *.* to ‘root‘@‘%‘ identified by ‘password‘ with grant option;

 

flush privileges;

 

mysql连接报错

标签:not   显示   ant   错误   this   报错   use   连接mysql   server   

人气教程排行