I have a MySQL server installed on Solaris 10u8. Until recently, everything was working fine. Then all of a sudden, the current time according to MySQL is always 00:00:00. CURDATE() seems to work fine except that the time it gives is still 00:00:00. I have some illustrations of my problem below. I have tried rebooting the machine. I have no idea what to do and this is messing up my web application. Any ideas?
-bash-4.1$ Fri Jul 9 11:01:42 EDT 2010
.......
.......
mysql> create table timetest (datetime datetime);
Query OK, 0 rows affected (0.01 sec)
mysql> insert into timetest values (curtime());
Query OK, 1 row affected, 1 warning (0.01 sec)
mysql> select * from timetest;
+---------------------+
| datetime |
+---------------------+
| 0000-00-00 00:00:00 |
+---------------------+
1 row in set (0.00 sec)
mysql> insert into timetest values (curdate());
Query OK, 1 row affected (0.00 sec)
mysql> select * from timetest;
+---------------------+
| datetime |
+---------------------+
| 0000-00-00 00:00:00 |
| 2010-07-09 00:00:00 |
+---------------------+
2 rows in set (0.00 sec)