Migrate my Dolibarr To the Cloud: Difference between revisions

Jump to navigation Jump to search
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">
aaa
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 yourdatabasename -u mysql_user -pmysql_password < dumpfile
mysql -h yourinstance.on.dolicloud.com -P 3306 -D doliclouddatabase -u doliclouduser -pdolicloudpassword < dumpfile
</source>
</source>

Navigation menu