Project

General

Profile

Mysqldump of your database » History » Version 2

Anchi Cheng, 02/12/2015 12:41 PM

1 1 Anchi Cheng
h1. Mysqldump of your databases
2
3
mysqldump is a tool comes with mysql installation that creates mysql commands that can reproduce the database when executed on a different host.
4
5
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.
6
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.
7
A hint: the information is in sinedon.cfg
8
9
Once these are figured out, here is the command using our standard naming used in this wiki.
10
11
<pre>
12
mysqldump -h your_host -u usr_object -p leginondb > your_leginondb_dump.sql
13
mysqldump -h your_host -u usr_object -p projectdb > your_projectdb_dump.sql
14
</pre>
15
16
Each of these commands will ask you for the password.
17 2 Anchi Cheng
18
19
____________
20
[[Load mysqldumped databases |Load the saved databases >]]