NAVICAT solution for remote connection to Mysql _mysql

Source: Internet
Author: User

Recently installed a MySQL 5.0 on Ubuntu, because the use of phpMyAdmin must also install PHP, so I intend to use the Remote administration tool navicat for MySQL to connect directly.

Create a data table with the MySQL command line in Ubuntu and assign permissions:

Copy Code code as follows:

GRANT all on testdb.* to UserA identified by ' passwd '

Then restart the load permission:

Copy Code code as follows:

Mysqladmin–uroot–p flush-privileges

You are still prompted for no permissions after using the Navicat connection:

Copy Code code as follows:

2003–can ' t connect to the MySQL server on ' Ubuntu ' (10061)

View the Mysql.user table, UserA does have access to any host.

So the idea is that MySQL Server binds the local address, opens/ETC/MYSQL/MY.CNF, and finds:

Copy Code code as follows:

Bind-address = 127.0.0.1

Remove the IP address binding and change it to:

Copy Code code as follows:

Bind-address = 0.0.0.0

Then restart MySQL Server:

Copy Code code as follows:

/etc/init.d/mysql restart

So Navicat can be connected properly, Debian should have the same problem.

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.