On this page
wpdb::db_server_info(): string|false
Retrieves full database server information.
Return
string|false Server info on success, false on failure.
Source
File: wp-includes/class-wpdb.php. View all references
public function db_server_info() {
if ( $this->use_mysqli ) {
$server_info = mysqli_get_server_info( $this->dbh );
} else {
$server_info = mysql_get_server_info( $this->dbh );
}
return $server_info;
}
Related
Used By
| 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. |
| 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. |
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wpdb/db_server_info