I am getting the following error when I use START TRANSACTION and COMMIT to the start and end of my MySQL queries.
SQLSTATE[HY000]: General error: 2030 This command is not supported in the prepared statement protocol yet
SQL: START TRANSACTION
Bindings: array (
)
In Larvel, I did:
DB::query('START TRANSACTION');
I am using the PHP framework Laravel, which uses PDO to access MySQL. What should I do?
Laravel already has a support for transaction query.