MySQL MariaDB export and import database

# Export
mysqldump -u [username] -p[password] [database_name] > [dumpfilename.sql]

# Import
mysql -u [username] -p[password] [database_name] < [dumpfilename.sql]


Posted

in

,

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.