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 Comment