How to copy mysql database from terminal

    To copy mysql database from terminal use following commands create database before copying from mysql console create database
    mysqldump -u root -p <db1> | mysql -u root -p <db2>
    Note: above command will run on linux terminal not on mysql console
    0

    User login