Support » Fixing WordPress » WordPress site not working after upgrading version of PHP

  • After upgrading PHP to an upgraded version(5.6), the website is no longer able to connect to the MySQL database. Error message obtained is “Error establishing a database connection”. If I switch back to an older version, it works.

    Version of WordPRess 4.9.7
    Version of PHP that works 5.2.14
    Versions that are not working: 5.3 and higher
    Version of MySQL: 5.1.63

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steve Stern

    (@sterndata)

    Support Team Volunteer

    How is your site hosted? If you’re on your own server, you need to install a “modern” version of the php-mysql libraries, probably named something like “php-mysqlnd”.

    Thanks, I will try.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress site not working after upgrading version of PHP’ is closed to new replies.