-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate Database: Safest way #77
Comments
Hi, On the old host, take a From here on the new host you should be able to run a command like:
and the new database will be populated with all your old data. Edit: If you're worried about messing up the old database it would be worth taking the mysqldump first so you will still have all the data if something does goes wrong. Edit 2: Assuming you're going from an older dotproject version to a new one, you will also have to upgrade the database. This can be done by dumping the old data in the new database first, then going through the dotproject install wizard as usual. |
Hi Givo, thank you for the quick answer. But I don't want to migrate the hole application, just migrate the database. The application (php/apache server) will remain on server .100, for ie., and only the database I need to migrate to another server where all other MySQL databases are. The problem is about editing manually those config files on /include. Besides the warning about not to do it manually, could I? Is there any side effect of doing it? Regards! |
Ok I understand. You should be able to edit any files you need to without any side effects. You can always revert your changes with git in case something does happen, and if you take an sqldump of all your data before hand you will be fine. There are a couple of files that are excluded from git however so a general backup may also be a good idea. |
Thank you Givo. Made a full backup of database (parameters are optional): Created the database users manually. Gave permissions and flush privileges on the new database server. Then, modified ../include/config.php from dotproject folder:
Saved config.php and that's it. Everthing works flawless! :) |
Hello!
I need to migrate the dotProject database from host, ie.: .100 to .175, but since i'm not suppose to manually edit config-dist.php ou config.php, what is the correct way of doing this, without deleting/erasing the actual database on .100? I'm afraid pointing out to /install and the scripts ends up deleting my populated database.
The text was updated successfully, but these errors were encountered: