A
A
Andrew2014-06-28 03:38:51
MySQL
Andrew, 2014-06-28 03:38:51

Why does Wordpress say there is no MySQL extension?

Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
This is the line I see when I try to run it. I myself use the PHP-FPM+nginx stack on Ubuntu 14.04. php5-mysql is installed, what else is there, I don't know. PHPMyAdmin works without showing off. PHP version 5.5.9.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Zelenin, 2014-06-28
@SkaN2412

if ( ! extension_loaded( 'mysql' ) && ! extension_loaded( 'mysqli' ) && ! file_exists( WP_CONTENT_DIR . '/db.php' ) ) {
    wp_load_translations_early();
     header( 'Content-Type: text/html; charset=utf-8' );
    die( __( 'Your PHP installation appears to be missing the MySQL extension which is required by WordPress.' ) );
  }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question