Wehn I test the following PDO code, I could view the connections to MySQL in MySQL with show processlist, but how could I cut off one connection? Is there any other power tool for managing MySQL connection/etc other than command line?
<?php
$dbh = new PDO('mysql:host=localhost;dbname=test', $user, $pass, array(PDO::ATTR_PERSISTENT => true));
// use the connection here
// and now we're done; close it
$dbh = null;
?>
I’ve never worked with it, but there’s KILL that looks like what you’re looking for.