How to change the MySQL collation settings in phpMyAdmin

This article describes how to use phpMyAdmin to change the collation settings for MySQL databases and tables.

About character sets and collation

MySQL enables you to store and process data in a wide variety of languages using various character sets. For some operations, such as comparing two strings, MySQL uses a set of rules to determine equality and sorting order. This set of rules is known as a collation.

You may have to change the collation for a database or table based on the character set you want to use for string data. You can do this by using the phpMyAdmin tool in cPanel.

Changing the default collation for a database

To change the default collation for a database, follow these steps:

  1. Log in to cPanel.
    If you do not know how to log in to your cPanel account, please see this article.
  2. Open phpMyAdmin:
    • If you are using the Jupiter theme, on the Tools page, in the Databases section, click phpMyAdmin:

      cPanel - Databases - phpMyAdmin icon

    • If you are using the Paper Lantern theme, in the DATABASES section of the cPanel home page, click phpMyAdmin:

      phyMyAdmin

  3. The phpMyAdmin administration page appears in a new window. In the left pane, click the name of the database you want to modify.
  4. On the top menu bar, click Operations.
  5. Under Collation, select the collation that you want for the database, and then click Go.

    This setting only affects new tables that you create. Any existing tables maintain their current collation setting.

Changing the collation for a table

To change the collation for a database table, follow these steps:

  1. Log in to cPanel.
    If you do not know how to log in to your cPanel account, please see this article.
  2. Open phpMyAdmin:
    • If you are using the Jupiter theme, on the Tools page, in the Databases section, click phpMyAdmin:

      cPanel - Databases - phpMyAdmin icon

    • If you are using the Paper Lantern theme, in the DATABASES section of the cPanel home page, click phpMyAdmin:

      phyMyAdmin

  3. The phpMyAdmin administration page appears in a new window. In the left pane, click the + icon next to the name of the database that contains the table you want to modify. phpMyAdmin expands the view to show the database's tables.
  4. Click the name of the table you want to modify.
  5. On the top menu bar, click Operations.
  6. Under Table options, in the Collation list box, select the collation that you want for the table, and then click Go.

More Information

For more information about character sets and collation in MySQL, please visit https://dev.mysql.com/doc/refman/5.5/en/charset-general.html.

Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.

We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.