Returns the version of the MySQL server.
Source
public function db_server_info() {
return mysqli_get_server_info( $this->dbh );
}
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |
CARVIEW |
Returns the version of the MySQL server.
public function db_server_info() {
return mysqli_get_server_info( $this->dbh );
}
Used by | Description |
---|---|
WP_Site_Health::prepare_sql_data()wp-admin/includes/class-wp-site-health.php | Runs the SQL version checks. |
dbDelta()wp-admin/includes/upgrade.php | Modifies the database based on specified SQL statements. |
wp_version_check()wp-includes/update.php | Checks WordPress version against the newest version. |
wpdb::has_cap()wp-includes/class-wpdb.php | Determines whether the database or WPDB supports a particular feature. |
wpdb::db_version()wp-includes/class-wpdb.php | Retrieves the database server version. |
Version | Description |
---|---|
5.5.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
You can Retrieve the MySQL server version on frontend by global declaration.
Another way to Retrieve MySQL Server version by using $wpdb: