wpdb::db_server_info()publicWP 5.5.0

Returns the version of the MySQL server.

Method of the class: wpdb{}

No Hooks.

Return

String. Server version as a string.

Usage

global $wpdb;
$wpdb->db_server_info();

Changelog

Since 5.5.0 Introduced.

wpdb::db_server_info() code WP 6.5.2

public function db_server_info() {
	return mysqli_get_server_info( $this->dbh );
}