Last active
December 3, 2020 17:28
-
-
Save masudcsesust04/1084f7ec62bc0e4dc05e1eba34552c3d to your computer and use it in GitHub Desktop.
Revisions
-
masudcsesust04 revised this gist
Dec 3, 2020 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -5,10 +5,10 @@ sudo nano /etc/mysql/my.cnf ``` 2. Scroll to the bottom of file then copy and paste to the bottom of the file ``` [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 ``` 3. `ctrl + x` to to exit input mode -
masudcsesust04 created this gist
Apr 3, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ # Steps to success 1. Open MySQL configuration file - ``` sudo nano /etc/mysql/my.cnf ``` 2. Scroll to the bottom of file then copy and paste ``` [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 to the bottom of the file ``` 3. `ctrl + x` to to exit input mode 4. Press `enter` to save and close nano. 5. `sudo /etc/init.d/mysql restart` to restart MySQL. 6. Done!