SQLyog in CentOS Xmapp under MySQL.

Source: Internet
Author: User

3. The virtual machine CentOS, with XAMPP integration after the installation of MySQL, the machine with SQLyog connection, error:

Error code 1130:host ' 192.168.0.1 ' is not allowed to connect to this MySQL server

2. Virtual machine with login MySQL, error:

ERROR 2002 (HY000): Can ' t connect to local MySQL server through socket '/var/lib/mysql/mysql.sock ' (2)

1.[[email protected] htdocs]# Find/-name Mysql.sock
/opt/lampp/var/mysql/mysql.sock

0.[[email protected] run]# ln-s/opt/lampp/var/mysql/mysql.sock/var/lib/mysql/mysql.sock

2. Virtual machine can log in to MySQL

3. When the machine SQLyog again, there are still errors

4. Refer to Baidu's solution: "After you log in to MySQL, change the" host "in the" user "table in the" MySQL "Database, and rename"% "from" localhost "

5.mysql> Update user set host= '% ' where user= ' root ';
ERROR 1062 (23000): Duplicate entry '%-root ' for key ' PRIMARY '

6. Refer to Baidu Solution: SELECT * from user where host= '% '; There is a% of the records.

----mysql> flush privileges;
Query OK, 0 rows affected (0.08 sec)

7. When the machine SQLyog again, connection successful!!!

SQLyog in CentOS Xmapp under MySQL.

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.