弱电论坛

标题: mysql服务一开机器就很卡. [打印本页]

作者: 卡西达    时间: 2013-4-30 13:52
标题: 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 [url=]http://www.mysql.com[/url].



‍'--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=764mysql-nt --innodb_open_files=2048   即可!!table_cache和max_connections 在my.ini 里可调 Changed limits: max_open_files: 2048 max_connections: 1024 table_cache: 507max_connections=1024table_cache=500OK,问题解决



增加 tmp_table_size 值。mysql 的配置文件中,tmp_table_size 的默认大小是 32M。如果一张临时表超出该大小,MySQL产生一个 The table tbl_name is full 形式的错误,如果你做很多高级 GROUP BY 查询,增加 tmp_table_size
可以改为200M或者更高(my.ini)





欢迎光临 弱电论坛 (http://bbs.rdzjw.com/) Powered by Discuz! X3.2