MySQL Forums
Forum List  »  PHP

MYSQL5 PHP5 Upgrade HELL - can't connect to DB
Posted by: Carl Beckelheimer
Date: February 15, 2006 09:43AM

Hello.

I recently upgraded MySQL to version 5.0 , and also upgraded PHP to 5.1.2
I can use MySQL from the command prompt just fine, but here's what I get when I try to connect to MySQL through PHP...

Warning: mysqli_connect() [function.mysqli-connect]: (HY000/2003): Can't connect to MySQL server on 'localhost' (10061)

I was trying mysql_connect before (after setting it up in php.ini), with the same results.

I'm on XP, using sambar server 6.2

I just completely removed and reinstalled PHP 5.1.2

The client API version number in phpinfo() is correct(5.0.18), and I just installed the latest mysql and mysqli extensions. I'm certain MYSQL5 service is running.

Even if you don't know the answer, any ideas for further troubleshooting would help greatly, as I am at a loss.

Options: ReplyQuote


Subject
Written By
Posted
MYSQL5 PHP5 Upgrade HELL - can't connect to DB
February 15, 2006 09:43AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.