Adding Swap Space to Amazon EC2 Micro Instances

Most of us use EC2 micro instances for prototyping and running small servers. If you use MySQL on an EC2 machine, you may experience the MySQL server automatically shut down with the /var/log/mysql/error.log file reading as below: 140516 10:54:24 InnoDB: Initializing buffer pool, size = 128.0M InnoDB: mmap(137363456 bytes) failed; errno 12 140516 10:54:24 InnoDB: Read more about Adding Swap Space to Amazon EC2 Micro Instances[…]