wp_check_mysql_version() WordPress Function

The wp_check_mysql_version() function is used to check the version of the MySQL database server installed on a WordPress site. This function is useful for sites that are running on older versions of MySQL, as it can help to ensure that the site is compatible with the latest version of WordPress.

wp_check_mysql_version() #

Checks the version of the installed MySQL binary.


Source

File: wp-admin/includes/upgrade.php

function wp_check_mysql_version() {
	global $wpdb;
	$result = $wpdb->check_database_version();
	if ( is_wp_error( $result ) ) {
		wp_die( $result );
	}
}


Top ↑

Changelog

Changelog
VersionDescription
2.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.