Case: MySQL can only log on localhost, use #mysql-uroot-p-hip-p3306 cannot log in
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-pvmwaremysql>use mysql;mysql>update user Set host = '% ' where user = ' root '; Mysql>select host, User from user;
2. Authorization law. For example, if you want to myuser use MyPassword to connect to a MySQL server from any host.
GRANT All privileges on * * to ' myuser ' @ ' percent ' identified by ' MyPassword ' with GRANT OPTION;
if you want to allow users to connect to the MySQL server from a host myuser IP 192.168.1.3 and use MyPassword as the password
GRANT All privileges on * * to ' myuser ' @ ' 192.168.1.3 ' identified by
' MyPassword ' with GRANT OPTION;
This article from "Hhslinux" blog, declined reprint!
MySQL cannot telnet the workaround