On this page
wp_check_mysql_version()
Checks the version of the installed MySQL binary.
Source
File: wp-admin/includes/upgrade.php. View all references
function wp_check_mysql_version() {
global $wpdb;
$result = $wpdb->check_database_version();
if ( is_wp_error( $result ) ) {
wp_die( $result );
}
}
Related
Uses
| Uses | Description |
|---|---|
| wpdb::check_database_version() wp-includes/class-wpdb.php | Determines whether MySQL database is at least the required minimum version. |
| wp_die() wp-includes/functions.php | Kills WordPress execution and displays HTML page with an error message. |
| is_wp_error() wp-includes/load.php | Checks whether the given variable is a WordPress Error. |
Used By
| Used By | Description |
|---|---|
| wp_upgrade() wp-admin/includes/upgrade.php | Runs WordPress Upgrade functions. |
| wp_install() wp-admin/includes/upgrade.php | Installs the site. |
Changelog
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_check_mysql_version