|
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
(#1)
|
| Operations Manager | Taking (backing up) and restoring MySQL dump files -
21-04-2007, 09:39 PM
Via SSH / MySQL CLI command interface: Dumping a database into a file: Code: mysqldump -u username -ppassword databasename > dumpfilename.sql The file will be saved relative to the location in which you executed the command. So, if you execute the command whilst in the /home/ folder, the dumpfile will be saved to /home/dumpfilename.sql. Note: If you add the parameter "--opt", it will create the database with options to drop existing tables and data when the dump file is imported into a database. Restoring a MySQL dump file: Code: mysql -u username -ppassword databasename < dumpfilename.sql -------------------------------------------------------------------
|
| | |
(#2)
|
(#3)
|
| Operations Manager |
21-04-2007, 10:37 PM
Thanks for the suggestion, updated! -------------------------------------------------------------------
|
| | |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Kayako provides online help desk software and support solutions; enabling companies to improve their support and reduce costs.
Our three main products include: SupportSuite, eSupport and LiveResponse