ERROR 2003 (HY000): Can ' t connect to MySQL server on ' 192.168.33.10 ' (111) workaround

Source: Internet
Author: User

Google a bit after the original is in the MySQL my.cnf in the following section of code:

# Instead of skip-networking The default is now-listen only on# localhost which are more compatible and are not less secure.bind-address           = 127.0.0.1  #这里默认监听本地localhost



If you want to allow MySQL to listen to other addresses, you can bind-address = 127.0.0.1 comment out.

Or we'll bind-address = 0.0.0.0 listen to all the addresses.

If you want to 192.168.10.83 be able to connect to the local database, let the database assign permissions to it, log in to MySQL, execute: (username and password are login MySQL username and password)

 grant  all  privileges  on  * . *  to   " username   " @"  192.168.10.83   " identified by  "  password   " with  grant  option ; 
< Span class= "Hljs-keyword" >< Span class= "hljs-string" > 

If you want all external IP addresses to be accessible using MySQL, you can do the following:
GRANT  All Privileges  on *. *  to ' username '@ '%' by'password'  withGRANTOPTION;

After executing the refresh database:

privileges;

ERROR 2003 (HY000): Can ' t connect to MySQL server on ' 192.168.33.10 ' (111) Workaround

Related Article

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.