mysql服務一開機器就很卡

看事件查看器有mysql錯誤

MySQL:‘–default-character-set’ is deprecated

Event Type: Warning
Event Source: MySQL
Event Category: None
Event ID: 100
Date:  2010-12-17
Time:  3:19:39
User:  N/A
Computer: VISIONAPPSSERV
Description:
'--default-character-set' is deprecated and will be removed in a future release. Please use '--character-set-server' instead.

For more information, see Help and Support Center at http://www.mysql.com

 

 

‍'--default-character-set' is deprecated and will be removed in a future release. Please use '--character-set-server' instead.

‍' - 默認字符集'已過時,將在未來的版本中刪除。請使用' - 字符集服務器'代替。
‍根據提示,我們在my.ini裏修改信息,把兩處default-character-set全部替換爲character-set-server,這樣就不會有錯誤提示

 

 

 

2錯誤

Changed limits: max_open_files: 2048  max_connections: 1910  table_cache: 64

解決:

在windows下安裝Mysql系統日誌出現 max_open_files: 2048 max_connections: 510 table_cache: 764 類似錯誤是因爲 max_connections 最大連接數和max_open_files、table_cache 不匹配。適當的降低max_connections 或調整其他兩個數值 
    解決辦法在 mysql bin > 中輸入 mysql-nt --table_cache=764
mysql-nt --innodb_open_files=2048   即可!!

table_cache和max_connections 在my.ini 裏可調 

Changed limits: max_open_files: 2048 max_connections: 1024 table_cache: 507

max_connections=1024

table_cache=500

OK,問題解決

 

 

 

 

增加 tmp_table_size 值。mysql 的配置文件中,tmp_table_size 的默認大小是 32M。如果一張臨時表超出該大小,MySQL產生一個 The table tbl_name is full 形式的錯誤,如果你做很多高級 GROUP BY 查詢,增加 tmp_table_size

可以改爲200M或者更高(my.ini)
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章