mysql连接报错
本地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;
本地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;