wp_check_mysql_version

Checks the version of the installed MySQL binary.

Description

wp_check_mysql_version(); 

Usage

  1. if ( !function_exists( 'wp_check_mysql_version' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/upgrade.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wp_check_mysql_version(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/upgrade.php  
  1. function wp_check_mysql_version() { 
  2. global $wpdb; 
  3. $result = $wpdb->check_database_version(); 
  4. if ( is_wp_error( $result ) ) 
  5. die( $result->get_error_message() );