I have MySQL with below settings Server version: 5.0.77 MySQL client version: 5.0.41 Protocol version: 10 MySQL charset: UTF-8 Unicode (utf8) MySQL connection collation: utf8_unicode_ci
I am just doing a simple query and it returned wrong SELECT * FROM table1 WHERE mydate >= '2010-08-30'
Today is 8/30 and I have 1 row with mydate is '2010-06-01' and that row was selected. Why? If I do this, it returns zero record which is correct SELECT * FROM table1 WHERE mydate >= NOW()
The first query was executed correctly in local but not live server.
How do I go about troubleshooting this? Is it because of different MySQL version, time setting, server setting... What am I looking for?
Thanks.