Hello Moodlers,
I've exported my moodle database as an sql file from my production server and have been trying to import it to a local copy on my computer that I have set-up for testing using XAMPP.
Exporting the database always works fine, but I have never been able to get the sql file to import on my local machine....it always times out.
I thought the database may be too large (even though it's only about 10meg), so I have even exported the database several tables at a time, resulting in my sql files being between 2 and 4 megs...still no luck. I even exported as a zip and gzip (about a 1.3mb file) and still get a time out when trying to upload in phpmyadmin.
Everytime I try to restore the files through the SQL window in phpmyadmin, it looks like it gets through about 1/3 of the process and then stops and times out.
I've gone into phpmyadmin/config.default.php and changed "ExecTimeLimit" to "0", but I still get an error message that it has timed-out after 300 seconds...which was the default. Anyway, I don't think the time-out is the problem, since it looks like the upload stops after it gets about 1/3 of the way through....judging by the progress indicator.
I'm sure there has to be some setting in either php or mysql, but I haven't found it yet....still searching and exploring.
On a side note, I did export just a couple of tables (user tables) that resulted in a sql file smaller than 1 meg and that one imported fine.
Any suggestions would be appreciated. Thanks.