Http://www.2cto.com/database/201211/169504.html
Error 1130 (HY000): Host ' localhost ' workaround ERROR 1130 (HY000): Host ' localhost ' is not allowed-connect to this MySQL server Www.2cto.com causes: MySQL has only one root user, after the change root password selected MD5, after submission, re-login appears "Host ' localhost ' is not the allowed to connect to the this mysq L server ... " Try another MySQL library in the user table, overwrite, no, it is estimated that the version is different: Edit My.ini in [mysqld] Paragraph add a sentence: skip-grant-tables example: Java code [MYSQLD] Datadir=/var/lib /mysql Socket=/var/lib/mysql/mysql.sock skip-name-resolve skip-grant-tables purpose is to: Skip MySQL access control, anyone can enter in the console as an administrator MySQL database. It is important to note that the MySQL server will not be restarted until after the password has been modified to restart the MySQL service!
ERROR 1130 (HY000): Host ' localhost ' workaround