标签:my.ini 删除 客户端 grant 客户 table dos 添加用户 错误
Host ‘localhost‘ is not allowed to connect to this MySQL server
手贱误操作将root用户删除,解决办法:
找到mysql的配置文件 my.ini ,找到 [mysqld],在下面添加 skip-grant-tables ,然后重启mysql服务,之后使用客户端连接,连接成功修改或添加用户
打开DOS窗口
1、启动
net start mysql
2、暂停
net stop mysql
标签:my.ini 删除 客户端 grant 客户 table dos 添加用户 错误
原文地址:http://www.cnblogs.com/wms01/p/6240703.html