From forum report
I just tried installing the latest version of Piwik on a VPS server and i'm getting the error message: "Mysqli prepare error: This command is not supported in the prepared statement protocol yet"
Could it be that LOCK statement is not compatibel with mysqli?
What else could be causing the issue? I will ask user for more info.
(In ) Fixes #3178, fixed issue w/ mysqli && prepared statements.
(In ) Refs #3178, surround first drop tables call in try-catch.