MySQL Forums
Forum List  »  PHP

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

Georg Richter wrote:
> can you check the error you get after
> mysqli_connect?
>
> $mysql= new mysqli("localhost", $user, $passwd,
> $database);
> printf("Error: %s\n", mysqli_connect_error());
>
> Do you get any error when connecting with mysql
> command line client?

Here's the output

Warning: mysqli::mysqli() [function.mysqli]: (HY000/2003): Can't connect to MySQL server on 'localhost' (10061) in ... file ... on line 9
Error: Can't connect to MySQL server on 'localhost' (10061)

I don't get any errors at all when using the command line client. If it matters, I'm trying to log in as root, and I do have a password I am using (it's not the blank default)

Options: ReplyQuote


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


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.