首页 > 数据库 > MySQL > 正文

MAC下修改mysql默认字符集为utf8的方法

2024-07-24 12:50:28
字体:
来源:转载
供稿:网友

1,检查默认安装的mysql的字符集

mysql> show variables like '%char%';
+--------------------------+--------------------------------------------------------+
| Variable_name            | Value                                                  |
+--------------------------+--------------------------------------------------------+
| character_set_client     | utf8                                                   |
| character_set_connection | utf8                                                   |
| character_set_database   | latin1                                                 |
| character_set_filesystem | binary                                                 |
| character_set_results    | utf8                                                   |
| character_set_server     | latin1                                                 |
| character_set_system     | utf8                                                   |

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表