Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Jul 20, 2015 3:51 pm 
Offline
Junior Member
User avatar

Joined: Wed Oct 20, 2010 7:10 pm
Posts: 36
Location: Sebastopol, CA
Hi,

I recently migrated MySQL from one disk to another disk. It looks like as a result the information_schema.TABLES.CREATE_TIME has been updated on multiple InnoDB records to be the date of the migration rather than the correct original dates. I can see the correct date on the file system for the representative .frm files.

Code:
-rw-rw----  1 mysql mysql 8.4K Mar 17 17:03 home_201503b.frm


I tried to update information_schema.TABLES.CREATE_TIME for one of these tables and received an error message.

Code:
mysql> UPDATE information_schema.TABLES SET CREATE_TIME='2015-03-17 17:03:00' WHERE TABLE_SCHEMA='foo' AND TABLE_NAME='home_201503b';
ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'information_schema'


root has full access.

Is there any way to make this change?

Thanks, Josh


Top
   
PostPosted: Wed Jul 22, 2015 12:19 am 
Offline
Junior Member
User avatar

Joined: Wed Oct 20, 2010 7:10 pm
Posts: 36
Location: Sebastopol, CA
I believe I have solved this one. the information_schema database is read-only and reads the modification time of the .frm files representing the InnoDB tables. I need to adjust the modification time of these .frm files to match their creation time.

Explanation of modification time read:
https://bugs.mysql.com/bug.php?id=69990

Suggestion for modifying file modification time:
http://askubuntu.com/questions/62492/ho ... -of-a-file


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group