Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Database Server
  • Search

mysql service stopping itself

Questions regarding the Database Server
MySQL, PostgreSQL, MariaDB, Percona Server, phpMyAdmin, phpPgAdmin
Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: mysql service stopping itself
  • Quote

Post by imperio » Wed Dec 10, 2014 9:26 pm

Hi,
show me please result of this commands

Code: Select all

top
free -m
Top

balboni
Posts: 7
Joined: Thu Dec 18, 2014 12:39 pm

Re: mysql service stopping itself
  • Quote

Post by balboni » Thu Dec 18, 2014 12:51 pm

I have the same issue, my MySQLd stopped several times. I am on a 768 MB Vultr VPS (KVM, Centos) running a small WooCommerce site.

When I try to restart MySQL I receive an error. I have to restart my whole server to get it working again.

Free -m results:

Code: Select all

             total       used       free     shared    buffers     cached
Mem:           742        666         76          0         23         76
-/+ buffers/cache:        566        175
Swap:            0          0          0
EDIT: I opened my own thread viewtopic.php?f=10&t=6597
Top

Deeryo
Posts: 190
Joined: Tue Nov 05, 2013 1:55 pm

Re: mysql service stopping itself
  • Quote

Post by Deeryo » Thu Dec 25, 2014 9:35 pm

If server has no swap space it can be created like this http://www.cyberciti.biz/faq/linux-add- ... ile-howto/
You can adjust innodb pool memory in /etc/my.cnf with innodb_buffer_pool_size=64M, default value is 128M.
Mysql tables can be repaired using mysqlcheck --auto-repair -A
Top

Deeryo
Posts: 190
Joined: Tue Nov 05, 2013 1:55 pm

Re: mysql service stopping itself
  • Quote

Post by Deeryo » Sat Dec 27, 2014 10:30 pm

You can search dmesg or /var/log/messages for 'killed process' (grep -i 'killed process' /var/log/messages).
Please run command free -m and find numbers next to "Mem:" (total memory) and numbers next to "cache:" (used memory). Used memory shuld be 50% or less. Also check memory graph in vestacp.

Mysql tables can be MyIsam or Innodb. InnoDB maintains a storage area called the buffer pool for caching data and indexes in memory.

mysqlcheck is needed afrer every mysql service crash, unclean poweroff or server reset. You can configure my.cnf option "myisam-recover=FORCE,BACKUP", this allows automatic MyIsam recover. Automatic myisam-recover can almost replace mysqlcheck.
Top

iamkingsleyf
Posts: 30
Joined: Sun Nov 23, 2014 4:41 am

Re: mysql service stopping itself
  • Quote

Post by iamkingsleyf » Sat Jan 03, 2015 5:33 am

Same problem here
Top

iamkingsleyf
Posts: 30
Joined: Sun Nov 23, 2014 4:41 am

Re: mysql service stopping itself
  • Quote

Post by iamkingsleyf » Sat Jan 03, 2015 1:49 pm

GreenUnicorn wrote:i added swap and hasn't happend since
I have swap but the memory rises to 900mb+ and boom it's down
Top

fedekrum
Posts: 49
Joined: Mon May 12, 2014 7:45 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: mysql service stopping itself
  • Quote

Post by fedekrum » Tue Jan 06, 2015 5:31 pm

Had the same issue before and here is an old post that with the solution I have found to solve the problem.
viewtopic.php?f=10&t=5222

Pleace comment on that post if you find it works for you.
Top


Post Reply
  • Print view

7 posts • Page 1 of 1

Return to “Database Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password