Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-28, 19:15:23

Author Topic: mysql can't start  (Read 13469 times)

0 Members and 1 Guest are viewing this topic.

Offline letux

  • Valuable Member
  • *
  • Posts: 131
  • Karma: +0/-0
    • View Profile
Re: mysql can't start
« Reply #15 on: 2014-04-11, 11:27:01 »
i'am used 'yum update mratwork-* -y'  and try 'yum replace mysql --replace-with=mysql55' agin . it's working to replace now

Offline letux

  • Valuable Member
  • *
  • Posts: 131
  • Karma: +0/-0
    • View Profile
Re: mysql can't start
« Reply #16 on: 2014-04-11, 16:31:31 »
still have the same problem
Code: [Select]
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
and httpd service is down !

i don't know what happend in server O.o

Offline letux

  • Valuable Member
  • *
  • Posts: 131
  • Karma: +0/-0
    • View Profile
Re: mysql can't start
« Reply #17 on: 2014-04-11, 16:39:35 »
output of ' ps -ef |grep mysql '
Code: [Select]
root       595  1417  0 18:18 pts/0    00:00:00 grep mysql
and output of 'ls -l /var/run/ | grep mysqld'
Code: [Select]
drwxr-xr-x  2 mysql     mysql     4096 Jan 31 18:40 mysqld
output of 'sudo mysql -u root -p'
Code: [Select]
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

Offline Kloxo-DR

  • Senior Member
  • *
  • Posts: 239
  • Karma: +3/-9
    • View Profile
Re: mysql can't start
« Reply #18 on: 2014-04-12, 09:35:33 »
1) Reboot the server.

2) Install privileges in mysql

Substitute YOUR_MYSQL_PASSWORD and YOUR_KLOXO_PASSWORD in commands below:

Then first execute:

service mysqld stop
mysqld_safe --skip-grant-tables &
mysql -u root

mysql>
mysql> use mysql;
mysql> UPDATE user SET Password = PASSWORD ('YOUR_MYSQL_PASSWORD') WHERE User='root';
mysql> FLUSH PRIVILEGES;
mysql> quit;

service mysqld start

3) Update privileges in mysql

Thereafter execute:

sh /script/fix-program-mysql YOUR_MYSQL_PASSWORD
sh /script/reset-mysql-root-password YOUR_MYSQL_PASSWORD
sh /script/resetpassword master YOUR_KLOXO_PASSWORD

4) Make sure all is updated

sh /script/cleanup

Reboot the server - only if - there was a php update.
Thereafter:

sh /script/restart-all

Offline Kloxo-DR

  • Senior Member
  • *
  • Posts: 239
  • Karma: +3/-9
    • View Profile
Re: mysql can't start
« Reply #19 on: 2014-04-15, 10:57:34 »
If one of the tables did crash, then try:

sh /script/mysql-optimize --select=optimize
OR
sh /script/mysql-optimize --select=repair

Did you identify if kloxo/vpopmail could connect with the database? If not one should concentrate on that as well, to exlude that possibility.

For resetting the password, see my post in the past or let me know to give you that info.

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.041 seconds with 18 queries.

web stats analysis