Use sqlyog to connect to ubuntu mysql server Error solution, sqlyogubuntu

Source: Internet
Author: User

Use sqlyog to connect to ubuntu mysql server Error solution, sqlyogubuntu

Currently, many services are deployed in the linux environment, but in the development stage, the use of windows Remote connection tools is intuitive, which is more friendly to developers.

The following is a problem I encountered when I used mysql-server in ubuntu16.04 and the solution to this problem.

1. Error 2003

ERROR 2003: Can't connect to MySQL server on 'localhost' (0)

Because the bind-address Configuration address (default) in the mysql configuration file is 127.0.0.1

Vim/etc/mysql. conf. d/mysqld. cnf

Change bind-address to 0.0.0.0

Restart mysql:/etc/init. d/mysql restart

2. Error 1130

ERROR 1130: Host 192.168.3.100 is not allowed to connect to this MySQL server

I have adopted the following solutions

Mysql-u root-p

Mysql> use mysql;

Mysql> select 'host' from user where user = 'root ';

Mysql> update user set host = '%' where user = 'root ';

Mysql> flush privileges;

Mysql> select 'host' from user where user = 'root ';

Then restart the mysql service.

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.