Created
April 18, 2017 21:02
-
-
Save briezler/aafcf522d6cdb49f96a0ce1294ab60bc to your computer and use it in GitHub Desktop.
Disable MySQL strict Mode Ubuntu 16.04
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
# 1. Edit mysql config | |
sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf | |
# Add to [mysql] section | |
sql-mode="ERROR_FOR_DIVISION_BY_ZERO,NO_ZERO_DATE,NO_ZERO_IN_DATE,NO_AUTO_CREATE_USER" | |
# Restart mysql | |
sudo systemctl restart mysql | |
# yiehaaa |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Working ..thanks
sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf