Created
October 31, 2012 18:18
-
-
Save samsonasik/3988822 to your computer and use it in GitHub Desktop.
Set Global Read-only false in Mysql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Directory my mac : | |
/usr/local/mysql-5.5.21-osx10.5-x86_64/data | |
grant all on *.* to 'root'@'%' | |
mysql> set GLOBAL read_only = false; | |
Query OK, 0 rows affected (0.00 sec) | |
mysql> FLUSH TABLES WITH READ LOCK; | |
Query OK, 0 rows affected (0.07 sec) | |
mysql> UNLOCK TABLES; | |
Query OK, 0 rows affected (0.00 sec) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment