One final bug in Stack install

One final bug in Stack install

by Larry Jones -
Number of replies: 2
When I installed Moodle 1.9.7 I used a BlueHosts script.  I puts latin_Swedish collation.  I need to change to utf8_unicode_ci.  I am using phpMyAdmin to change one table(300) at a time.  Is there anyway to change all the tables at once.  latin_Swedish does not work great for math.
Average of ratings: -
In reply to Larry Jones

Re: One final bug in Stack install

by Richard Siddall -
I haven't done this, but it should (might) work:

0/ Back up your database in case this doesn't work.

1/ In phpMyAdmin, click on the database name, click on the SQL tab, and enter "show tables;" and click the GO button. This should give you a list of all the table names.

2/ Copy the table names into a text editor, then change all the lines to:

ALTER TABLE `tablename` COLLATE utf8_unicode_ci;

where tablename is one of the table names.

3/ Copy the resulting text into phpMyAdmin's SQL tab, and click GO.

That should be it.
In reply to Larry Jones

Re: One final bug in Stack install

by Marc Grober -
Back when the db went to utf there was a script to do this which I am sure is here still somewhere.

But the bigger problem is how the script did this as the migration scripts I thought specifically require utf now....

You may want to hold off doing anything til you are certain of what happened to your moodle on upgrade- if bluehost is converting the DBs to other than utf then they may eventually create a huge mess fortheir customers