I'm new to wordpress. I'm getting the following error when initializing the database over the wordpress web setup tool:
Wed Sep 14 15:51:38 2022] [::1]:45770 [500]: POST /wp-admin/setup-config.php?step=2 - Uncaught Error: Call to undefined function mysql_connect() in /home/mio/code/wordpress/wp-includes/wp-db.php:1788
Stack trace:
#0 /home/mio/code/wordpress/wp-admin/setup-config.php(308): wpdb->db_connect()
#1 {main}
thrown in /home/mio/code/wordpress/wp-includes/wp-db.php on line 1788
it seems as though wp-db.php isn't being overridden by db.php (line 1788 is within the db_connect method of wp-db.php and not of db.php) I used composer to install the plugin, which copied db.php to ./wp-content/db.php.
I'm new to wordpress. I'm getting the following error when initializing the database over the wordpress web setup tool:
it seems as though
wp-db.php
isn't being overridden bydb.php
(line 1788 is within the db_connect method ofwp-db.php
and not ofdb.php
) I used composer to install the plugin, which copied db.php to./wp-content/db.php
.