How to export and Import mysql database using command line.
Export In order to export the database from mysql,Open your terminal and type the following command. mysqldump -u [your_username] -p[your_database_password] [database_name] > path_to_your_directory/[database name].sql Incase of database from remote server.…