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 General Discussion
  • Search

Mysql stop after reboot vps

General questions about VestaCP
Post Reply
  • Print view
Advanced search
14 posts
  • 1
  • 2
  • Next
vestacp89
Posts: 83
Joined: Thu Aug 14, 2014 11:04 am

Mysql stop after reboot vps
  • Quote

Post by vestacp89 » Wed Nov 26, 2014 12:27 pm

Hello,

I reboot vps,
after mysql stop work,
I restart mysql,
then all work,
but today come and see website is down again mysql was down,
again restart mysql and now all work,
where i can see why this happend ?
and how i can fix this ?

This is messeage which i get on email:

Code: Select all

Can't connect to localhost
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Thanks.
Top

sim
Posts: 101
Joined: Sat Nov 22, 2014 7:47 pm

Re: Mysql stop after reboot vps
  • Quote

Post by sim » Wed Nov 26, 2014 2:01 pm

Paste last 20 lines of /var/log/mysqld.log
Top

joem
Posts: 378
Joined: Thu Nov 13, 2014 8:33 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: Mysql stop after reboot vps
  • Quote

Post by joem » Wed Nov 26, 2014 2:03 pm

vestacp89 wrote:Hello,

I reboot vps,
after mysql stop work,
I restart mysql,
then all work,
but today come and see website is down again mysql was down,
again restart mysql and now all work,
where i can see why this happend ?
and how i can fix this ?

This is messeage which i get on email:

Code: Select all

Can't connect to localhost
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Thanks.
Centos
/var/log/mysqld.log
Ubuntu
/var/log/mysql.log
/var/log/mysql/error.log
Check out http://vestacp.com/docs/#config-log-loc ... hel-centos
Top

vestacp89
Posts: 83
Joined: Thu Aug 14, 2014 11:04 am

Re: Mysql stop after reboot vps
  • Quote

Post by vestacp89 » Wed Nov 26, 2014 2:47 pm

joem wrote:
vestacp89 wrote:Hello,

I reboot vps,
after mysql stop work,
I restart mysql,
then all work,
but today come and see website is down again mysql was down,
again restart mysql and now all work,
where i can see why this happend ?
and how i can fix this ?

This is messeage which i get on email:

Code: Select all

Can't connect to localhost
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Thanks.
Centos
/var/log/mysqld.log
Ubuntu
/var/log/mysql.log
/var/log/mysql/error.log
Check out http://vestacp.com/docs/#config-log-loc ... hel-centos
Hi,

How i can see this mysql.log ?
Which command is for this, or i can see this from vestacp ?

Thanks.
Top

turkey3
Posts: 75
Joined: Tue Aug 19, 2014 6:59 pm

Re: Mysql stop after reboot vps
  • Quote

Post by turkey3 » Wed Nov 26, 2014 4:07 pm

To view it in the CLI, type:

Code: Select all

nano /var/log/mysql.log
Top

sim
Posts: 101
Joined: Sat Nov 22, 2014 7:47 pm

Re: Mysql stop after reboot vps
  • Quote

Post by sim » Wed Nov 26, 2014 5:00 pm

If you are using CentOS

tail /var/log/mysqld.log
Top

vestacp89
Posts: 83
Joined: Thu Aug 14, 2014 11:04 am

Re: Mysql stop after reboot vps
  • Quote

Post by vestacp89 » Wed Nov 26, 2014 5:24 pm

turkey3 wrote:To view it in the CLI, type:

Code: Select all

nano /var/log/mysql.log
i use ubuntu, when i enter this show me:

Code: Select all

-bash: nano: command not found
Top

joem
Posts: 378
Joined: Thu Nov 13, 2014 8:33 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: Mysql stop after reboot vps
  • Quote

Post by joem » Wed Nov 26, 2014 10:58 pm

vestacp89 wrote:
turkey3 wrote:To view it in the CLI, type:

Code: Select all

nano /var/log/mysql.log
i use ubuntu, when i enter this show me:

Code: Select all

-bash: nano: command not found

Code: Select all

sudo apt-get install nano
sudo nano /var/log/mysql.log
Top

vestacp89
Posts: 83
Joined: Thu Aug 14, 2014 11:04 am

Re: Mysql stop after reboot vps
  • Quote

Post by vestacp89 » Thu Nov 27, 2014 10:37 am

joem wrote:
vestacp89 wrote:
turkey3 wrote:To view it in the CLI, type:

Code: Select all

nano /var/log/mysql.log
i use ubuntu, when i enter this show me:

Code: Select all

-bash: nano: command not found

Code: Select all

sudo apt-get install nano
sudo nano /var/log/mysql.log
now i see:

Code: Select all

^G Get Help               ^O WriteOut               ^R Read File              ^Y Prev Page              ^K Cut Text               ^C Cur Pos
^X Exit                   ^J Justify                ^W Where Is               ^V Next Page              ^U UnCut Text             ^T To Spell
what i need to write ''^R'' for see file ? I add this and not happend nothing ?

Thanks.
Top

vestacp89
Posts: 83
Joined: Thu Aug 14, 2014 11:04 am

Re: Mysql stop after reboot vps
  • Quote

Post by vestacp89 » Sat Nov 29, 2014 1:53 pm

anyone explain ? how to see mysql log file ?

Thanks.
Top


Post Reply
  • Print view

14 posts
  • 1
  • 2
  • Next

Return to “General Discussion”



  • 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