您好,登錄后才能下訂單哦!
這篇文章主要講解了“MySQL參數如何配置”,文中的講解內容簡單清晰,易于學習與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學習“MySQL參數如何配置”吧!
配置MySQL處理SQL的方式
中文亂碼
mysql> SELECT course,AVG(score) FROM score GROUP BY course;+--------+------------+| course | AVG(score) |+--------+------------+| ???? | 70.0000 || ???? | 74.5000 || ?? | 88.0000 || ???? | 35.0000 || ?? | 80.0000 || ???? | 30.0000 || ??? | 40.0000 || ???? | 70.0000 |+--------+------------+8 rows in set (0.00 se
mysql> show variables like 'character%';+--------------------------+----------------------------+| Variable_name | Value |+--------------------------+----------------------------+| character_set_client | latin1 || character_set_connection | latin1 || character_set_database | utf8 || character_set_filesystem | binary || character_set_results | latin1 || character_set_server | latin1 || character_set_system | utf8 || character_sets_dir | /usr/share/mysql/charsets/ |+--------------------------+----------------------------+8 rows in set (0.00 sec)mysql> set character_set_database=utf8;Query OK, 0 rows affected, 1 warning (0.00 sec)mysql> set character_set_server=utf8;Query OK, 0 rows affected (0.00 sec)
-- set [global] variable_name=charset;mysql> set global character_set_server=utf8;
在my.cnf
文件中指定
影響參數:
character_set_client
character_set_connection
character_set_results
影響參數:
character_set_database
character_set_server
感謝各位的閱讀,以上就是“MySQL參數如何配置”的內容了,經過本文的學習后,相信大家對MySQL參數如何配置這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是億速云,小編將為大家推送更多相關知識點的文章,歡迎關注!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。