mysql copies the files in the data directory to restore the dataBackground: MySQL crashed and could not be started. I decided to rebuild the environment, but I forgot to back up the database test data. The MySQL data directory survived. operate: 1. Copy the folder of the test database (including .frm .ibd and other files)2. Restart MySQLWhen viewing a table in the database through Navicat, the result shows "Table 'xxx' does not exist" 3. After searching on Google and Baidu, I found the innodb tableDirectly copying the file is not usable, and it will prompt that the table does not exist. When copying, the ibdata1 file in the data directory should be copied together, and the ib_logfile0, ib_logfile1 and other files should be deleted. mysql migrates the database by copying data files1. Shut down the serviceRun cmd as an administrator and execute the following command: net stop mysql 2. Copy data filesCopy the database file of the data file (no need to copy mysql, performance_schema, sys), and be sure to copy the ibdata1 file 3. Import filesPut the copied file into the data file of the destination database The above is my personal experience. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Search optimization knowledge to pay attention to in web design
>>: Three ways to achieve background blur in CSS3 (summary)
There are two types of html tags, inline elements...
Deleting a table is not very common, especially f...
Since this is my first post, if there are any mis...
Considering that many people now use smartphones, ...
I am using the Ubuntu 16.04 system here. Installa...
Just like this effect, the method is also very si...
Table of contents 1. MySQL replication process 2....
Table of contents Presentation Layer Business Lay...
Table of contents Browser kernel JavaScript Engin...
Introduction When the MySQL InnoDB engine queries...
Today I'd like to introduce a countdown made ...
MySQL foreign key constraint (FOREIGN KEY) is a s...
Related article: Beginners learn some HTML tags (1...
Readonly and Disabled both prevent users from chan...
The most significant website change in 2011 was Go...