I'm running Moodle on Windows, using the self installing kit 1.9 (from http://download.moodle.org/windows/). Since I'm not very experienced in db admin, I've setup a second computer to work out the details of backing up and restoring.
On the real server, I've backed up the sql database to a file and transferred the file to my backup server.
I ran the same installer on the backup test server, and then went to Server->Database-> and tried to import my database backup using the import function. The instructions on this page (http://docs.moodle.org/en/Site_restore) make it seem super easy, but I feel like I'm not even looking at the same program they're describing..
- Open the database to restore
- Click the SQL tab.
- On the "SQL"-page , unclick the show query here again.
- Browse to your backup of the database.
- Click Go
when I go to Server -> Database the first screen I see says Localhost at the top. I click on Databases and see a database called Moodle. I then click on the sql tab, I then uncheck show this query here again. On this tab, there is no where to browse to a backup. I only see an option to run queries against server "localhost". where am I supposed to browse?
I assume I need to import, so I go to Import. Here I browse to my backup file and then press GO. I get an error saying "moodle" database already exists.
I wiped out everything, and did it all again. This time when creating the db during install, I named it Moodle2, hoping I could restore my original moodle db and then change the db being used in config.php to use moodle instead of moodle2.
When I did that I get a message saying ERROR: Database Connection Failed. and it directs me to inspect config.php
has anyone assembled a more complete step-by-step dummy guide to backup and restore? I'm not a complete idiot, and have done this sort of thing a little in the past. But the last time I built a similiar server to do something like it, it ended up taking me 2 or 3 weeks because all the instructions on how to do everything was so segmented. You want to configure email, click here, you want this, click here, you want that, click here. So I spent a lot of time jumping back and forth and giving myself a headache. If I can avoid that this time....I'd certainlly like to.