Welcome to the Linux community forum and interact with 2 million technical staff to access 32. ERROR1031 (HY000): Large; 34. mysqlflushtablecityforexport; -- lock the table. 35. QueryOK, 0r
Welcome to the Linux community forum and interact with 2 million technical staff> enter 32. ERROR 1031 (HY000): Table storage engine for 'city' doesn' t havethis option 33. mysql alter table cityengine = innodb; 34. mysql flush table cityfor export; -- lock the table. 35. Query OK, 0 r
Welcome to the Linux community forum and interact with 2 million technicians>
32. ERROR 1031 (HY000): Table storage engine for 'city' doesn' t havethis option
33. mysql> alter table cityengine = innodb;
34. mysql> flush table cityfor export; -- lock the table.
35. Query OK, 0 rows affected (0.18 sec)
36.
Copy the table file to the target location
C: \ ProgramData \ MySQL Server 5.6 \ data \ world> mkdir city
C: \ ProgramData \ MySQL Server 5.6 \ data \ world> copy city. * city
City. cfg
City. frm
City. ibd
3 file (s) copied.
C: \ ProgramData \ MySQL Server 5.6 \ data \ world> cd city
C: \ ProgramData \ MySQL Server 5.6 \ data \ world \ city> dir
Volume in drive C has no label.
Volume Serial Number is D0FA-F7A0
Directory of C: \ ProgramData \ MySQL Server 5.6 \ data \ world \ city
10/10/2013 10: 58 AM
.
10/10/2013 10: 58 AM
..
10/10/2013 AM 582 city. cfg
10/10/2013 AM 8,710 city. frm
10/10/2013 AM 475,136 city. ibd
3 File (s) 484,428 bytes
2 Dir (s) 224,676,024,320 bytes free
Delete tablespaces of the same name on the target database.
Mysql> unlock tables; -- release the lock.
2. Query OK, 0 rowsaffected (0.07 sec)
3. mysql> alter table city discard tablespace; Delete possible tablespaces with the same name
4. Query OK, 0 rowsaffected (0.23 sec)
5. mysql> selectcount (*) from city;
6. ERROR 1814 (HY000): Tablespace has been discarded for table 'city'
7. mysql> alter tablecity import tablespace;
8. ERROR 1146 (42S02): Table 'World. City' doesn' t exist
9. C: \ ProgramData \ MySQL \ MySQLServer 5.6 \ data \ world \ city> copy city .*..
10. city. cfg
11. city. frm
12. Overwrite... \ city. frm? (Yes/No/All): yes
13. Access is denied.
14. city. ibd
15. 2 file (s) copied.
16. C: \ ProgramData \ MySQL Server 5.6 \ data \ world \ city>
17. mysql> alter table city import tablespace;
18. Query OK, 0 rows affected (0.94 sec)
19. mysql> select count (*) from city;
20. + ---------- +
21. | count (*) |
22. + ---------- +
23. | 4079 |
24. + ---------- +
25.1 row in set (0.08 sec)
The tablespace is successfully created.
[1] [2]