Mysqldump of your database » History » Revision 2
Revision 1 (Anchi Cheng, 11/24/2014 10:41 PM) → Revision 2/6 (Anchi Cheng, 02/12/2015 12:41 PM)
h1. Mysqldump of your databases
mysqldump is a tool comes with mysql installation that creates mysql commands that can reproduce the database when executed on a different host.
If you run into problems that you can not decribe the history of getting there to leginon team, this might be the best way for us to dicover what went run.
You will need help from the person who installed the packages if you don't know what the name of the databases are and the mysql user that have the permission to do this.
A hint: the information is in sinedon.cfg
Once these are figured out, here is the command using our standard naming used in this wiki.
<pre>
mysqldump -h your_host -u usr_object -p leginondb > your_leginondb_dump.sql
mysqldump -h your_host -u usr_object -p projectdb > your_projectdb_dump.sql
</pre>
Each of these commands will ask you for the password.
____________
[[Load mysqldumped databases |Load the saved databases >]]