Created
February 23, 2017 16:13
-
-
Save patricksimpson/ebb427cae88a7ffc8cd28923f8e1ff84 to your computer and use it in GitHub Desktop.
fix mysql 5.7 on macos serria
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
If you have installed mysql 5.7 using homebrew, on macos serria | |
Edit your file ~/.my.cnf ( If it does not exist, create it. ) | |
Add the following lines: | |
[mysqld] | |
sql_mode = "STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" | |
Save and exit the file. | |
In your terminal type: brew doctor | |
After that is complete type: brew services restart mysql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment