Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 12-12-2012, 05:48 PM   #1
LQ Newbie
Registered: Feb 2010
Posts: 9

Rep: Reputation: 0
mysql start up issue

After following this post to shrink a 30Gb innodb I am having problem s starting mysql.

"service mysqld start" will not work

When I run the service mysqld start I get this in the log:
121212 19:43:19 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
/usr/libexec/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
121212 19:43:19 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
121212 19:43:19  InnoDB: Initializing buffer pool, size = 100.0M
121212 19:43:19  InnoDB: Completed initialization of buffer pool
121212 19:43:19  InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: File operation call: 'open'.
InnoDB: Cannot continue operation.
121212 19:43:19 mysqld_safe mysqld from pid file /var/run/mysqld/ ended
su mysql
cd /usr ; /usr/bin/mysqld_safe &

This is on Red Hat EL6.3
mysql version 5.1
everthing under /var/lib/mysql is owned by mysql:mysql

Thanks in advance
Old 12-12-2012, 05:55 PM   #2
LQ Newbie
Registered: Feb 2010
Posts: 9

Original Poster
Rep: Reputation: 0
SOLVED - selinux was causing it:

restorecon -R /var/lib/mysql/
was the fix.



mysql, mysqld

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL Issue on Start simeon.mattes Slackware 14 09-29-2010 07:07 AM
After moving mysql db to NFS[netapp] unable to start mysql server throws error naveenrajn Linux - General 3 09-13-2010 02:20 AM
Apache2, PHP5, or MYSQL issue: Unable to jump to row 0 on MySQL ..... MTAS Linux - Server 5 03-26-2010 09:13 AM
Problem changing mysql uid,gid: mysql start fails gjatute Linux - Newbie 7 02-25-2010 01:38 AM
I have RHEL 5.0 and MySQL start problem, my MySQL server doesn't start rsatya Linux - Enterprise 4 02-03-2009 12:04 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:45 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration