Change Collation On All Tables And Columns In MySQL with Phoca Changing Collation Utility

I was working with lot of databases collated in latin1_swedish_ci lately. I needed to convert the structure to utf8 collation, but it was very time-consuming to convert all the tables and all the columns manually.

After some googling, I managed to find a PHP utility, called Phoca Changing Collation, which does all the dirty work in a few seconds.

Important: The utility doesn’t convert data, it only changes the collation of the tables and the columns, so if your database is full of non-latin characters, it will probably corrupt them.

Note: You may need to change the collation to utf8_unicode_ci in order to get the cyrilic characters displayed propertly.

20 Comments

  • wow it was soooo handy~
    thanks a lot~!!
    =)

  • Thank you very much!It was really helpful!

  • Great & very useful script.

    thank you so much.

  • I LOVE IT!!!

  • Great article . this is the tool i search.

  • extremly life and time saver please spread the word all over the net

    sincere thanks to the publisher

  • Wow, thanks! this saved me hours of work!

  • Thanks!!! it saved my lot of time….

  • Thanks alot, very good code

  • Perfect! So simple yet so very effective. That saved me around 4hrs work, many thanks!

Leave a comment