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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP can't connect to mysql database on Linux

Status
Not open for further replies.

Mellegem

Technical User
Apr 3, 2003
49
ZA
Hi, I've got php4 and mysql running on my Debian 3 box but the 2 don't talk to each other. I've got Java to access the mysql but even with the right username and passwords there's no connection... help???
 
Well... what are you trying?

Have you checked out the faq's in this section?

-Rob
 
I'm using code just like the FAQ that works perfectly on a windows server running the same mix of Apache and PHP4.

The error catching code I wrote simply comes up false when validating my connection to the database. Also, when I connect using mysql -h "windows_server" I get a response but when I try to connect using mysql -h "linuxserver" access is denied. When sitting on the linux server running mysql -h "linux_server" works.

All usernames and passwords used in php code and directly assessing mysql are uniform in all discussed scenarios.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top