ERROR 1130 (HY000): Host ' localhost ' workaround

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.