30,997
edits
| Line 38: | Line 38: | ||
Go on any computer where MySql and mysqldump command is install. Launch the following command to save the new DoliCloud initialized database (to restore DoliCloud it if something wrong later). | Go on any computer where MySql and mysqldump command is install. Launch the following command to save the new DoliCloud initialized database (to restore DoliCloud it if something wrong later). | ||
<source lang="bash"> | <source lang="bash"> | ||
mysqldump -h yourinstance.on.dolicloud.com -P 3306 -u doliclouduser -pdolicloudpassword -Ddoliclouddatabase > dolicloud.YYYYMMDD.sql | |||
</source> | </source> | ||
where all information yourinstance.on.dolicloud.com ,doliclouduser, dolicloudpassword and doliclouddatabase can be found onto your DoliCloud dashboard. | |||
* Run the following command to overwrite database with database of your old server. | * Run the following command to overwrite database with database of your old server. | ||
<source lang="bash"> | <source lang="bash"> | ||
mysql -h yourinstance.on.dolicloud.com -P 3306 -D | mysql -h yourinstance.on.dolicloud.com -P 3306 -D doliclouddatabase -u doliclouduser -pdolicloudpassword < dumpfile | ||
</source> | </source> | ||