将Mysql latin1_swedish_ci转换为utf8_bin [英] Convert Mysql latin1_swedish_ci to utf8_bin

查看:245
本文介绍了将Mysql latin1_swedish_ci转换为utf8_bin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何使用SQL或命令行将* MySql latin1_swedish_ci *(例如,有重)转换为* utf8_bin *(所有重).有可能吗?

I want to know how to convert *MySql latin1_swedish_ci*(eg.所 有 重) to *utf8_bin*(所 有 重) using SQL or command line. Is it possible or not?

推荐答案

您可以尝试

将现有的MySQL 数据库从一种字符集编码转换为另一种

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;

希望获得帮助.

纳撒芬

这篇关于将Mysql latin1_swedish_ci转换为utf8_bin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆