• Hi

    Just installed latest wordpress for one of my customers.
    Windows server 2003
    MySql 5.0
    MySql ODBC 3.51
    PHP 5

    Just ran the install.php and it errors saying cannot connect to database

    wp-config file was edited correctly giving server, database name, user, and pass.

    I can set up an ODBC and this connects immediately with the same details as supplied in the wp-config

    I can log into the database with MySql Front with the same details

    Any ideas guys?

    Many thanks
    Patrick

Viewing 2 replies - 16 through 17 (of 17 total)
  • Hi,

    I would the same problem with database connection error…

    When I checked my error log from host server:

    Error: 2002 : Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) at func.cgi line 250.
    DBI connect(‘database=princess_product;host=localhost’,’princess_product’,…) failed: Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) at func.cgi line 250
    We are not connected to database princess_product

    So, it is some kind of socket error. How to solve it please????urgent …Thanks! ??

    sam

    Its ok now. It was ‘localhost’ wrongly put. Too bad I am in the 1%.

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘No connection to database’ is closed to new replies.