Home
LimeSurvey Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Can I change database engines midstream? (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Re:Can I change database engines midstream?
#17555
chiggy (User)
Fresh Lemon
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
[done] Can I change database engines midstream? 3 Months, 1 Week ago Karma: 0  
I want to change from myisam to innodb.
My limesurvey 1.71+ is already in production.
Can I just change the config.php and new surveys will be innodb?
Or do I need to rebuild so to speak and make a completely new database?

Thanks
Charles
 
Logged Logged  
 
Last Edit: 2008/08/13 10:09 By Mazi.
  The administrator has disabled public write access.
#17564
Mazi (Moderator)
Moderator Lime
Posts: 3252
graph
User Offline Click here to see the profile of this user
Re:Can I change database engines midstream? 3 Months, 1 Week ago Karma: 25  
Copy your existing database, do the changes you mentioned with the backup and report back if everything works fine

If limesurvey doesn't run afterwards clear all tables of your backup and try to run the installer again.
 
Logged Logged  
 
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support -> Contact.
  The administrator has disabled public write access.
#17583
chiggy (User)
Fresh Lemon
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
Re:Can I change database engines midstream? 3 Months, 1 Week ago Karma: 0  
Thanks for the reply.
After a lime survey backup via the admin tool and then a - shut down mysql, copy the raw database files...

First I just tried changing the config.php to read:
Code:

$databasetabletype  =   "InnoDB";

Then I created a new survey and checked it's table engine.
It was still myISAM


So I researched a bit on changing engines.
I didnt feel like typing alter commands all night, so I used a gui tool SQL Maestro.
Just a bunch of clicking and changed all the tables to InnoDB.
Made a new survey, and it is InnoDB.
Imported a survey and it's Innodb.
I think I'm good.

To prevent usage of lime survey during the changes, I did a .htaccess to redirect users to a "Down for maintenance" page.
Based off of this: www.techiecorner.com/97/redirect-to-main...rade-using-htaccess/

Thanks again for the help.
Charles

P.S.
I'll check the survey tables later on this week or early next week to see if they continue to be InnoDB.
 
Logged Logged  
 
Last Edit: 2008/08/13 03:49 By chiggy. Reason: post script
  The administrator has disabled public write access.
#17592
Mazi (Moderator)
Moderator Lime
Posts: 3252
graph
User Offline Click here to see the profile of this user
Re:Can I change database engines midstream? 3 Months, 1 Week ago Karma: 25  
Thanks for this detailed feedback.

Of course you always have to change the database engine manually, limesurvey won't do this itself by just setting $databasetabletype = "InnoDB";
 
Logged Logged  
 
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support -> Contact.
  The administrator has disabled public write access.
Go to top