Created
July 13, 2020 20:32
-
-
Save ryanburnette/9d861f9117d0a22e0847828168d882fc to your computer and use it in GitHub Desktop.
mysql no zero date issue
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
# /etc/mysql/mysql.conf.d/mysql.cnf | |
[mysqld] | |
sql_mode = ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION |
This has only ever occurred for me when restoring a MySQL database manually from VaultPress on WordPress.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Had to add this to the mysql configuration under
[mysqld]
. Required reading all the comments to work it out.https://stackoverflow.com/a/41136490/2535178