MySQL command to dump a database

This is the command you need to do a complete database dump:

mysqldump -u root -proot-password database-name > database.sql

To restore from a database file you can use the following:

mysql -u root -proot-password database-name < database.sql
Sign Up

NEXT: WordPress shortcode menu plugin

Add a WordPress shortcode plugin to your client sites to make managing content even easier!

comments powered by Disqus

Popular Tags

Need a web developer?

If you'd like to work with code synthesis on your next project get in touch via the contact page.