mirror of
https://github.com/namibia/awesome-cheatsheets.git
synced 2024-12-22 01:58:54 +00:00
docs(mysql): import/export commands
This commit is contained in:
parent
25e170d887
commit
9a571c5ffe
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user