wpdb::db_server_infopublicWP 5.5.0

Returns the raw version string of the database server.

Method of the class: wpdb{}

No Hooks.

Returns

String. Database 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.9.1

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