Question

How can I change the CHAR_SET of an existing database/table in phpmyadmin ?

The collation of tables can be changed by clicking the table name -> operations but I did not find how to change the CHAR_SET

I am trying to export a 5.5 database with utf8mb4 to a 5.0 database (no utf8mb4)

best regards

for people having the same problem here is a post that has the SQL solution on StackOverflow

Was it helpful?

Solution

If you want to change the table default character set to a new character set, use a statement like this:

ALTER TABLE tbl_name CONVERT TO CHARACTER SET charset_name;

So query will be:

ALTER TABLE tbl_name CONVERT TO CHARACTER SET utf8mb4;

Font: How to change the default charset of a MySQL table?

In PHPMyadmin:

You need to go to phpmyadmin > information_schema > schemata > change your DEFAULT_CHARACTER_SET_NAME with query

Font: Change default Charset

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top