Hi, In my website my mysql server sometimes stopping unexpectedly. After some page refreshes then the page will appear. In have changed innodb_buffer_pool_size=20M in my.cnf file.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello, @santsfirm
What you definitely need to do is to examine the MySQL error log and track down any logged errors. The location of the MySQL error log should be:
/var/log/mysql/error.log
but you can also use this command via ssh and it will show you the location of the MySQL error_log:
mysql -se "SHOW VARIABLES" | grep -e log_error
You can check if the droplet/server is not exhausting the memory, a way to check this is using htop / top or free -m
When the issue occurs you can quickly check the memory usage and examine the MySQL error_log as well. If you do not expect a lot of traffic or busy MySQL activity then the error should be logged in the log.
Hope this helps. Let me know how it goes.
Regards, Alex
innodb_buffer_pool_size=20M might be problematic. What’s the droplet size? Have you been able to dig up anything in the error log?
A
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.