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-29, 00:33:47

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

0 Members and 1 Guest are viewing this topic.

Offline letux

  • Valuable Member
  • *
  • Posts: 131
  • Karma: +0/-0
    • View Profile
mysql can't start
« on: 2014-04-10, 01:04:15 »
hey ..

i have a problem with mysql server on server and i don't know what happend or how to fix it .

mysql database is dropped

Code: [Select]
# service mysqld restart
Stopping mysqld:                                           [  OK  ]
MySQL Daemon failed to start.
Starting mysqld:                                           [FAILED]

how to know where is the problem and fix it ?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: mysql can't start
« Reply #1 on: 2014-04-10, 04:34:55 »
Inform here 'mysql -V' and 'rpm -qa|grep mysql'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline letux

  • Valuable Member
  • *
  • Posts: 131
  • Karma: +0/-0
    • View Profile
Re: mysql can't start
« Reply #2 on: 2014-04-10, 07:25:22 »
Code: [Select]
# mysql -V
mysql  Ver 14.14 Distrib 5.5.34, for Linux (x86_64) using readline 5.1
Code: [Select]
# rpm -qa|grep mysql
mysqlclient16-5.1.61-2.ius.el6.x86_64
mysql-libs-5.5.34-1.el6.x86_64
mysql-5.5.34-1.el6.x86_64
mysql-server-5.5.34-1.el6.x86_64
php53u-mysql-5.3.27-1.ius.el6.x86_64

Offline letux

  • Valuable Member
  • *
  • Posts: 131
  • Karma: +0/-0
    • View Profile
Re: mysql can't start
« Reply #3 on: 2014-04-10, 07:55:35 »
Code: [Select]
# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

Code: [Select]
# whereis mysql.sock
mysql: /usr/bin/mysql /usr/lib/mysql /usr/lib64/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz

Offline Kloxo-DR

  • Senior Member
  • *
  • Posts: 239
  • Karma: +3/-9
    • View Profile
Re: mysql can't start
« Reply #4 on: 2014-04-10, 08:11:38 »
An easy answer is to restart the server and the problem will go away.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: mysql can't start
« Reply #5 on: 2014-04-10, 08:12:10 »
Inform here 'sh /script/sysinfo; service mysqld restart; tail -10 /var/log/mysqld.log'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Kloxo-DR

  • Senior Member
  • *
  • Posts: 239
  • Karma: +3/-9
    • View Profile
Re: mysql can't start
« Reply #6 on: 2014-04-10, 11:25:48 »
Hi Mustafa,
Inform here 'sh /script/sysinfo; service mysqld restart; tail -10 /var/log/mysqld.log'.

Your question is wrong.

Service mysql will not start because you asked but because it has problem mentioned in the begining of this thread.

See:

/usr/lib/mysql /usr/lib64/mysql

The problem occurs using unix or domain socket. Either kill it or new start the server.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: mysql can't start
« Reply #7 on: 2014-04-10, 11:55:06 »
The reason of Kloxo-MR using mysql 5.5 because until this time don't know why mysql 5.1 not able to start/restart. Sadly, centalt remove their mysql 5.5 in centos 6 and php52s still compile under mysql 5.5.

Need recompile php52s with dependencies to mysql55 (from IUS) rather than mysql 5.5 (from CentAlt).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline letux

  • Valuable Member
  • *
  • Posts: 131
  • Karma: +0/-0
    • View Profile
Re: mysql can't start
« Reply #8 on: 2014-04-10, 20:37:11 »
Code: [Select]
# sh /script/sysinfo; service mysqld restart; tail -10 /var/log/                        mysqld.log

A. Kloxo-MR: 6.5.0.f-2013121702

B. OS: CentOS release 6.5 (Final) x86_64

C. Apps:
   1. MySQL: mysql-5.5.34-1.el6.x86_64
   2. PHP: php53u-5.3.27-1.ius.el6.x86_64
   3. Httpd: --uninstalled--
   4. Lighttpd: --uninstalled--
   5. Nginx: --uninstalled--
   6. Qmail: qmail-toaster-1.03-1.3.29.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.14.mr.el6.x86_64
   7. Dns: bind-9.9.4-1.P1.el6.x86_64

D. Php-type (for Httpd/proxy):

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:          1867       1236        631          0        198        387
   -/+ buffers/cache:        650       1217
   Swap:         3999          0       3999

Stopping mysqld:                                           [  OK  ]
MySQL Daemon failed to start.
Starting mysqld:                                           [FAILED]
/usr/libexec/mysqld(_Z24ha_initialize_handlertonP13st_plugin_int+0x41)[0x676eb1]
/usr/libexec/mysqld[0x58d4d8]
/usr/libexec/mysqld(_Z11plugin_initPiPPci+0x8c8)[0x590db8]
/usr/libexec/mysqld[0x518078]
/usr/libexec/mysqld(_Z11mysqld_mainiPPc+0x3fd)[0x51b1dd]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x384221ed1d]
/usr/libexec/mysqld[0x510ee5]
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
140410 22:18:28 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ende                        d

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: mysql can't start
« Reply #9 on: 2014-04-11, 04:23:13 »
Your mysql is crash. It's not related to Kloxo-MR itself but mysql only.

Try read http://dev.mysql.com/doc/mysql/en/crashing.html to know about mysql crash. Also, inform here your 'cat /etc/my.cnf'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline letux

  • Valuable Member
  • *
  • Posts: 131
  • Karma: +0/-0
    • View Profile
Re: mysql can't start
« Reply #10 on: 2014-04-11, 10:51:47 »
Code: [Select]
# cat /etc/my.cnf
[mysqld]
#skip-innodb
default-storage-engine=innodb
# Settings user and group are ignored when systemd is used (fedora >= 15).
# If you need to run mysqld under different user or group,
# customize your systemd unit file for mysqld according to the
# instructions in http://fedoraproject.org/wiki/Systemd
user=mysql

datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock

# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0

# Semisynchronous Replication
# http://dev.mysql.com/doc/refman/5.5/en/replication-semisync.html
# uncomment next line on MASTER
;plugin-load=rpl_semi_sync_master=semisync_master.so
# uncomment next line on SLAVE
;plugin-load=rpl_semi_sync_slave=semisync_slave.so

# Others options for Semisynchronous Replication
;rpl_semi_sync_master_enabled=1
;rpl_semi_sync_master_timeout=10
;rpl_semi_sync_slave_enabled=1

# http://dev.mysql.com/doc/refman/5.5/en/performance-schema.html
;performance_schema


[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid


Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: mysql can't start
« Reply #11 on: 2014-04-11, 10:54:47 »
Try 'yum replace mysql --replace-with=mysql55'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline letux

  • Valuable Member
  • *
  • Posts: 131
  • Karma: +0/-0
    • View Profile
Re: mysql can't start
« Reply #12 on: 2014-04-11, 10:56:46 »
Code: [Select]
# yum replace mysql --replace-with=mysql55
Loaded plugins: fastestmirror, priorities, protectbase, replace, security
Loading mirror speeds from cached hostfile
 * base: mirror.crazynetwork.it
 * extras: mirror.citynethost.com
 * updates: mirror.citynethost.com
base                                                     | 3.7 kB     00:00
extras                                                   | 3.4 kB     00:00
updates                                                  | 3.4 kB     00:00
0 packages excluded due to repository protections
Replacing packages takes time, please be patient...
Error: No Package Matching mysql55

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: mysql can't start
« Reply #13 on: 2014-04-11, 11:04:10 »
Hmmm,

It's because your KLoxo-MR apps and mratwork-release repo too old. Run 'yum clean all; yum update first'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline letux

  • Valuable Member
  • *
  • Posts: 131
  • Karma: +0/-0
    • View Profile
Re: mysql can't start
« Reply #14 on: 2014-04-11, 11:16:24 »
still

Code: [Select]
Error: No Package Matching mysql55
i will burn myself  :( :'(

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.03 seconds with 18 queries.

web stats analysis