List:General Discussion« Previous MessageNext Message »
From:Thimble Smith Date:October 6 1999 12:26am
Subject:Re: DBI:mysql Can't connect to local MySQL server
View as plain text  
At 17:10, 19991005, Gregory McCann wrote:
>use DBI;
>$dbh = DBI->connect('DBI:mysql:mydatabase', 'web_user', 'password');
>
>and I get the message...
>DBI->connect failed: Can't connect to local MySQL server...

Gregory, it should tell you more than that.  What's the "..." in that
error message?  For example, if I use the wrong password, I get this
error message:

    can't connect to database: Access denied for user: 'tim@localhost'
    (Using password: YES) at /my/script/name line 19

If you really don't get more than that in the error message, what does
the error log say?

Tim
Thread
PHP to MySQLShawn Blazier5 Oct
  • Re: PHP to MySQLJunster5 Oct
    • DBI:mysql Can't connect to local MySQL serverGregory McCann6 Oct
      • Re: DBI:mysql Can't connect to local MySQL serverThimble Smith6 Oct
        • Re: DBI:mysql Can't connect to local MySQL serverGregory McCann6 Oct
          • Re: DBI:mysql Can't connect to local MySQL serverThimble Smith6 Oct
  • Re: PHP to MySQLMartin Ramsch7 Oct
    • Re: PHP to MySQLPaul DuBois7 Oct