WordPress at a glance
function is not described

wp_check_mysql_version() WP 2.1.0

Checks the version of the installed MySQL binary.

  • Global. wpdb. $wpdb

No Hooks.

Return

Nothing (null).

Usage

wp_check_mysql_version();

Code of wp check mysql version: wp-admin/includes/upgrade.php WP 5.2.2

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