By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,563 Members | 1,280 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,563 IT Pros & Developers. It's quick & easy.

How to export db or table structure?

P: n/a
Hi All -

I'm a newbie to the database area, but have inherited a MySQL database to
manage along with my development duties.

We have a very large MySQL database, and the designer of the database no
longer works for us. I need to re-create the same table structure, but
without the content, on a separate machine.

I know I can do a show tables on the existing db, and also a describe on
those tables, so I know what the table structure looks like. I am trying to
avoid having to re-type the create table statements for each table.

Is there some kind of export command that will export that info to a file
without the contents of the tables themselves?

The current MySQL server version is 3.23.2-alpha-log. It is running on
SunOS 5.6 (i386).

If it matters, the new box will be a dual proc linux server, probably
running RedHat 6.x or 7.x. We want to start with an empty database on that

Sorry if this is a faq, but I didn't see it listed anywhere.


MySQL General Mailing List
For list archives:
To unsubscribe:***********

Jul 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.