相关疑难解决方法(0)

当EC2微实例上的ubuntu在内存不足时将其杀死时,自动重启Mysql

当系统内存不足时,ubuntu 12.04会终止mysql进程:

Out of memory: Kill process 17074 (mysqld) score 146 or sacrifice child
Run Code Online (Sandbox Code Playgroud)

所以这个过程最终被杀死了.这发生在服务器负载的高峰期,主要是因为apache变得疯狂并且吃剩余的可用内存.可能的方法可能是:

  • 以某种方式改变mysql的优先级,所以它没有被杀死(可能是一个糟糕的修复,因为其他东西将被杀死)
  • 监视mysql的状态,并在它被杀死时自动重启(我正在思考的那个,但不知道该怎么做).

你怎么看?

mysql restart out-of-memory amazon-ec2 ubuntu-12.04

5
推荐指数
1
解决办法
5875
查看次数

为什么我收到 max_user_connections SQL 错误?

为什么我的网站http://elancemarket.com/一次又一次地出现这个错误?

Error establishing a database connection

SQL ERROR [ mysqli ]
User elancema_user already has more than 'max_user_connections' active connections [1203]

Warning: mysqli::mysqli(): (HY000/1203): User elancema_user already has more than 'max_user_connections' active connections in /home/elancemarket/public_html/ask/qa-include/qa-db.php on line 66
Run Code Online (Sandbox Code Playgroud)

我使用的是非常昂贵的 VPS!

php mysql wordpress phpbb3 question2answer

2
推荐指数
1
解决办法
8870
查看次数