How to close wpdb connection? [duplicate]

WP 4.5 had introduced wpdb->close() method to close connection in current instance.


Old answer

There is no explicit method. It stores link identifier in $wpdb->dbh field, but it is protected, so not convenient to run close on.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)