To change the MySQL charset, follow these steps:
1. Access the cPanel:
- Log in to your cPanel account.
2. Access phpMyAdmin:
- In cPanel, find the "Databases" section and click on "phpMyAdmin".
.png)
3. Select the Database:
- In phpMyAdmin, on the left panel, click on the name of the database whose charset you want to change.
4. Change the Database Charset:
-
Click on the "Operations" tab.
-
In "Collation", select the desired charset from the dropdown list (e.g., utf8_general_ci for UTF-8).
-
Click on "Go" to apply the change.
.png)
5. Change the Table Charset:
-
Return to the left panel and click on the name of each table for which you want to change the charset.
-
Click on the "Operations" tab for each table.
-
In "Table options", select the desired charset from the "Collation" dropdown list.
-
Click on "Go" to apply the change for each table.
.png)
6. Change the Column Charset:
-
To change the charset of specific columns, click on the "Structure" tab of the table.
-
Next to the desired column, click on "Change".
-
In the collation field, select the desired charset.
-
Click on "Save" to apply the change.
.png)
.png)
By following these steps, you can effectively change the charset of your MySQL database through phpMyAdmin.