mysql的服务卡了_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)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值