Mysql stop after reboot vps
Mysql stop after reboot vps
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:
Thanks.
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)
Re: Mysql stop after reboot vps
Paste last 20 lines of /var/log/mysqld.log
Re: Mysql stop after reboot vps
Centosvestacp89 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:
Thanks.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)
Ubuntu/var/log/mysqld.log
Check out http://vestacp.com/docs/#config-log-loc ... hel-centos/var/log/mysql.log
/var/log/mysql/error.log
Re: Mysql stop after reboot vps
Hi,joem wrote:Centosvestacp89 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:
Thanks.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)
Ubuntu/var/log/mysqld.logCheck out http://vestacp.com/docs/#config-log-loc ... hel-centos/var/log/mysql.log
/var/log/mysql/error.log
How i can see this mysql.log ?
Which command is for this, or i can see this from vestacp ?
Thanks.
Re: Mysql stop after reboot vps
To view it in the CLI, type:
Code: Select all
nano /var/log/mysql.log
Re: Mysql stop after reboot vps
If you are using CentOS
tail /var/log/mysqld.log
tail /var/log/mysqld.log
Re: Mysql stop after reboot vps
i use ubuntu, when i enter this show me:turkey3 wrote:To view it in the CLI, type:Code: Select all
nano /var/log/mysql.log
Code: Select all
-bash: nano: command not found
Re: Mysql stop after reboot vps
vestacp89 wrote:i use ubuntu, when i enter this show me:turkey3 wrote:To view it in the CLI, type:Code: Select all
nano /var/log/mysql.log
Code: Select all
-bash: nano: command not found
Code: Select all
sudo apt-get install nano
sudo nano /var/log/mysql.log
Re: Mysql stop after reboot vps
now i see:joem wrote:vestacp89 wrote:i use ubuntu, when i enter this show me:turkey3 wrote:To view it in the CLI, type:Code: Select all
nano /var/log/mysql.log
Code: Select all
-bash: nano: command not found
Code: Select all
sudo apt-get install nano sudo nano /var/log/mysql.log
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
Thanks.
Re: Mysql stop after reboot vps
anyone explain ? how to see mysql log file ?
Thanks.
Thanks.