• I’m trying top move an old wordpress website. So I’ve downloaded all the files in public_html and exported the database from phpMyAdmin. When I upload the files and imported the database to the new hoster, I’m getting this error:Your PHP installation appears to be missing the MySQL extension which is required by WordPress.

    You can’t watch with me because I’ve not moved the domain right now. I’m watching the site with an edited hosts-file.

    Off course I’ve edited wp-config.php with the new database credentials. What is it I’m doing wrong? Or do you perhaps know a different method to move the site? Using a plugin isn’t easy because it’s an older site. I can’t update the site because it will break the theme, already tried that.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator threadi

    (@threadi)

    If you receive this message, you must contact your hoster’s support. Their systems are apparently missing the PHP library that enables access to the database in the first place. Their support should be able to recognize this immediately and solve it for you.

    Thread Starter erwin_m

    (@erwin_m)

    Thanks @threadi ready for your reply!

    I initially did contact the support of the hoster. They have tried and checked a few things and gave me the conclusion that their systems are working fine, php and mysql are active. So they say, it must be something with the website…

    • This reply was modified 1 year, 1 month ago by erwin_m.
    Moderator threadi

    (@threadi)

    Sorry, no. The message is clear and must be resolved from their side. You have no influence on this. WordPress cannot simply conjure up the missing component either.

    You can still look at the following:
    Create a file test.php with the following content:

    <?php phpinfo();

    Upload this to your hosting via FTP. Then call it up in the browser (domain.tld/test.php) and see the current PHP configuration. A “mysql” section must exist here. I’m guessing that it doesn’t exist – you can point this out to your hoster’s support team.

    If the hoster cannot solve this, you are free to look for another one. There are many to choose from that support WordPress without such problems.

    Thread Starter erwin_m

    (@erwin_m)

    There is a section mySql

    Moderator threadi

    (@threadi)

    Interesting. That looks all right. And yet you get this message when you call up WordPress?

    Your PHP installation appears to be missing the MySQL extension which is required by WordPress.

    This message only appears if you have deactivated the mysqli_connect function in PHP. Look further up in the phpinfo output for “disable_functions” and see if “mysql_connect” is mentioned there. There must be a reason why this function is not provided by PHP, which would actually be recognizable here.

    Thread Starter erwin_m

    (@erwin_m)

    Both, the local and the master have “no value”.

    Moderator threadi

    (@threadi)

    That makes it even stranger. Check again whether you are really on the right hostings. Something is wrong with the access.

    Thread Starter erwin_m

    (@erwin_m)

    When I set the php-version to 5.6, the site is coming to live, just need to chang a few things. But…on this hosting I have a couple of sites and they stopped working. So now I have edited my .htaccess file. It looks like it works!

    Thanks for thinking with me!!

    • This reply was modified 1 year, 1 month ago by erwin_m.
    Moderator threadi

    (@threadi)

    Then it is really due to the PHP version you are using. This really needs to be looked at directly by a technician. WordPress really can’t help here.

    Btw. PHP 5.6 is extremely outdated. Today you should rather use 8.1 or newer. The current WordPress is fully compatible with it, as are most plugins and themes.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘MySql problem after moving site’ is closed to new replies.