Mysql remote client connection failure

Source: Internet
Author: User


The remote mysql client cannot be connected. By default, the installed mysql cannot be accessed remotely, mainly due to the following two reasons: www.2cto.com 1. the mysqld service does not monitor IP addresses that can be remotely accessed. Solution: Modify the mysqld startup parameters (or my. cnf), comment out bind-address = 127.0.0.1 in the [mysqld] section, or modify it to an accessible IP address. Services mysql restart; 2. The account used for client connection has no permission. View mysql. the user table shows all accounts and the HOST configurations available for access, and checks whether the account used has the access permission on the current client (IP, if not, you can use the following statement: SQL code GRANT ALL PRIVILEGES ON *. * TO 'root' @ '%' identified by '000000' with grant option;

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.