I want to connect to mysql of a remote server, but always prompt to connect to local, failed?

  mysql, question

C:\Windows\system32>mysql -uroot -pstone123 -h192.168.1.220
ERROR 1045 (28000): Access denied for user ‘root’@’192.168.1.222’ (using password: YES)

I want to connect 192.168.1.220, but I always connect 192.168.1.222. This is my native ip. Using Heidisql and Mysql Workbench is the same prompt. Why?

It feels like mysql of 192.168.1.220 rejected your connection request from 192.168.1.222. You can modify the user table in mysql database to give external IP permissions.