Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hello, I have my site on one ser

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello,

I have my site on one server (with MySql) and for mailing I use another server which connects to MySql and sends emails and other stuff. Now, I wanted to drop my current mail server and use another one instead.

I get an access denied message from MySql whenever I try to excute a PHP script on the new server which says that access cannot be granted to the user "user@mysite.com" where it acknowledges that I have provided the password.

What could the problem be? Do I have to setup permissions or modify them? and if so, "HOW" can I go about doing this????

Please let me know if you could tell me what I have to do exactly to access MySql from a different server without getting the "Acess denied" message?!

P.S. I even tried changing the "host" from the mysql.user table by giving it the New IP but nothing happened and I still get the access denied msg.

Thanks in advance
 
MySQL users are allowed access to resourses based on userid (with a matching password) and location from which the user connects.

Your user was allowed to connect from the IP addrss of the old server. It likely does not have permission to connect from the new one.

You need to modify the column "host" in the table "user" to reflect the new IP address.

If that does not work, take a look at the syntax for the GRANT statment: ______________________________________________________________________
TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top