mysqldb db host is not being accepted?
I do :
db=_mysql.connect(host="83.101.*.*",port=****,passwd="mypassword",user="myuser",db="myDB")
and I get this error message :
OperationalError: (1045, "Access denied for user 'myuser'@'91.176.*.*' (using password: YES)")
the 91.176.. is my home IP the 83.101.. is my server I am trying to reach. I can't seem to find what I am doin开发者_运维百科g wrong :/.
If you have SSH to your server, from the server shell login as root in mysql, and set host to '%' in the mysql.users table for the myuser record. If this is a paid hosting / server, ask your support to enable remote login.
That combination of username and host does not have that password. Either the username does not exist, the username is not allowed to connect from that host, or the password is incorrect.
精彩评论