WillSquire
7/11/2017 - 12:43 PM

Export/Import database dump via command line

Export/Import database dump via command line

Export a database dump via command line:

mysqldump -u <username> -p <databasename> > <filename.sql>

Import database dump via command line:

mysql -u <username> -p <databasename> < <filename.sql>