host localhost is not allowed to connect to this MySQL server [closed]

社会主义新天地 提交于 2019-11-27 13:50:06

问题


I've accidentally deleted my users table (removed all users) now whenever I try to access my database it says: "host localhost is not allowed to connect to this MYSQL Server". I've tried connecting directly, same error. I'm using apache xampp for this.


回答1:


A very commonly asked question, try doing this (And it worked for me), goto your mysql folder and there will be a file called "my.ini". Simply add this under the mysqld tag skip-grant-tables. Save the file, restart your server. If the problem still exists, refer to this link below host 'localhost' is not allowed to connect to this MySQL server (#1130)



来源:https://stackoverflow.com/questions/25003590/host-localhost-is-not-allowed-to-connect-to-this-mysql-server

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!