SHOW VARIABLES LIKE 'transaction_isolation';
If it's set to a level that does not support writing, you may need to adjust it based on your application requirements.
SHOW VARIABLES LIKE 'read_only';
If the value is `ON`, and your application needs to write to the database, you may need to turn it off with:SET GLOBAL read_only = OFF;
Note: Ensure you have the necessary permissions to change this variable.
SHOW GRANTS FOR 'your
user'@'your
host';
Replace `'youruser'@'yourhost'` with the actual username and host you're connecting from.
Each of these actions is aimed at identifying and rectifying the immediate cause of the "1180: Read-only transaction violation" error in MySQL.
Let Dr. Droid create custom investigation plans for your infrastructure.
Start Free POC (15-min setup) →