Forums

[resolved] Understanding DB setup issues (6 posts)

  1. fastbob
    Member
    Posted 3 years ago #

    I'm trying to install 2.7.1 using PHP 4.4.7 on Linux with MySQL 5.0.16, a system that currently supports another PHP application (SugarCRM) and other applications. WordPress cannot seem to connect to the database. I've tried creating the wp-config.php file manually as well as from the web interface. I've tried using a new database/username/password as well as an existing database that I know works. WordPress cannot connect.

    Is there some way I can diagnose what is going on with the configuration? Thanks.

  2. whooami
    Member
    Posted 3 years ago #

    wordpress does that for you -- it tells you the problem.

  3. fastbob
    Member
    Posted 3 years ago #

    Yes, it does tell me it cannot connect. But why? There can be a multitude of reasons why a connection fails. This is like telling a mechanic your car doesn't move forward. A little more information would help to differentiate between a flat tire, the engine on fire, out of gas, etc.

    I've checked the obvious several times - username, password, and database name. Localhost is correct and the database is up. Another PHP app came up without problems on the same system. So what's the problem with WP?

  4. fastbob
    Member
    Posted 3 years ago #

    Is there a particular PHP module I should examine? Is there tracing code I can turn on someplace? Thanks.

  5. fastbob
    Member
    Posted 3 years ago #

    I found out that the path to the mysql socket is different than most systems, so the solution was to use a named host rather than localhost.

  6. elamberdor
    Member
    Posted 2 years ago #

    I know this is resolved but this is my gripe too - yes it can't connect to the host... but why? and where is it failing?

    More info for the wordpress uninitiated!

Topic Closed

This topic has been closed to new replies.

About this Topic