W3cubDocs

/WordPress

wpdb::db_server_info(): string

Returns the version of the MySQL server.

Return

string Server version as a string.

Source

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

Changelog

Version Description
5.5.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wpdb/db_server_info