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.