• Hi everyone,

    after updateing PHP 5.6 to an Higer Version (7.0, 7.4 or 8.0) my WordPress installtion give me the follwing error :

    Error establishing a database connection
    This either means that the username and password information in your wp-config.php file is incorrect or that contact with the database server at 127.0.0.1 could not be established. This could mean your host’s database server is down.
    
    Are you sure you have the correct username and password?
    Are you sure you have typed the correct hostname?
    Are you sure the database server is running?
    If you are unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.

    When i go back to 5.6 everythin works fine.

    I have tried to search for the error but the solutions i′ve found are more related to specific error messages. Since this message is very mysterious to me (DB, user and password are correct) I am a bit at a loss. Cloud somebody give me an hint please ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Marius L. J.

    (@clorith)

    Hiya,

    Seems like your new version of PHP might not have a MySQL library installed, or you are using an older version or WordPress which does not support newer versions of PHP.

    Could you confirm that you are using WordPress version 6.0 when performing this upgrade? If you are, then check if the mysqli library is available with your PHP installation as well.

    Thread Starter r08154711

    (@r08154711)

    Hi,

    it should be version 6.

    Information about plugin and server version.

    WP Edit pro version: 4.0.4
    WordPress version: 6.0
    PHP version: 5.6.40
    HTML version: 5.0
    MySQL version: 5.0.11
    jQuery version: 3.6.0

    The PHP Installtion was set up by the hoster, I can only choose which version to use. Since I have another WordPress installation with PHP 7.4 on the same server, it should not be an PHP issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP / DB Error’ is closed to new replies.