Reputation:
I have a mysql database with lots of tables and records in it. I want to get the list of queries which were used to create tables , insert records etc in that mysqldb. Is it possible. I have seen it in Oracle sql developer. If we click on the table we can view the queries which we have used, for DDL. How to do that in msyql. I am using mysql command line client.
Upvotes: 1
Views: 39
Reputation: 1922
You could use the mysqldump-utility for that
In Linux:
mysqldump my_database_name >dumpfile.sql
Upvotes: 1