我在使用WordPress上传图片的时候,遇到error establishing a database connection problem,查看了MySQL的错误日志,文件位置一般在/var/log/mysqld.log,看到一段话:out of memory,Cannot allocate memory for the buffer pool,因为我这个服务器才1GB的内存,MySQL自然就分配不到太多的内存,所以没有多余内存分配给MySQL也很正常,既然知道哪里有问题,那我们就来解决它,有两种解决办法:
- 增加swap虚拟内存
Hello Yu