Professional Documents
Culture Documents
Mysql: How To Clone A Database: Mysqldump - Uroot - P My - Project - R My - Project
Mysql: How To Clone A Database: Mysqldump - Uroot - P My - Project - R My - Project
Here is a way to create a duplicate of one database, with all its tables and their data, under a new
name.
1. Make a dump of your source database:
COPY
COPY
COPY
mysql -uroot -p
3. From the MySQL shell, create a new database and populate it with the dumped data:
COPY
COPY