1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2024-11-18 11:05:16 +00:00

docs(mysql): import/export commands

This commit is contained in:
Julien Le Coupanec 2020-06-21 18:37:44 +02:00
parent 25e170d887
commit 9a571c5ffe

View File

@ -2,4 +2,5 @@
# BASICS
# *****************************************************************************
mysqldump -h hostname-of-the-server -u mysql_user -p database_name > file.sql # Dump database
mysqldump -h hostname -u username -p database_name -P port > file.sql # Export database
mysql -u username -p database_name < file.sql # Import database