Name
disconnect( )
Synopsis
$database_handle
->disconnect( )
This disconnects a Perl script from a database; it ends a MySQL session. There are no arguments for this function.
$sth->finish( ); $dbh->disconnect( );
It’s appropriate to end all statement handles before
disconnecting from MySQL using the finish( )
function as shown here.
Get MySQL in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.