Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to copy a schema

Status
Not open for further replies.

dave755

IS-IT--Management
May 3, 2001
69
US
I have developed an application around a mySQL database.

Naturally, as development has proceeded, the schema of the database has mutated away from my original design. Therefore, I no longer have a SQL script that describes how to create this database and all of its tables.

My next step is to install copies of this application on several new servers. I only want the schema of the database - the test data that is in the current DB is not interesting for production use.

So, my question is: Is there a way in mySQL to automatically generate a SQL script that will reproduce my database? It would be even better if the script were editable so that I can go in and comment it.

Thanks.

Dave Gee
 
try mysqldump -d or mysqldump --no-data



[ponder]
----------------
ur feedback is a very welcome desire
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top