容器技术交流

 找回密码
 立即注册
查看: 2489|回复: 2

洞哥来看看 mysql配置有个问题

[复制链接]
发表于 2011-11-2 23:16:43 | 显示全部楼层 |阅读模式
本帖最后由 hbfly 于 2011-11-2 23:17 编辑

err日志有这句话
  1. [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
复制代码
这个我已经修正了


但另外有个很杯具的问题
我的配置Intel(R) Xeon(R) CPU E5410 @ 2.33GHz
内存8G SAS硬盘但是这几天 总是碰到这个错误 高峰时非常频繁
  1. Can't connect to local MySQL server through socket '/tmp/mysql.sock' (11) in
复制代码
真的非常郁闷啊。



 楼主| 发表于 2011-11-3 19:36:15 | 显示全部楼层
顶起来。。。
发表于 2011-11-3 21:35:13 | 显示全部楼层
把连接数调高一点,在/etc/my.cnf中([mysqld]段部分),加入
  1. set-variable = max_connections=1000
复制代码


然后重启mysql(mysql-restart)
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|URLOS ( 粤ICP备18087780号 )

GMT+8, 2025-5-15 11:27 , Processed in 0.031754 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表