MySQL環境變數裡關於字符集character_set相關引數的解釋
檢視字符集引數變數:
mysql> show variables like '%char%';
+--------------------------+----------------------------------------------------
-----------+
| Variable_name | Value
|
+--------------------------+----------------------------------------------------
-----------+
| character_set_client | gbk
|
| character_set_connection | gbk
|
| character_set_database | gbk
|
| character_set_filesystem | binary
|
| character_set_results | gbk
|
| character_set_server | utf8
|
| character_set_system | utf8
|
| character_sets_dir | C:\Program Files (x86)\MySQL\MySQL Server 5.5\share
\charsets\ |
+--------------------------+----------------------------------------------------
-----------+
8 rows in set (0.00 sec)
character_set系列引數的解釋:
· character_set_client
來自客戶端的語句的字符集。
· character_set_connection
用於沒有字符集匯入符的文字和數字-字串轉換。
· character_set_database
預設資料庫使用的字符集。當預設資料庫更改時,伺服器則設定該變數。如果沒有預設資料庫,變數的值同character_set_server。
· character_set_results
用於向客戶端返回查詢結果的字符集。
· character_set_ server
伺服器的預設字符集。
· character_set_system
伺服器用來儲存識別符的字符集。該值一定是utf8。
· character_sets_dir
字符集安裝目錄。
· collation_connection
連線字符集的校對規則。
· collation_database
預設資料庫使用的校對規則。當預設資料庫改變時伺服器則設定該變數。如果沒有預設資料庫,變數的值同collation_server。
· collation_server
伺服器的預設校對規則。
支援的字符集有:
mysql> SHOW CHARACTER SET;
+----------+-----------------------------+---------------------+--------+
| Charset | Description | Default collation | Maxlen |
+----------+-----------------------------+---------------------+--------+
| big5 | Big5 Traditional Chinese | big5_chinese_ci | 2 |
| dec8 | DEC West European | dec8_swedish_ci | 1 |
| cp850 | DOS West European | cp850_general_ci | 1 |
| hp8 | HP West European | hp8_english_ci | 1 |
| koi8r | KOI8-R Relcom Russian | koi8r_general_ci | 1 |
| latin1 | cp1252 West European | latin1_swedish_ci | 1 |
| latin2 | ISO 8859-2 Central European | latin2_general_ci | 1 |
| swe7 | 7bit Swedish | swe7_swedish_ci | 1 |
| ascii | US ASCII | ascii_general_ci | 1 |
| ujis | EUC-JP Japanese | ujis_japanese_ci | 3 |
| sjis | Shift-JIS Japanese | sjis_japanese_ci | 2 |
| hebrew | ISO 8859-8 Hebrew | hebrew_general_ci | 1 |
| tis620 | TIS620 Thai | tis620_thai_ci | 1 |
| euckr | EUC-KR Korean | euckr_korean_ci | 2 |
| koi8u | KOI8-U Ukrainian | koi8u_general_ci | 1 |
| gb2312 | GB2312 Simplified Chinese | gb2312_chinese_ci | 2 |
| greek | ISO 8859-7 Greek | greek_general_ci | 1 |
| cp1250 | Windows Central European | cp1250_general_ci | 1 |
| gbk | GBK Simplified Chinese | gbk_chinese_ci | 2 |
| latin5 | ISO 8859-9 Turkish | latin5_turkish_ci | 1 |
| armscii8 | ARMSCII-8 Armenian | armscii8_general_ci | 1 |
| utf8 | UTF-8 Unicode | utf8_general_ci | 3 |
| ucs2 | UCS-2 Unicode | ucs2_general_ci | 2 |
| cp866 | DOS Russian | cp866_general_ci | 1 |
| keybcs2 | DOS Kamenicky Czech-Slovak | keybcs2_general_ci | 1 |
| macce | Mac Central European | macce_general_ci | 1 |
| macroman | Mac West European | macroman_general_ci | 1 |
| cp852 | DOS Central European | cp852_general_ci | 1 |
| latin7 | ISO 8859-13 Baltic | latin7_general_ci | 1 |
| utf8mb4 | UTF-8 Unicode | utf8mb4_general_ci | 4 |
| cp1251 | Windows Cyrillic | cp1251_general_ci | 1 |
| utf16 | UTF-16 Unicode | utf16_general_ci | 4 |
| cp1256 | Windows Arabic | cp1256_general_ci | 1 |
| cp1257 | Windows Baltic | cp1257_general_ci | 1 |
| utf32 | UTF-32 Unicode | utf32_general_ci | 4 |
| binary | Binary pseudo charset | binary | 1 |
| geostd8 | GEOSTD8 Georgian | geostd8_general_ci | 1 |
| cp932 | SJIS for Windows Japanese | cp932_japanese_ci | 2 |
| eucjpms | UJIS for Windows Japanese | eucjpms_japanese_ci | 3 |
+----------+-----------------------------+---------------------+--------+
39 rows in set (0.11 sec)
mysql> show variables like '%char%';
+--------------------------+----------------------------------------------------
-----------+
| Variable_name | Value
|
+--------------------------+----------------------------------------------------
-----------+
| character_set_client | gbk
|
| character_set_connection | gbk
|
| character_set_database | gbk
|
| character_set_filesystem | binary
|
| character_set_results | gbk
|
| character_set_server | utf8
|
| character_set_system | utf8
|
| character_sets_dir | C:\Program Files (x86)\MySQL\MySQL Server 5.5\share
\charsets\ |
+--------------------------+----------------------------------------------------
-----------+
8 rows in set (0.00 sec)
character_set系列引數的解釋:
· character_set_client
來自客戶端的語句的字符集。
· character_set_connection
用於沒有字符集匯入符的文字和數字-字串轉換。
· character_set_database
預設資料庫使用的字符集。當預設資料庫更改時,伺服器則設定該變數。如果沒有預設資料庫,變數的值同character_set_server。
· character_set_results
用於向客戶端返回查詢結果的字符集。
· character_set_ server
伺服器的預設字符集。
· character_set_system
伺服器用來儲存識別符的字符集。該值一定是utf8。
· character_sets_dir
字符集安裝目錄。
· collation_connection
連線字符集的校對規則。
· collation_database
預設資料庫使用的校對規則。當預設資料庫改變時伺服器則設定該變數。如果沒有預設資料庫,變數的值同collation_server。
· collation_server
伺服器的預設校對規則。
支援的字符集有:
mysql> SHOW CHARACTER SET;
+----------+-----------------------------+---------------------+--------+
| Charset | Description | Default collation | Maxlen |
+----------+-----------------------------+---------------------+--------+
| big5 | Big5 Traditional Chinese | big5_chinese_ci | 2 |
| dec8 | DEC West European | dec8_swedish_ci | 1 |
| cp850 | DOS West European | cp850_general_ci | 1 |
| hp8 | HP West European | hp8_english_ci | 1 |
| koi8r | KOI8-R Relcom Russian | koi8r_general_ci | 1 |
| latin1 | cp1252 West European | latin1_swedish_ci | 1 |
| latin2 | ISO 8859-2 Central European | latin2_general_ci | 1 |
| swe7 | 7bit Swedish | swe7_swedish_ci | 1 |
| ascii | US ASCII | ascii_general_ci | 1 |
| ujis | EUC-JP Japanese | ujis_japanese_ci | 3 |
| sjis | Shift-JIS Japanese | sjis_japanese_ci | 2 |
| hebrew | ISO 8859-8 Hebrew | hebrew_general_ci | 1 |
| tis620 | TIS620 Thai | tis620_thai_ci | 1 |
| euckr | EUC-KR Korean | euckr_korean_ci | 2 |
| koi8u | KOI8-U Ukrainian | koi8u_general_ci | 1 |
| gb2312 | GB2312 Simplified Chinese | gb2312_chinese_ci | 2 |
| greek | ISO 8859-7 Greek | greek_general_ci | 1 |
| cp1250 | Windows Central European | cp1250_general_ci | 1 |
| gbk | GBK Simplified Chinese | gbk_chinese_ci | 2 |
| latin5 | ISO 8859-9 Turkish | latin5_turkish_ci | 1 |
| armscii8 | ARMSCII-8 Armenian | armscii8_general_ci | 1 |
| utf8 | UTF-8 Unicode | utf8_general_ci | 3 |
| ucs2 | UCS-2 Unicode | ucs2_general_ci | 2 |
| cp866 | DOS Russian | cp866_general_ci | 1 |
| keybcs2 | DOS Kamenicky Czech-Slovak | keybcs2_general_ci | 1 |
| macce | Mac Central European | macce_general_ci | 1 |
| macroman | Mac West European | macroman_general_ci | 1 |
| cp852 | DOS Central European | cp852_general_ci | 1 |
| latin7 | ISO 8859-13 Baltic | latin7_general_ci | 1 |
| utf8mb4 | UTF-8 Unicode | utf8mb4_general_ci | 4 |
| cp1251 | Windows Cyrillic | cp1251_general_ci | 1 |
| utf16 | UTF-16 Unicode | utf16_general_ci | 4 |
| cp1256 | Windows Arabic | cp1256_general_ci | 1 |
| cp1257 | Windows Baltic | cp1257_general_ci | 1 |
| utf32 | UTF-32 Unicode | utf32_general_ci | 4 |
| binary | Binary pseudo charset | binary | 1 |
| geostd8 | GEOSTD8 Georgian | geostd8_general_ci | 1 |
| cp932 | SJIS for Windows Japanese | cp932_japanese_ci | 2 |
| eucjpms | UJIS for Windows Japanese | eucjpms_japanese_ci | 3 |
+----------+-----------------------------+---------------------+--------+
39 rows in set (0.11 sec)
mysql>
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/15498/viewspace-2089384/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- MySQL slow log相關引數解釋MySql
- MySQL handler相關狀態引數解釋MySql
- 關於MySQL中的8個 character_set 變數說明MySql變數
- MySQL 5.5客戶端字符集相關引數MySql客戶端
- #環境變數 相關的環境變數請複製過來,可能會和變數
- MySQL效能相關引數MySql
- redis持久化相關引數解釋Redis持久化
- autotrace explain plan 相關引數解釋AI
- linux c 環境變數相關函式Linux變數函式
- 關於環境變數設定的問題變數
- 關於TNS_ADMIN環境變數變數
- MySQL 連線相關引數MySql
- MySQL slow log相關引數MySql
- mysql innodb相關引數說明MySql
- sql*plus會話環境相關的引數設定檔案SQL會話
- parallel並行度的相關操作、概念、引數解釋Parallel並行
- MySQL5.7統計資訊更新的相關引數解釋和測試MySql
- 關鍵字引數與非關鍵字引數(可變引數)詳解
- Visual SourceSafe(VSS)相關的8個環境變數變數
- [20200422]瞭解相關程式的環境變數.txt變數
- mysql relay log相關引數說明MySql
- [轉帖]Redis相關的核心引數解釋與設定Redis
- MySQL 環境變數配置MySql變數
- MySQL索引統計資訊更新相關的引數MySql索引
- Spark的相關引數配置Spark
- MYSQL連線相關引數和狀態值詳解MySql
- 歸檔相關引數
- PostgreSQL AutoVacuum 相關引數SQL
- MySQL 關於表名大小寫的引數MySql
- MySQL中Redo Log相關的重要引數總結MySql
- MySQL中的統計資訊相關引數介紹MySql
- C++系統相關操作2 - 獲取系統環境變數C++變數
- 環境變數詳解變數
- Linux字符集環境變數設定Linux變數
- mysql二進位制日誌相關引數MySql
- 【DataGuard】部署Data Guard相關引數詳解
- 修改環境變數顯示當前登陸使用者的相關資訊變數
- 【LC】locale設定查詢及相關環境變數含義及示例變數