• <legend id='NOIOi'><style id='NOIOi'><dir id='NOIOi'><q id='NOIOi'></q></dir></style></legend>
    <tfoot id='NOIOi'></tfoot>

      <i id='NOIOi'><tr id='NOIOi'><dt id='NOIOi'><q id='NOIOi'><span id='NOIOi'><b id='NOIOi'><form id='NOIOi'><ins id='NOIOi'></ins><ul id='NOIOi'></ul><sub id='NOIOi'></sub></form><legend id='NOIOi'></legend><bdo id='NOIOi'><pre id='NOIOi'><center id='NOIOi'></center></pre></bdo></b><th id='NOIOi'></th></span></q></dt></tr></i><div id='NOIOi'><tfoot id='NOIOi'></tfoot><dl id='NOIOi'><fieldset id='NOIOi'></fieldset></dl></div>
        • <bdo id='NOIOi'></bdo><ul id='NOIOi'></ul>

        <small id='NOIOi'></small><noframes id='NOIOi'>

        如何将整个 MySQL 数据库字符集和排序规则转换为

        时间:2023-08-20
      1. <legend id='eXfqs'><style id='eXfqs'><dir id='eXfqs'><q id='eXfqs'></q></dir></style></legend>

        • <i id='eXfqs'><tr id='eXfqs'><dt id='eXfqs'><q id='eXfqs'><span id='eXfqs'><b id='eXfqs'><form id='eXfqs'><ins id='eXfqs'></ins><ul id='eXfqs'></ul><sub id='eXfqs'></sub></form><legend id='eXfqs'></legend><bdo id='eXfqs'><pre id='eXfqs'><center id='eXfqs'></center></pre></bdo></b><th id='eXfqs'></th></span></q></dt></tr></i><div id='eXfqs'><tfoot id='eXfqs'></tfoot><dl id='eXfqs'><fieldset id='eXfqs'></fieldset></dl></div>
              <bdo id='eXfqs'></bdo><ul id='eXfqs'></ul>
                  <tbody id='eXfqs'></tbody>

                  <small id='eXfqs'></small><noframes id='eXfqs'>

                1. <tfoot id='eXfqs'></tfoot>

                  本文介绍了如何将整个 MySQL 数据库字符集和排序规则转换为 UTF-8?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  如何将整个 MySQL 数据库字符集转换为 UTF-8 并将排序规则转换为 UTF-8?

                  How can I convert entire MySQL database character-set to UTF-8 and collation to UTF-8?

                  推荐答案

                  使用ALTER DATABASEALTER TABLE 命令.

                  ALTER DATABASE databasename CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
                  ALTER TABLE tablename CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
                  

                  或者,如果您仍在使用不支持 4 字节 UTF-8 的 MySQL 5.5.2 或更低版本,请使用 utf8 而不是 utf8mb4:

                  Or if you're still on MySQL 5.5.2 or older which didn't support 4-byte UTF-8, use utf8 instead of utf8mb4:

                  ALTER DATABASE databasename CHARACTER SET utf8 COLLATE utf8_unicode_ci;
                  ALTER TABLE tablename CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci;
                  

                  这篇关于如何将整个 MySQL 数据库字符集和排序规则转换为 UTF-8?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                2. <tfoot id='0jHfB'></tfoot>
                  <i id='0jHfB'><tr id='0jHfB'><dt id='0jHfB'><q id='0jHfB'><span id='0jHfB'><b id='0jHfB'><form id='0jHfB'><ins id='0jHfB'></ins><ul id='0jHfB'></ul><sub id='0jHfB'></sub></form><legend id='0jHfB'></legend><bdo id='0jHfB'><pre id='0jHfB'><center id='0jHfB'></center></pre></bdo></b><th id='0jHfB'></th></span></q></dt></tr></i><div id='0jHfB'><tfoot id='0jHfB'></tfoot><dl id='0jHfB'><fieldset id='0jHfB'></fieldset></dl></div>
                3. <small id='0jHfB'></small><noframes id='0jHfB'>

                    • <bdo id='0jHfB'></bdo><ul id='0jHfB'></ul>

                          <legend id='0jHfB'><style id='0jHfB'><dir id='0jHfB'><q id='0jHfB'></q></dir></style></legend>
                            <tbody id='0jHfB'></tbody>