我测试了下面的PDO代码,可以用
show processlist
,但我如何切断一个连接?除了命令行,还有其他管理MySQL连接/etc的工具吗?
<?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;
?>