Mind blown

Submitted by michael on Tue, 05/14/2013 - 14:37
Grab a sudo shell and stay there: [shell]$ sudo -s [/shell]. So much nicer than [shell]$ sudo su[/shell] - it keeps all of your environment variables!

So general it cannot be fixed.

Submitted by michael on Thu, 03/29/2012 - 03:14
PHP's PDO library (MySQL driver) has been throwing strange exceptions for any insert/update/delete queries:
Database error: SQLSTATE[HY000]: General error
It doesn't matter what the query is. [php]$stmt = $pdo->prepare(); $stmt->execute()[/php] seems to be the problem, but the exception is also thrown with [php]$pdo->exec()[/php] and [php]$pdo->query()[/php]. Persistent connections don't make a difference. Running the query from the mysql command line is fine.