About Navicat remote connection mysql problem

Source: Internet
Author: User
Tags mysql command line

This error occurs if you want to connect to your MySQL:

ERROR 1130:host ' 192.168.1.81 ' isn't allowed to connect to this MySQL server
Workaround:
1. Change the table method. It may be that your account is not allowed to log on remotely, only on localhost. This time, as long as the computer on the localhost, log in to MySQL, change the "MySQL" Database in the "User" table "host", from "localhost" to "%"

Mysql-U root-Pvmware
Mysql>use MySQL
mysql>update User Set host = ' mysql>select host, user from user; [/pre]

2. Authorization law. For example, if you want to myuser use MyPassword to connect to a MySQL server from any host.
GRANTAllPrivilegesOn*.*To myuser< Span style= "color: #ff0000; Line-height:normal; " > '


if you want to allow users to connect to the MySQL server from a host myuser IP 192.168.1.81 and use MyPassword as the password

GRANTAllPrivilegesOn*.*To myuser< Span style= "color: #ff0000; Line-height:normal; " > ' I'm using the first method. Remember to restart the MYSQLD service after the change. Oh or enter the flush privileges at the MySQL command line ; then use the Navicat to change the user table under the MySQL library under the localhost set to the same as *.

Source: http://blog.sina.com.cn/s/blog_84485e540101178p.html

About Navicat remote connection mysql problem

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.