WordPress.org

Ready to get started?Download WordPress

Forums

Error establishing a database connection (2 posts)

  1. pandamatak
    Member
    Posted 7 years ago #

    Although this topic has been discussed ad-nauseum on various sub-forums, I can't seem to find a satisfactory solution! Any help would be appreciated.

    I can assure you that I have the right username and password in mysql! For example:

    mysql> select * from user_privileges
    ...
    | 'wordpress'@'localhost' | NULL | USAGE | NO |
    ...

    However, does the "NO" above in the "IS_GRANTABLE" column significant? I ask because I seem to be granted privileges if I connect directly to mysql and I cannot imagine php doing anything different. Short of looking into the php source, which I plan to do next, I thought I'd post here:

    {localhost}: mysql -h localhost -u wordpress -p wordpress
    Enter password:
    Welcome to the MySQL monitor. Commands end with ; or \g.
    Your MySQL connection id is 32 to server version: 5.0.27

    Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

    mysql>

    See - I can manually connect to the database with the right password.

    And I also have the *same* password in wp-config.php:

    define('DB_NAME', 'wordpress');
    define('DB_USER', 'wordpress');
    define('DB_PASSWORD', my password);
    define('DB_HOST', 'localhost');

    And yet, when I run wp-admin/install.php, I get the above error!

    Thanks for any light any of you can shed on this.

    &

  2. pandamatak
    Member
    Posted 7 years ago #

    Just following up on the issue. Perhaps this is related?

    {localhost}: php
    PHP Warning: PHP Startup: Unable to load dynamic library './mysql.so' - ./mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

    I'll continue to investigate and be sure to post a solution if I find one.

    &

Topic Closed

This topic has been closed to new replies.

About this Topic