• I keep on getting this error. I’m installing WordPress on manjaro. I have apache up and running with php and mariadb.

    Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /srv/http/wordpress/wp-includes/wp-db.php:1658
    Stack trace:

    #0 /srv/http/wordpress/wp-includes/wp-db.php(631): wpdb->db_connect() 
    #1 /srv/http/wordpress/wp-includes/load.php(426): wpdb->__construct() 
    #2 /srv/http/wordpress/wp-settings.php(126): require_wp_db()
    #3 /srv/http/wordpress/wp-config.php(90): require_once('/srv/http/wordp...') 
    #4 /srv/http/wordpress/wp-load.php(37): require_once('/srv/http/wordp...') 
    #5 /srv/http/wordpress/wp-blog-header.php(13): require_once('/srv/http/wordp...') 
    #6 /srv/http/wordpress/index.php(17): require('/srv/http/wordp...') 
    #7 {main} thrown in /srv/http/wordpress/wp-includes/wp-db.php on line 1658
Viewing 1 replies (of 1 total)
  • Tyler

    (@tylerthedude)

    It looks like you may be running an older version of MariaDB. Try installing MariaDB 10+ and see if that resolves the issue.

Viewing 1 replies (of 1 total)

The topic ‘Error in DB while loading WP for first time’ is closed to new replies.