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!

Connection to Database failed

Status
Not open for further replies.

technobia

ISP
Sep 8, 2005
53
US
Keep getting the error message when trying to connect to a MySQL database:

"Connection to Database failed
Host 'MYSERVER' is not allowed to connect to this MySQL server"

I can sucessfully create and view the database, I can sucessfully login to the MySQL Command Line Monitor AND the MySQL Administrator using the 'root' user so I know my password is good. I have given the IUSR_MYSERVER Internet Guest Account read, write & modinfy privelages to the database folders.

What might be going on here?
Thanks - Jody
 
Hi audiopro - Well I got the issue resolved. It was a password authentication issue. Even thought I could login in via MySQL administrator and the command line monitor, I had to use the SET PASSWORD command. I am not sure if it was to reset the password or register it somehow as the person that suggeesteded it to me did not explain why. In any case I can connect now. The application trying to connect from is Zen Cart eCommerce PHP application and it has a wizard so I am not sure what the code syntax is.

Thanks - Jody
 
try this: SET password for 'user'@'localhost'=old_password('yourpassword');
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top