Although you can select INFORMATION_SCHEMA as the default database with a USE statement, you can only read the contents of tables, not perform INSERT, UPDATE, or DELETE operations on them.
From Usage Notes for the INFORMATION_SCHEMA Database
It looks like it is not possible to alter the meta-data of the table.
I was hoping to avoid storing the 'create time' in a user table to save development time.
My caching logic refreshes the table data if it is older than 24 hours. Refreshing can take hours, and I don't want to have to change the caching logic every time I want to re-use old data. Linux has a 'touch' command to update file timestamps, so I was wondering if MySQL had something similar.
Below is my SQL script to recreate the table, which does update the create_time, but is slow:
-- MySQL SQL Script to recreate a table
-- for the purpose of updating the create_time
-- Create copy of the table with its indexes
CREATE TABLE tempForTouch LIKE TableToTouch;
-- Disable the indexes
ALTER TABLE tempForTouch DISABLE KEYS;
-- For performance, lock the tables
LOCK TABLES TableToTouch WRITE, tempForTouch WRITE;
-- Copy the data to the new table
INSERT INTO tempForTouch SELECT * FROM TableToTouch;
-- Unlock the tables
UNLOCK TABLES;
-- Re-enable the indexes
ALTER TABLE tempForTouch ENABLE KEYS;
-- Drop the original table
DROP TABLE TableToTouch;
-- Rename the temporary table to the new table
RENAME TABLE tempForTouch TO TableToTouch;