這篇文章主要講解了“MySQL參數(shù)如何配置”,文中的講解內(nèi)容簡(jiǎn)單清晰,易于學(xué)習(xí)與理解,下面請(qǐng)大家跟著小編的思路慢慢深入,一起來(lái)研究和學(xué)習(xí)“MySQL參數(shù)如何配置”吧!
成都創(chuàng)新互聯(lián)專(zhuān)注于高明網(wǎng)站建設(shè)服務(wù)及定制,我們擁有豐富的企業(yè)做網(wǎng)站經(jīng)驗(yàn)。 熱誠(chéng)為您提供高明營(yíng)銷(xiāo)型網(wǎng)站建設(shè),高明網(wǎng)站制作、高明網(wǎng)頁(yè)設(shè)計(jì)、高明網(wǎng)站官網(wǎng)定制、成都小程序開(kāi)發(fā)服務(wù),打造高明網(wǎng)絡(luò)公司原創(chuàng)品牌,更為您提供高明網(wǎng)站排名全網(wǎng)營(yíng)銷(xiāo)落地服務(wù)。
配置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
文件中指定
影響參數(shù):
character_set_client
character_set_connection
character_set_results
影響參數(shù):
character_set_database
character_set_server
感謝各位的閱讀,以上就是“MySQL參數(shù)如何配置”的內(nèi)容了,經(jīng)過(guò)本文的學(xué)習(xí)后,相信大家對(duì)MySQL參數(shù)如何配置這一問(wèn)題有了更深刻的體會(huì),具體使用情況還需要大家實(shí)踐驗(yàn)證。這里是創(chuàng)新互聯(lián),小編將為大家推送更多相關(guān)知識(shí)點(diǎn)的文章,歡迎關(guān)注!