日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

mysql服务器默认操作字符集,如何在mysql中找到默认服务器字符集?

發(fā)布時(shí)間:2024/8/23 数据库 35 豆豆
生活随笔 收集整理的這篇文章主要介紹了 mysql服务器默认操作字符集,如何在mysql中找到默认服务器字符集? 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

Using MySQL on FreeBSD 8.2. How do I find out the default server character set? Is there some command I can run or file I can check?

UPDATE

Actually I want to know how to find both the default server character set and the current server character set.

解決方案Initially, the server character set and collation depend on the options that you use when you start mysqld. You can use --character-set-server for the character set. Along with it, you can add --collation-server for the collation. If you don't specify a character set, that is the same as saying --character-set-server=latin1.

The default server character set is therefore Windows-1252, which MySQL calls latin1, unless your copy of MySQL has been compiled with some other default.

The manual goes on to say:

The current server character set and collation can be determined from the values of the character_set_server and collation_server system variables. These variables can be changed at runtime.

Therefore, to discover the server character set currently in use:

SHOW VARIABLES LIKE 'character_set_server'

總結(jié)

以上是生活随笔為你收集整理的mysql服务器默认操作字符集,如何在mysql中找到默认服务器字符集?的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。