wpdb::db_server_info(): string
Returns the version of the MySQL server.
Return
string Server version as a string.
Source
File: wp-includes/class-wpdb.php
.
View all references
public function db_server_info() {
return mysqli_get_server_info( $this->dbh );
}
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |
User Contributed Notes
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: