Solution:
1, firstly into the connection on a remote server mysql, mysql -u root -p input in cmd and press enter, enter the password mysql enter into the command line.
2, permission to enter the following command, authorize all clients can access the server, the following '123456' is the actual password of your database, remember to modify:
grant all privileges on *.* to root@'%' identified by '123456';
3, enter the following command to refresh permission
flush privileges;
4, enter the appropriate directory modification ssh_config and sshd_config file
cd /etc/ssh
vi ssh_config
The #PasswordAuthentication yes changed PasswordAuthentication yes, we removed the front of it #
Edit sshd_config do the same to remove the '#' operator
5, and then restart the mysql service
/etc/init.d/mysqld restart
If you add this service, you can use the direct service.