Exporting & Importing a SQL Dump

Exporting & Importing a SQL Dump

This is not a tutorial, it is simply a quick help on exporting and importing mysql database dumps. I hope you enjoy!

Exporting a SQL Dump

To export a mysql database dump:

							
							
					mysql -u <username> -p <db_name> > /path/to/dump.sql				
			

Importing a SQL Dump

To import a mysql database dump:

							
							
					mysql -u <new_db_username> -p new_database_name < /path/to/dump.sql
				
			

That’s a wrap! 

Walter Miely is a tech entrepreneur and CEO of Phoenix Ignited Tech You can find him on Linkedin. This material is licensed under the CC BY 4.0 License LEGAL DISCLAIMER: The content provided here is provided AS IS, and part of, or the entirety of this content may be incorrect. Please read the entireLegal Disclaimer here.