- Find config file:
mysqld --help --verbose | grep my.cnf
In my case, it's locate at: /usr/local/etc/my.cnf, show content and find config directory path.
- Create new file at this path:
/usr/local/etc/my.cnf.d/disable_strict_mode.cnf
- Enter two lines:
[mysqld]
sql_mode=IGNORE_SPACE,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
- Restart mysql:
brew services restart mysql
Thank you!
This helped me with [email protected] and using home folder my.cnf override: