Skip to content

Instantly share code, notes, and snippets.

@DastanIqbal
Created July 6, 2020 09:30
Show Gist options
  • Save DastanIqbal/516fdff13d9738ea973fd75d04869fe0 to your computer and use it in GitHub Desktop.
Save DastanIqbal/516fdff13d9738ea973fd75d04869fe0 to your computer and use it in GitHub Desktop.
Export Import MySQL/MariaDB Databases

Export existing Databases

 mysqldump --all-databases > dump.sql

If you want to download from your website

mv dump.sql /var/www/vhosts/webiste/git/repo/src/public/

Login in Server

wget https://website/path/dump.sql

Import databases

mysql < dump.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment