Last Updated: February 25, 2016
·
458
· oriolgual

Backup and Restore a MySQL DB

mysqldump -u root -p[root_password] [database_name] > dumpfilename.sql

mysql -u root -p[root_password] [database_name] < dumpfilename.sql

Not really a pro tip, but I always forget about it.