1. 程式人生 > >mysql error 1130 hy000:Host'localhost'解決方案

mysql error 1130 hy000:Host'localhost'解決方案

ERROR 1130 (HY000): Host ‘localhost’ is not allowed to connect to this MySQL server
這裡寫圖片描述

出現原因:
mysql只有一個root使用者,修改root密碼後選了MD5,提交後,重新
登陸出現“Host ‘localhost’ is not allowed to connect to this MySQL server…”

解決:
編輯 my.ini

在[mysqld]的段中加上一句:skip-grant-tables

例如:

[mysqld]

skip-grant-tables