Host "localhost " is not allowed to connect to mysql server解决办法

2020-11-05 14:37:00 码农 2641

 

问题描述:Mysql登录时提示Host "localhost " is not allowed to connect to mysql server

解决办法:

(1)首先停止mysql服务:sc stop mysql

(2)在mysql目录下的my.ini文件中[mysqld]下添加一行:skip-grant-tables

(3)使用命令提示框打开mysqld.exe并运行:mysqld --skip-grant-tables

(4)运行命令:grant all on *.* to 'root'@'%' identified by 'root密码';

(5)运行命令:flush privileges;

(6)重启mysql服务,问题解决。

—— 完 ——
  • Host "localhost " is not allowed to connect to mysql server解决办法
  • 无法启动MYSQL服务”1067 进程意外终止”解决的方法
  • 安全电子交易协议SET是有VISA和MasterCard两大信用卡组织联合开发的电子商务安全协议。以下关于SET的叙述中,正确的是()
  • SQL Server 2014下载
  • 【201305-单选16】GIS 数据规范化和标准化直接影响地理信息共享,地理信息系统空间位置建立的基础是:
  • SQL Server附加数据库出错,错误代码5123的解决方案
  • 打开Word时报错:Cannot find the Word document template:WordToRqm.dot
  • Dell Precision 5820安装系统无法识别m.2固态硬盘解决方案
  • Win10不能直接拖文件进行打开解决办法(亲测可用)
  • Windows XGP下载报错0x87E00017的解决办法

© CopyRight 2014~2024 薄学网.