MySQL Forums
Forum List  »  Newbie

Re: copying DB table definitions
Posted by: Felix Geerinckx
Date: November 18, 2005 02:27AM

jayd_fez1701 wrote:

> I'm hoping there is some way to get MySql to generate (for an existing table) the code that
> would create that table if it were not already present.

From the OS command prompt, run:

$ mysqldump -uuser -ppassword --no-data --add-drop-table=0 db_name >db_dump.sql

--
felix
Please use BBCode to format your messages in this forum.

Options: ReplyQuote


Subject
Written By
Posted
November 17, 2005 07:44PM
Re: copying DB table definitions
November 18, 2005 02:27AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.