mysql异常The MySQL server is running with the LOCK_WRITE_GROWTH option so it cannot execute this statement
Mysql数据库被锁The MySQL server is running with the LOCK_WRITE_GROWTH option so it cannot execute this statement
今天阿里云的服务器突然mysql报错,报错内容是
The MySQL server is running with the LOCK_WRITE_GROWTH option so it cannot execute this statement。
经过排查是因为数据库服务器磁盘满了,阿里云会自动上锁数据库。
处理方式
为了项目尽快恢复,先对基本无用但是占用空间很大的日志记录表进行了truncate处理。
然后重启数据库服务器便恢复了,后续对于服务器的监控重新设置了通知方式和通知人员。并把此服务器加入到定期排查的服务器集合中,因此服务器当时是使用的分公司购买的,所以遗漏了。后续相关项目加上了定时清理某时间段内日志记录的功能。