How to change the MySQL collation settings in phpMyAdmin

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

  1. Log in to cPanel.
  2. In the DATABASES section of the cPanel home screen, click :

    The phpMyAdmin administration page appears in a new window.
  3. 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

  1. Log in to cPanel.
  2. In the DATABASES section of the cPanel home screen, click :

    The phpMyAdmin administration page appears in a new window.

  3. 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.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to manage MySQL databases and users in cPanel

Managing database users To access MySQL databases, you must first create at least one user. The...

How to access phpMyAdmin and phpPgAdmin in cPanel

Accessing phpMyAdmin in cPanel Log in to cPanel. In the DATABASES section of the cPanel home...

How to configure remote MySQL access in cPanel

This article describes how to use cPanel to allow external hosts to access your MySQL databases....

How to use phpMyAdmin to copy a MySQL database

Copy MySQL database To copy a MySQL database using phpMyAdmin, follow these steps: Log in to...

How to optimize and repair MySQL databases using phpMyAdmin

Optimizing MySQL databases Databases have the potential to grow very large, particularly on...

Powered by WHMCompleteSolution