You cannot restore information_schema. It's the internal database where mysql keeps all the schema of all other databases. To restore it, restore all other databases and everything will go back into it.
Edited By RolandoMySQLDBA 2012-01-06 16:15 EDT
Every table in INFORMATION_SCHEMA is a temporary table.
Example of information_schema.schemata
mysql> show create table information_schema.schemata\G
*************************** 1. row ***************************
Table: SCHEMATA
Create Table: CREATE TEMPORARY TABLE `SCHEMATA` (
`CATALOG_NAME` varchar(512) NOT NULL DEFAULT '',
`SCHEMA_NAME` varchar(64) NOT NULL DEFAULT '',
`DEFAULT_CHARACTER_SET_NAME` varchar(32) NOT NULL DEFAULT '',
`DEFAULT_COLLATION_NAME` varchar(32) NOT NULL DEFAULT '',
`SQL_PATH` varchar(512) DEFAULT NULL
) ENGINE=MEMORY DEFAULT CHARSET=utf8
1 row in set (0.02 sec)
There is no manifested folder for INFORMATION_SCHEMA in /var/lib/mysql
To prove that the information_schema is restored as Mathieu Dumoulin specified, perform the following:
- In mysql
SHOW DATABASES; or SELECT schema_name FROM information_schema.schemata;
- in the OS,
mkdir /var/lib/mysql/matt
- In mysql
SHOW DATABASES; or SELECT schema_name FROM information_schema.schemata;
The database matt instantly materializes.
This would hold true for every database and table reloaded.
INFORMATION_SCHEMA. Do you have actual databases to restore?