-
-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
How to close connection? #198
Comments
There's no simple way to do this in PDO. Documentation suggests:
I didn't manage to do this, so I destroy this connection from mysql itself. public function close()
{
// this line does the job
try { $this->pdo->query('KILL CONNECTION_ID()'); } catch (\PDOException $e) {}
// this should close the connection, but doesn't.
return $this->pdo = $this->connection = $this->container = $this->pdoStatement = null;
} try/catch to dismiss |
@usmanhalalit any updates? |
Can pixie close a connection? It's not in the documentation..
The text was updated successfully, but these errors were encountered: