I use mysql in Os X 10.9.2, and when I try to run my php site in local, I have this error:
Invalid date and time format: 1292 Invalid date and time value: '' for column nameOfTheColumn
The error occurs when I tried to insert an empty value in the datetime field. The site works fine in production and on some other local computers, so the problem is in the database, and I have to solve it in my local database. Reading about the problem, I read that mysql can run in strict mode, so I edit /usr/local/mysql/my.cnf and I will comment on this line:
I am restarting the computer and still not working, but according to the online documentation and other questions, it is, but I would like to know what exactly I need to change in order for my application to work. Repeat, the code works during the production process, windows with xampp, etc., therefore, cannot be changed, because it is long-lasting and easy to work in local. I need the correct change in the MYSQL database.
Thanks in advance!
php mysql datetime macos
daveloper
source share