mysql连接报错

Posted jack-kaller

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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;

 

以上是关于mysql连接报错的主要内容,如果未能解决你的问题,请参考以下文章

Mysql远程连接报错

MYSQL数据库连接报错解决办法

mariadb/mysql使用Navicat连接报错

QA18910——彻底解决NaviCat远程连接报错1045

Mysql连接报错:1130-host ... is not allowed to connect to this MySql server如何处理

Mysql远程连接报错:SQL Error (1130): Host '192.168.6.128' is not allowed to connect to this MySQL s