MysqLi_stat($dbConn);
附:我用它来(收到消息)确保我已连接
这是您的问题的(已保存的存档)答案:
$status = $conn->getAttribute(PDO::ATTR_CONNECTION_STATUS);