Convert existing MySQL database from one charset encoding to another
Warning: Always make backups.
Convert existing MySQL database from one charset encoding to another
ALTER DATABASE db_name DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
Convert existing table from one charset encoding to another
ALTER TABLE db_table CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
No comments:
Post a Comment