-- Use the FROM_UNIXTIME() function in MySQL select from_unixtime(timestamp) from my_tbl;
INSERT INTO ... VALUES ('YYYY-MM-DD HH:MM:SS');