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]

,

Leave a Reply

Your email address will not be published.

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