How does navicat fail to remotely connect to mysql?

Source: Internet
Author: User
Tags mysql command line

Recently, a MySQL 5.0 is installed on Ubuntu. Because phpMyAdmin must also be installed, we plan to directly use the remote management tool Navicat for MySQL to connect.

Create a data table through the mysql Command Line in Ubuntu and assign permissions:

Copy codeThe Code is as follows:
Grant all on testdb. * TO usera identified by 'passwd'

Then restart the load permission:

Copy codeThe Code is as follows:
Mysqladmin-uroot-p flush-privileges

After using the Navicat connection, the system still prompts that you do not have the permission:

Copy codeThe Code is as follows:
2003-Can't connect to MySQL server on 'ubuntu '(10061)

View the mysql. user table. usera does have the permission to access any host.

If the MySQL Server is bound with a local address, open/etc/mysql/my. cnf and find:

Copy codeThe Code is as follows:
Bind-address = 127.0.0.1

Remove the IP Address binding and change it:
Copy codeThe Code is as follows:
Bind-address = 0.0.0.0

Then restart MySQL Server:

Copy codeThe Code is as follows:
/Etc/init. d/mysql restart

In this way, Navicat can be connected normally, and the same problem should occur in Debian.

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.