Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-30-2014, 04:15 AM
|
#1
|
Member
Registered: Sep 2013
Posts: 321
Rep: 
|
startup mysql error
What I startup the mysql , it pop the below error ,
[code]
140530 17:11:47 mysqld_safe Starting mysqld daemon with databases from /data/mysqld/edp
140530 17:11:47 [Warning] /usr/libexec/mysqld: Option '--set-variable' is deprecated. Use --variable-name=value instead.
140530 17:11:47 [Warning] /usr/libexec/mysqld: Option '--set-variable' is deprecated. Use --variable-name=value instead.
/usr/libexec/mysqld: Table 'mysql.plugin' doesn't exist
140530 17:11:47 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
140530 17:11:47 InnoDB: Initializing buffer pool, size = 8.0M
140530 17:11:47 InnoDB: Completed initialization of buffer pool
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
140530 17:11:47 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Page directory corruption: infimum not pointed to
140530 17:11:47 InnoDB: Page dump in ascii and hex (16384 bytes):
[code/]
From another log , there is the below error .
[code]
cat: /log/mysqld/w2/run/mysqld.pid: No such file or directory
New PID:
ERROR: List of process IDs must follow -p.
[code\]
Then I tried the command mysql_upgrade -u root -p --force , it seems normal to do upgrade , however , the error persist , would advise how can I fix the error ? thanks
Last edited by byran cheung; 05-30-2014 at 04:19 AM.
|
|
|
05-30-2014, 06:50 AM
|
#2
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,444
|
These seem to be the key lines
Code:
InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
If it failed to recover, you'd better hope you have no important data there, or that you do have a backup.
You'll need to re-install the SW and you might(!) be able to recover the DB data ... maybe.
|
|
|
06-03-2014, 10:13 PM
|
#3
|
Member
Registered: Sep 2013
Posts: 321
Original Poster
Rep: 
|
Hi ,
Thanks reply , I tried stop and start the db , it is normal , besides , I checked the plugin tables is exist in the mysql db , would advise what is the possible reason of the error ? thanks
|
|
|
06-04-2014, 06:25 AM
|
#4
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,444
|
Pretty difficult to tell, but these 2 lines try
Code:
140530 17:11:47 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
Looks like someone pulled the plug ...
|
|
|
06-09-2014, 05:06 AM
|
#5
|
Member
Registered: Sep 2013
Posts: 321
Original Poster
Rep: 
|
thanks reply ,
I tried the command mysql_upgrade , but got the following error , would advise what is wrong ? thanks
#mysql_upgrade -u root -p
Enter password:
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
|
|
|
06-09-2014, 07:08 AM
|
#6
|
LQ Newbie
Registered: Jun 2014
Posts: 3
Rep: 
|
you can share file config in /etc/my.cnf direction.
I will help you.
Last edited by thangict93; 06-09-2014 at 07:09 AM.
|
|
|
06-10-2014, 08:44 PM
|
#7
|
Member
Registered: Sep 2013
Posts: 321
Original Poster
Rep: 
|
Quote:
Originally Posted by thangict93
you can share file config in /etc/my.cnf direction.
I will help you.
|
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
[mysql.server]
user=mysql
basedir=/var/lib
[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
|
|
|
06-15-2014, 09:19 PM
|
#8
|
Member
Registered: Sep 2013
Posts: 321
Original Poster
Rep: 
|
Hi thangict93 ,
Would you help for it ? thanks
|
|
|
06-17-2014, 08:37 PM
|
#9
|
Member
Registered: Sep 2013
Posts: 321
Original Poster
Rep: 
|
Is my question not clear enough ? thanks
|
|
|
06-18-2014, 05:04 AM
|
#10
|
Member
Registered: Sep 2013
Posts: 321
Original Poster
Rep: 
|
my full error log is below , would advise how to fix it ? thanks
mysqld_safe Starting mysqld daemon with databases from /data/mysqld/w2
[Warning] /usr/libexec/mysqld: Option '--set-variable' is deprecated. Use --variable-name=value instead.
[Warning] /usr/libexec/mysqld: Option '--set-variable' is deprecated. Use --variable-name=value instead.
/usr/libexec/mysqld: Table 'mysql.plugin' doesn't exist
[ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
InnoDB: Initializing buffer pool, size = 8.0M
InnoDB: Completed initialization of buffer pool
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
140618 17:45:00 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Page directory corruption: infimum not pointed to
140618 17:45:00 InnoDB: Page dump in ascii and hex (16384 bytes):
|
|
|
06-28-2014, 09:05 AM
|
#11
|
LQ Newbie
Registered: Jun 2014
Posts: 3
Rep: 
|
1. restart PC.
or
2.
#ps -ef | grep my
#kill -9 [PID]
|
|
|
All times are GMT -5. The time now is 04:25 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|