Let's say the original database is dbSouce and the duplicate is dbDestinatio.Image may be NSFW.
Clik here to view.
- Login in MySql, Create a new database, dbDestination
- Set permissions new database.
- Run this command in console, for duplicate database
[root@LinuxServer ~]# mysqldump -u root -pMyPassword dbSouce | mysql -u root -pMyPassword dbDestination
Notice: There is no space between -p and the password.
Clik here to view.
- Login in MySql, Create a new database, dbDestination
- Set permissions new database.
- Run this command in console, for duplicate database
[root@LinuxServer ~]# mysqldump -u root -pMyPassword dbSouce | mysql -u root -pMyPassword dbDestination
Image may be NSFW.
Clik here to view.
Clik here to view.
Notice: There is no space between -p and the password.