Created
August 22, 2016 09:47
-
-
Save RoesWibowo/62387e6f8ceeaeb22cc61f4a7b145e47 to your computer and use it in GitHub Desktop.
Change MySQL mode (Homestead)
This file contains hidden or 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
mysql -u homestead -psecret -e "select @@sql_mode" | |
+-------------------------------------------------------------------------------------------------------------------------------------------+ | |
| @@sql_mode | | |
+-------------------------------------------------------------------------------------------------------------------------------------------+ | |
| ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION | | |
+-------------------------------------------------------------------------------------------------------------------------------------------+ | |
[mysqld] | |
# ... other stuff will probably be here | |
sql_mode = "STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" | |
restart mysql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This more correct
https://www.sitepoint.com/quick-tip-how-to-permanently-change-sql-mode-in-mysql/