mysql5.7基础 查看字符编码 character_set_client/connection/results

时间:2022-09-22 22:29:05

礼悟:
     公恒学思合行悟,尊师重道存感恩。叶见寻根三返一,江河湖海同一体。
          虚怀若谷良心主,愿行无悔给最苦。读书锻炼养身心,诚劝且行且珍惜。


 

 

  数据、数据,命根就在数据。操作数据库一定要谨慎小心。给最苦 这里的代码,看看就好,要有自己的判断。遇到抉择,要不耻上下问。 
               mysql:5.7
                     os:Windows7 x64

 

 

代码及效果

 1 mysql> show variables like 'character_set_%';
 2 +--------------------------+-------------------------------------------------+
 3 | Variable_name            | Value                                           |
 4 +--------------------------+-------------------------------------------------+
 5 | character_set_client     | gbk                                             |
 6 | character_set_connection | gbk                                             |
 7 | character_set_database   | latin1                                          |
 8 | character_set_filesystem | binary                                          |
 9 | character_set_results    | gbk                                             |
10 | character_set_server     | latin1                                          |
11 | character_set_system     | utf8                                            |
12 | character_sets_dir       | F:\wamp64\bin\mysql\mysql5.7.14\share\charsets\ |
13 +--------------------------+-------------------------------------------------+
14 8 rows in set, 1 warning (0.00 sec)
15 
16 mysql> set names utf8;
17 Query OK, 0 rows affected (0.00 sec)
18 
19 mysql> show variables like 'character_set_%';
20 +--------------------------+-------------------------------------------------+
21 | Variable_name            | Value                                           |
22 +--------------------------+-------------------------------------------------+
23 | character_set_client     | utf8                                            |
24 | character_set_connection | utf8                                            |
25 | character_set_database   | latin1                                          |
26 | character_set_filesystem | binary                                          |
27 | character_set_results    | utf8                                            |
28 | character_set_server     | latin1                                          |
29 | character_set_system     | utf8                                            |
30 | character_sets_dir       | F:\wamp64\bin\mysql\mysql5.7.14\share\charsets\ |
31 +--------------------------+-------------------------------------------------+
32 8 rows in set, 1 warning (0.00 sec)
33 
34 mysql>

 

    


mysql,关系型数据库管理系统,优秀,值得学习。
学习资源:itcast和itheima视频库 + 清净的心地。
如果您有公开的资源,可以分享给我的话,用您的资源学习也可以。
博文是观看视频后,融入思考写成的。博文好,是老师讲得好。博文坏,是 给最苦 没认真。