This is a usual problem i've encountered before:
:~$ mysql -h "1xx.xxx.xxx.xxx" -u "someuser" -ppassword "somepass" -D "somedatabase"
ERROR 1045 (28000): Access denied for user 'someuser'@'yyy.yyy.yyy.yyy' (using password: YES)
But this time, when I try to connect to the remote vps xxx.xxx.xxx....
. I get an error 1045 where the ip address is my ip address which tells me its clearly not even trying to connect to the remote vps. (xxx is not yyy. i want to connect to the xxx.x...)
Any guesses, help? anyone else faced such problem before?
i tried the same thing from python via mysql connector module but same thing.
You need to allow access to the user from remote locations.
CREATE USER 'user'@'remotehost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'user'@'remotehost';
FLUSH PIVILEGES;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.