Call to undefined function mysql_connect() in /var/www/html/wp-includes/wp-db.ph
-
I do the following so you can reproduce it in about a minute:
a) mkdir wordpress
b) cd wordpress
c) git clone https://github.com/WordPress/WordPress.git .
d) docker run -p 127.0.0.1:3306:3306 –name some-mariadb -e MARIADB_ROOT_PASSWORD=PASSWORD -d mariadb:latest
e) docker run -d -p 8082:80 –mount type=bind,source=”$(pwd)”,target=/var/www/html php:apache—
– I connect via dbgate to the datebase and create an empty database “wordpress01”
– I create a file info.php and phpinfo shows in the browser that mysqlnd is installed
– I change the wp-config.php file and load the site on localhost:8082 but get“Uncaught Error: Call to undefined function mysql_connect() in /var/www/html/wp-includes/wp-db.php:1771”
hmm
- The topic ‘Call to undefined function mysql_connect() in /var/www/html/wp-includes/wp-db.ph’ is closed to new replies.