How To Import/Export MySQL Database in Rails?
Here’s How you can Import and Export MySQL Database – To Export DB mysqldump -u [username] -p [db_name] > [sql_file_name.sql] – Make its tar(compress) for easily share with other system: tar -czvf [any_name.tar.gz] [sql_file_name.sql] – Share it to the other system where you want to import it. – Untar the compressed file:tar -xzf [any_name.tar.gz] …