distal-attribute
distal-attribute
distal-attribute
distal-attribute

Should I backup the information_schema?

User, date Message
Written by Soporose
2 years ago
Category: Import/Export
23 posts since Sat, 25 Jul 09
Hi folks.

When doing a backup by Export, is it necessary to include the information_schema, or will just the database be sufficient to effect a recovery if needed?

Whenever I do an Export which includes the information_schema I get:

Table: PROFILING
Rows: error
Duration: SQL error (1289) The 'SHOW PROFILE' feature is disabled...

Table: USER_STATISTICS
Rows: error
Duration: SQL error (1227) Access denied; you need the PROCESS,SUPER privilege for this operation

I'm guessing these aren't important messages/omissions as far as a safety backup is concerned. Right or wrong?
Written by ansgar
2 years ago
4973 posts since Fri, 07 Apr 06
information_schema should never be backuped, for the same reason why you never backup the result of a SHOW TABLE STATUS result, or SHOW PROCESSLIST. This db only contains transient information which can be very useful at runtime, but never contains any real data you need afterwards for anything.
Written by Soporose
2 years ago
23 posts since Sat, 25 Jul 09
Understood, and thank you.
 

Please login to leave a reply, or register at first.