简体   繁体   中英

MySQL query recovery

I created a database for my class and inserted all of my data into the tables but I did not save the queries I used to create them. Is there any way that I can get back the queries I originally used to input all of the data so that I can save them to a separate query tab?

For the tables issue the SHOW CREATE TABLE <table name>; command. For the data you can use a tool like phpMyAdmin or HeidiSQL (Windows) to create an export of the table contents.

您可能可以执行mysqldump --no-data dbname

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM