WordPress will use MySQLi when it can or unless you tell it not to. Unfortunately if WP doesn’t see a mysqli_* function, it will assume that you want to use mysql_*.
There is some logic that will fall back to plain, old mysql_*, but, from your stack trace, that’s not what’s happening.
You don’t mention what OS you’re running on, but I’d guess that the php70-mysql package was not installed. Ubuntu and things like the ondrej/php PPA won’t include the various mysql drivers (pdo mysql and mysqli) by default.
Related Posts:
- Fatal error: Call to undefined function mysql_connect()
- Deprecated: mysql_connect()
- dbDelta support for FOREIGN KEY
- is it possible to run some php code within a wordpress page?
- How to correctly submit a search form and display the result in an independent page
- Query both first_name and last_name from wp_usermeta at the same time
- How to use update and delete query in wordpress
- How to implement WP_List_Table? WP_List_Table giving array instead of a value in listing table
- How to add query vars with paginated URLs?
- Does WordPress cache get_user_meta() results?
- How to Join two tables from separate databases within WordPress
- simple wordpress ajax plugin not working when not logged in
- Using Echo in ShortCode – Stuck
- MySQL query performed 4 times inside loop
- Show only one post for each author ( Page loads too slow )
- Would manually deleting the dumping data fix a “#1062 – Duplicate entry ‘1’ for key ‘PRIMARY'” phpMyAdmin error?
- Install will not load: PHP does not have MYSQL installed
- Insert post without actions/hooks
- Import 10,000 Users into WordPress WITH a specific ID for each user
- Modern Tribe Calendar wp-query with meta query not working at all
- WP database error for comments_popup_link()
- Unusable menus and “Illegal widget setting ID: nav_menu_item[]” error
- No wp-config.php file on local install of wordpress – site still displays
- Use ajax to update_post_meta
- How to get the post_id from postmeta
- Insert all post IDs in new database table
- Query String being Removed Creating a Pagination Issue within a Custom Plugin
- How to convert objects into arrays
- Ajax $wpdb not returning table data
- Converting MYSQL to WordPress $WPDB
- Is there a way to get 3+ dimensional array from a single MySql command
- Custom Plugin For Converting CSV To MySQL
- Why is variable not working on custom sql query using wpdb?
- Get WooCommerce product details and transfer them to a custom DB table
- Checking for new message using AJAX and PHP. Server overload?
- How can I export posts with featured images, without download them
- Can’t get wp_insert_post to work
- What is a valid parent for get_terms()?
- mysql query from wordpress page using custom table
- Importing Geo data into wordpress database
- PHP Fatal error: Uncaught mysqli_sql_exception: Table doesn’t exist in wordpress/wp-includes/wp-db.php
- How to check if a meta value has already been assigned to any user?
- Calculating a large number of MYSQL queries as customshort codes, slow
- Sum the total amount of a specific product purchased per user and display in table
- wp query foreach deleting record returning only first or last item
- inserting a post from an extern php file but post content doesn’t show on wp site
- Using $wpdb (WPDB class) ‘replace’ with multiple WHERE criteria problem
- $wpdb->wp_users returning empty value for
- Using custom tables for old posts
- Multiple meta_key in one global $wpdb;
- Custom array from a query only write the last row of the query
- WordPress member notification
- Moving wordpress site from localhost to live server using GoDaddy cPanel
- How does WP work in conjunction with a web server?
- WordPress Block developer from exporting Database via PHP
- Location of core code for database connection and get_header
- How do I display offsite database info on my wordpress site?
- WordPress and MySQL: trying to print data using PHP from user_meta custom field data
- Most commented posts by time period (last 12h, last 24h and etc)
- Use $wpdb or other PHP script method to find/replace in WP database
- Issue with fetching mysql data and displaying results via shortcode in webpage
- Hide posts if user is added to it WP_query
- Custom route and query
- How to unserialize data from MySQL
- Known Issues in WordPress When Upgrading PHP to ver 7
- Edit Account – read and write to MySQL
- Get the id of the row from database on click of a button [closed]
- Why when I create a new post I found 2 record related to this post into the posts database table?
- mySQL queries are executed twice on wordpress website
- Most viewed posts in WordPress
- SQL error with custom query
- Modify WooCommerce used to get all orders in dashboard
- What’s wrong in my PHP code? I’m using WordPress Astra Theme and I can’t insert data into my SQL
- Get mysql data for Quick Edit panel
- Weird fonts showing which are coming from database
- Inside Array – “unidentified index” error with “prepare was called incorrectly” despite not calling the prepared statement with wordpress [closed]
- WordPress Bad Request Error 400
- I am facing this error Your PHP installation appears to be missing the MySQL extension which is required by WordPress
- What is the correct way to search 3 custom fields only in WordPress?
- cant insert data in a custom table in phpmyadmin
- Change upload URL by mime type
- autocomplete in wordpress using ajax with json-data
- Unexpected behavior when trying to manually install WordPress on macOS Sierra
- WordPress post insertion from PHP file
- New database entry to trigger runing PHP/SQL query through link with token, without logging into the website
- Query doesn’t display text data with apostrophes
- I want show only data for today
- Rewrite SQL query as a prepared statement and use in foreach loop
- SQL Query Search page
- Include a custom field in mysql query
- Insert double entry in DB
- Splitting One Big WordPress Site into Multiple Small Sites
- How to pass username into form that sends data to database
- How to edit the default database of WordPress [closed]
- Your PHP installation appears to be missing the MySQL … After deleting and restarting from cpanel
- How to set variable to specific field when querying
- How to get a database field value from a WordPress table? [closed]
- Getting invalid user ID error when creating a new user with wp_insert_user
- Custom form that stores data in mysql database
- Trying to GET data with ajax from database and show in fullcalendar