Domanda

First of all we created a moodle site on our local machine. Afterwards we integrated our work using TFS (Team Foundation Server). Now we changed the ibdata1 file in our database which includes the change of all people and took the latest version of the site from TFS. But now whenever any activity or resource is being created in MOODLE site, mysql stops unexpectedly and says DATABASE READ AND WRITE ERROR; while login takes place effectively and reads the username and password from database. The error message shows that your database must be corrupted or you may not have the priveleges or block port or shutdown by another method. While log shows database "you have moved .frm files to another database? or, the table contains indexes that this version of the engine doesn't support." and sometimes "The InnoDB memory heap is disabled". Please help.

È stato utile?

Soluzione

Have you copied the database frm files rather than doing a data dump? This won't work. You need to do a database dump and restore.

On the original server either use phpmyadmin or mysqldump. Phpmyadmin should be already installed by xammp

If the server is your local machine, you can access phpmyadmin via

http://localhost/phpmyadmin

Then go to database name, click the export tab and click go. This will download an sql file.

Then on the destination server, do the reverse. Go to phpmyadmim, you will need to create a blank database, then click the import tab and select the sql file.

Also copy the moodle data folder, this is a straight forward copy.

http://docs.moodle.org/26/en/Moodle_migration

Don't try to merge 3 databases, the id's will be out of sync and the data will be completely useless.

If the code from the other developers has been written correctly, they will have install.xml files and possibly upgrade.php or install.php files to make any structure changes to the database.

http://docs.moodle.org/dev/Upgrade_API

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top