Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 17th April 2011, 02:25 PM
mohitengi Offline
Registered User
 
Join Date: Oct 2010
Posts: 10
linuxfedorafirefox
MySQL Daemon failed to start.

I am not able to start mysql server...when i type command sevice mysqld start it says :--


MySQL Daemon failed to start.
Starting mysqld: [FAILED]

so how to solve this problem ????
Reply With Quote
  #2  
Old 17th April 2011, 03:12 PM
EMOziko's Avatar
EMOziko Offline
Registered User
 
Join Date: Nov 2009
Posts: 22
linuxfirefox
Re: MySQL Daemon failed to start.

post /var/log/mysqld.log contnent.
Reply With Quote
  #3  
Old 17th April 2011, 03:53 PM
mohitengi Offline
Registered User
 
Join Date: Oct 2010
Posts: 10
linuxfedorafirefox
Re: MySQL Daemon failed to start.

all file can't be posted and i can't understand which part to be paste coz i am newbie to linux(fedora)..
.
Reply With Quote
  #4  
Old 17th April 2011, 04:10 PM
EMOziko's Avatar
EMOziko Offline
Registered User
 
Join Date: Nov 2009
Posts: 22
linuxfirefox
Re: MySQL Daemon failed to start.

post output of this command:
tail -n 20 /var/log/mysqld.log


p.s. you must be root
Reply With Quote
  #5  
Old 17th April 2011, 05:50 PM
mohitengi Offline
Registered User
 
Join Date: Oct 2010
Posts: 10
linuxfedorafirefox
Re: MySQL Daemon failed to start.

root@localhost mohit]# tail -n 20 /var/log/mysqld.log
110417 18:37:45 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
110417 18:37:45 InnoDB: Initializing buffer pool, size = 8.0M
110417 18:37:45 InnoDB: Completed initialization of buffer pool
110417 18:37:45 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.
110417 18:37:45 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
110417 18:54:00 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
110417 18:54:00 InnoDB: Initializing buffer pool, size = 8.0M
110417 18:54:00 InnoDB: Completed initialization of buffer pool
110417 18:54:00 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.
110417 18:54:00 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
Reply With Quote
  #6  
Old 17th April 2011, 06:02 PM
Miikka's Avatar
Miikka Offline
Registered User
 
Join Date: Apr 2011
Location: Finland
Posts: 293
linuxfedorafirefox
Re: MySQL Daemon failed to start.

You need to log as root to start mysql.
Code:
su -c "service mysqld start"
Reply With Quote
  #7  
Old 17th April 2011, 06:03 PM
EMOziko's Avatar
EMOziko Offline
Registered User
 
Join Date: Nov 2009
Posts: 22
linuxfirefox
Re: MySQL Daemon failed to start.

I think this is SELinux problem.
You can turn selinux off. but this is security application and turning it off is not recommended if you are running fedora on server.

you can turn off selinux by changing /etc/selinux/config file

SELINUX=enforcing to SELINUX=permissive

and reboot fedora.
Reply With Quote
  #8  
Old 25th April 2011, 05:46 PM
nostrad Offline
Registered User
 
Join Date: Apr 2011
Posts: 5
windows_xp_2003chrome
Unhappy Re: MySQL Daemon failed to start. [URGENT]

I have the same problem. I installed Fedora 14. Then I added a new disk and changed the MySQL data directory in my.cnf to point to a folder on this new disk.

I started getting SELinux error messages, which by following the help in those messages I managed to resolve.

But now after a reboot MySQL fails to start, it is something to do with SELinux.

Does documentation exist about how to resolve these errors?

Basically I need to know:

All the steps needed to successfully change the data directory for MySQL, including setting permissions, SELinux commands etc.


Regards,
ND
Reply With Quote
  #9  
Old 5th May 2011, 02:04 AM
Vector's Avatar
Vector Offline
Banned
 
Join Date: Jul 2006
Location: Transgression
Age: 33
Posts: 1,183
linuxfirefox
Re: MySQL Daemon failed to start.

The guy with the first problem should not be getting those errors on a defualt install; so i assume he did something "different".

The second guy needs this:
http://thesocialexpo.com/?a=WCMS_Art...0693119&page=1
Reply With Quote
  #10  
Old 5th May 2011, 01:49 PM
abhijitsarangi Offline
Registered User
 
Join Date: May 2010
Posts: 58
linuxredhatfirefox
Re: MySQL Daemon failed to start.

please check if you are starting the service as root or not...
Reply With Quote
  #11  
Old 12th May 2011, 08:39 AM
kumardvel Offline
Registered User
 
Join Date: Apr 2010
Posts: 1
linuxfirefox
Re: MySQL Daemon failed to start.

i am new to linux.
the following command worked for me please try which i got while googled

service mysqld stop
rm -rf /var/lib/mysql/*
service mysqld start
mysql_secure_installation
Reply With Quote
  #12  
Old 9th June 2012, 07:54 PM
osama3030 Offline
Registered User
 
Join Date: Jun 2012
Location: Sanaa, Yemen
Posts: 1
windows_7firefox
Thumbs up Re: MySQL Daemon failed to start.

Quote:
i am new to linux.
the following command worked for me please try which i got while googled

service mysqld stop
rm -rf /var/lib/mysql/*
service mysqld start
mysql_secure_installation

Thank you 'kumardvel', I registered only to say thank you, it worked for me after hours and hours of trying google results
Reply With Quote
Reply

Tags
daemon, failed, mysql, start

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
abrt daemon failed to start kauyumari Using Fedora 2 8th January 2010 05:38 PM
Pulseaudio daemon failed to start MuadNu Using Fedora 9 25th November 2009 07:48 PM
dbus-daemon-1: Failed to start message bus: Failed to bind socket HaydnH Using Fedora 2 30th June 2005 05:31 PM
Timeout error occurred trying to start MySQL Daemon Mat Using Fedora 0 21st November 2004 11:33 PM


Current GMT-time: 22:27 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat