หน้า 1 จากทั้งหมด 2

MySQL Daemon failed to start

โพสต์โพสต์แล้ว: 29 มี.ค. 2012 16:40
โดย noizzy
MySQL Daemon failed to start
Starting mysqld: [FAILED]

แก้ยังไงคะ

Re: MySQL Daemon failed to start

โพสต์โพสต์แล้ว: 30 มี.ค. 2012 12:51
โดย nuiz
ผมมีบทความเกี่ยวกับแก้ปัญหาสตาร์ท MySQL ไม่ได้ ไม่ทราบว่าได้ทดลองดูยังครับ อยู่ใน CentOS นี่แหล่ะ

ลองเข้าไปดูในไฟล์ /var/log/mysql ครับ จะมีบอกสาเหตุไว้ว่าทำไมสตร์ทไม่ได้

Re: MySQL Daemon failed to start

โพสต์โพสต์แล้ว: 30 มี.ค. 2012 14:19
โดย noizzy
ขอบคุณมากค่ะ
ได้เข้าค้นเจออยู่ค่ะ แล้วก็แก้ทำตามแล้ว แต่ก็ไม่ได้เหมือนเดิม

ถ้างั้นช่วยดู และขอคำแนะนำหน่อยนะคะ

[root@localhost ~]# tail -n 20 /var/log/mysqld.log
120330 11:13:36 [ERROR] Error message file '/usr/share/mysql/english/errmsg.sys' had only 481 error messages,
but it should contain at least 722 error messages.
Check that the above file is the right version for this program!
/usr/libexec/mysqld: Unknown error 1146
120330 11:13:36 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
120330 11:13:36 InnoDB: The InnoDB memory heap is disabled
120330 11:13:36 InnoDB: Mutexes and rw_locks use GCC atomic builtins
120330 11:13:36 InnoDB: Compressed tables use zlib 1.2.3
120330 11:13:36 InnoDB: Using Linux native AIO
120330 11:13:36 InnoDB: Initializing buffer pool, size = 128.0M
120330 11:13:36 InnoDB: Completed initialization of buffer pool
120330 11:13:36 InnoDB: highest supported file format is Barracuda.
120330 11:13:36 InnoDB: Waiting for the background threads to start
120330 11:13:37 InnoDB: 1.1.8 started; log sequence number 1595675
120330 11:13:37 [ERROR] Aborting

120330 11:13:37 InnoDB: Starting shutdown...
120330 11:13:38 InnoDB: Shutdown completed; log sequence number 1595675
120330 11:13:38 [Note]
120330 11:13:38 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
[root@localhost ~]#

Re: MySQL Daemon failed to start

โพสต์โพสต์แล้ว: 30 มี.ค. 2012 14:43
โดย nuiz
Can't open the mysql.plugin table. Please run mysql_upgrade to create it.

ลองรันคำสั่ง mysql_upgrade

หรือไม่ก็ถ้าเพิ่งติดตั้งเลย ลบทิ้งก่อน แล้วลงใหม่ ถ้าเป็น centos ให้ทำแบบนี้

rpm -e mysql --nodeps
rpm -e mysql-devel --nodeps
rpm -e mysql-server --nodeps
rm -rf /var/lib/mysql
rm -rf /usr/share/mysql

แล้วค่อยติดตั้งใหม่

yum -y install mysql mysql-devel mysql-server

แล้วลองสตาร์ทใหม่

Re: MySQL Daemon failed to start

โพสต์โพสต์แล้ว: 30 มี.ค. 2012 16:23
โดย noizzy
จะลองทำดูนะคะ ขอบพระคุณมากๆ ค่ะ :D

Re: MySQL Daemon failed to start

โพสต์โพสต์แล้ว: 02 เม.ย. 2012 10:26
โดย noizzy
ขอรบกวนอีกครั้งค่ะ

[root@localhost ~]# mysql_upgrade
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
Running 'mysqlcheck with default connection arguments
mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) when trying to connect
FATAL ERROR: Upgrade failed

Re: MySQL Daemon failed to start

โพสต์โพสต์แล้ว: 02 เม.ย. 2012 11:37
โดย nuiz
งั้นลบออกแล้วติดตั้งใหม่เลยครับ

Re: MySQL Daemon failed to start

โพสต์โพสต์แล้ว: 02 เม.ย. 2012 15:56
โดย noizzy
ลบออก ลงใหม่แล้ว มันขึ้นว่า...
แก้ยังไงคะ...

Initializing MySQL database: Installing MySQL system tables...
120402 15:43:44 [ERROR] Error message file '/usr/share/mysql/english/errmsg.sys' had only 481 error messages,
but it should contain at least 722 error messages.
Check that the above file is the right version for this program!
120402 15:43:44 [ERROR] Aborting

120402 15:43:44 [Note]

Installation of system tables failed! Examine the logs in
/var/lib/mysql for more information.

You can try to start the mysqld daemon with:

shell> /usr/libexec/mysqld --skip-grant &

and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables:

shell> /usr/bin/mysql -u root mysql
mysql> show tables

Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/mysql that may be helpful.

Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS. Another information source are the
MySQL email archives available at http://lists.mysql.com/.

Please check all of the above before mailing us! And remember, if
you do mail us, you MUST use the /usr/bin/mysqlbug script!

[FAILED]

Re: MySQL Daemon failed to start

โพสต์โพสต์แล้ว: 02 เม.ย. 2012 23:15
โดย nuiz
อืม..
ตอนลบใช้คำสั่งไรบ้าง และตอนติดตั้งใช้คำสั่งไรบ้าง

Re: MySQL Daemon failed to start

โพสต์โพสต์แล้ว: 03 เม.ย. 2012 07:53
โดย noizzy
ลบ ใช้คำสั่ง
yum remove mysql
rm -rf /var/lib/mysql
rm -rf /usr/share/mysql

ติดตั้ง

yum -y install mysql mysql-devel mysql-server php-mysql

ค่ะ --"