How to change MySQL database collation from phpMyAdmin in cPanel

Sometime you may require to change MySQL collation in your web hosting account to use foreign character encoding. There are many ways to change MySQL collation. Here are the steps to change MySQL collation from phpMyAdmin in cPanel:

[1] Login to your cPanel and click on “phpMyAdmin” icon.
[2] Click on your database name and the go to “Operations” tab.
[3] At the bottom of the page you will see the collation option. You can now select a collation from the drop down menu and click on the Go button.

Please note that the new collation will be set for new tables only. Old table will use the previous collation under which they were created. If you want to use new collation for already created tables, you will need to change collation for all tables.

This Post Has 5 Comments

  1. Ritesh

    Hi,

    Thanks for the steps.

    Ritesh

  2. maqsoodahmad

    how i can change database on my site

    1. kailash

      Are you referring to rename your MySQL database?

  3. jay bharat

    See if u want to use other then engish in your data base so u should have set Collation value as utf_char8 like p>???????? ?? ????????? ????????????? ?? ??????????????? ?? ?? ???????? ?? ???????? ??? ?? ????? ?? ?????? ??? ???? ?? ???? ?? ???? ?? ??. ?????? ???????? ?? ???? ?? ?? ???? ??? ??? ???? ???? ??????? ??? ???????? ??? ?????? ??.

    Above line reflected as same ooutput, but if u dont use utf_char8 as Collation then output become like this ?????? ??? ???? ???? ???

  4. jay bharat

    See if u want to use other then engish in your data base so u should have set Collation value as utf_char8 like p>???????? ?? ????????? ????????????? ?? ??????????????? ?? ?? ???????? ?? ???????? ??? ?? ????? ?? ?????? ??? ???? ?? ???? ?? ???? ?? ??. ?????? ???????? ?? ???? ?? ?? ???? ??? ??? ???? ???? ??????? ??? ???????? ??? ?????? ??.

    Above line reflected as same ooutput, but if u dont use utf_char8 as Collation then output become like this ?????? ??? ???? ???? ???

Leave a Reply