Uppi
Uppi

Reputation: 722

How to create mysql database baseline without data

How to create a mysql database baseline without data in it so that we could just use the base line to create another instance??

Upvotes: 1

Views: 377

Answers (1)

Norbert
Norbert

Reputation: 6084

Create a dump of the schema only:

mysqldump -d yourdatabase >dumpfile.sql

Import this dump into your new database:

mysql yournewdatabase <dumpfile.sql

Upvotes: 2

Related Questions