Resolve Error 1130 (HY000): Host ' 192.168.1.9 ' is not allowed to connect to this MySQL server

Source: Internet
Author: User

This machine is MySQL database, want to use another IP for 192.168.1.9 connection this MySQL database, but reported this error.

2 ways to get a query

The first is to change the localhost to% in the user table, I do not have to solve the problem, the local connection to [e-mail protected]% to do so (now think of it as if the error has changed all localhost).

The second method is in effect.

Terminal login MySQL, execute a sentence of sql:

GRANT All privileges on * * to ' root ' @ ' 192.168.1.9 ' identified by ' Chaojimima ' with GRANT OPTION;

Where ' Chaojimima ' is the setting of the connection password, and then 192.168.1.9 can be connected, simple and effective, not any host can be connected, but also a bit safer.

Resolve Error 1130 (HY000): Host ' 192.168.1.9 ' is not allowed to connect to this MySQL server

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.