If you like to follow my second alternative (doing a copy of the db), then you can do everything in phpmyadmin:
1) select the database, go to "operations" > "Copy database to", enter a new database name, select "Structure and data", "CREATE DATABASE before copying", "Add AUTO_INCREMENT value" and "Switch to copied database" and click on go. This should create a copy of the database with all data and switch phpmyadmin directly to the new database.
2) Now, in this new database, click on every table that is of type myisam, click on "operations", go to "Storage Engine" and select "InnoDB" instead of "MyIsam" and click on "go". Repeat this for every table in the database.
An alternative method might be to:
1) Export the database in phpmyadmin and save it as .sql file.
2) Edit the .sql file with a text editor and replace all occurrences of "ENGINE=MyISAM" with "ENGINE=InnoDB".
3) Create a new database in phpmyadmin and import the sql dmp again.
But depending on the size of your database, the db might be too large for phpmyadmin to export and import it, in that case you would have to use the mysqldump command on the shell for the export and the mysql command for reimporting the db.
Last edited by till; 21st January 2011 at 11:30.
|
Recent comments
13 hours 44 min ago
18 hours 49 min ago
23 hours 13 min ago
1 day 1 hour ago
1 day 15 hours ago
1 day 15 hours ago
1 day 20 hours ago
2 days 2 hours ago
2 days 3 hours ago
2 days 5 hours ago