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!

Host 'webphpsrv' is not allowed to connect to this Mto this MySQL serv

Status
Not open for further replies.

ponetguy2

MIS
Aug 28, 2002
442
US
Hello, I'm trying to connect my existing apache2/php5 server to a mysql5 server. Both machines are on thesame network and are both running on Solaris 9 sparc. When I try to connect to the mysql5 server, I get the message below:

Could not connect: Host 'webphpserver' is not allowed to connect to this MySQL server

I already gave permission to webphpserver to the database it's trying to access. I also successfully connected from my pc to the mysql server using mysqladmin application (w2k). Any suggestions?

Thank you in advance.
 
thank you for the reply. i figured out the problem. it does'nt make sense, but i fixed it.

it was a mysql permission problem. see below for the solution:

mysql> SET PASSWORD FOR 'user'@'host' = OLD_PASSWORD('password');

i'm running php5 and mysql5. this should'nt be an issue. according to mysql docs, i only need to do this if i'm running php4. weirdness.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top