mysql_mysqldump_intro
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
mysql_mysqldump_intro [2015/12/14 12:17] – luke7858 | mysql_mysqldump_intro [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
=== Dumping and Importing database === | === Dumping and Importing database === | ||
- | To take a mysql dump you should not be logged into mysql, you will just need to be in the terminal. Use the following command to export the db to the directory you are currently in. | ||
- | \\ | ||
Best practice states that the / | Best practice states that the / | ||
\\ | \\ | ||
+ | Creating the file is as easy as: | ||
+ | <sxh bash> | ||
+ | vim / | ||
+ | </ | ||
+ | <sxh bash> | ||
+ | [client] | ||
+ | user: root | ||
+ | password: mypassword | ||
+ | </ | ||
=== Viewing databases outside of mysql === | === Viewing databases outside of mysql === | ||
You can view your mysql databases without logging into mysql with the following command: | You can view your mysql databases without logging into mysql with the following command: |
mysql_mysqldump_intro.1450095435.txt.gz · Last modified: 2024/05/23 07:26 (external edit)