欢迎投稿

今日深度:

Host 'localhost' is not allowed to connect t

Host 'localhost' is not allowed to connect to this MySQL server解决,localhostallowed


 1. 首先停止mysql服务

2. 然后打开一个命令行窗口(win+r),然后切换到mysql安装目录的bin下,例如我的路径是:F:\mysql\mysql5.5\bin。命令为: cd F:\mysql\mysql5.5\bin    回车
输入:
mysqld --skip-grant-tables   回车
3. 再重新打开一个命令行窗口(win+r),同样切换到mysql安装目录的bin下 cd F:\mysql\mysql5.5\bin   回车
mysql -u root -p  回车 输入密码:〈输入你要设置的新密码〉  回车
此时,即可经常链接了。

www.htsjk.Com true http://www.htsjk.com/shujukunews/7506.html NewsArticle Host localhost is not allowed to connect to this MySQL server解决,localhostallowed 1. 首先停止mysql服务 2. 然后打开一个命令行窗口(winr),然后切换到mysql安装目录的bin下,例如我的路径是: F:\mysql...
评论暂时关闭