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.

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 8th August 2004, 05:26 AM
Aardvark Freak Offline
Registered User
 
Join Date: May 2004
Age: 27
Posts: 133
mysqld won't start

i installed mysql with apt-get install mysql-server. it installed fine. but when i try to start the service, i get this error:
Quote:
# /sbin/service mysqld start
Timeout error occurred trying to start MySQL Daemon.
Starting MySQL: [FAILED]
i've never installed mysql before, so is there something else i have to do before it will work correctly?
  #2  
Old 11th August 2004, 07:59 PM
Aardvark Freak Offline
Registered User
 
Join Date: May 2004
Age: 27
Posts: 133
nobody knows? well, let me rephrase my question.

is there a guide somewhere on how to get mysql working on fc2? do you have to do anything after installing the rpm? have other people gotten it working? if so, what did you do?
  #3  
Old 11th August 2004, 08:07 PM
ewdi's Avatar
ewdi Offline
Retired Admin
 
Join Date: Jan 2004
Location: Penguin Land
Age: 63
Posts: 1,939
Post your my.cnf and also the error log file
__________________
+ Visit My new blog
- [B]SlashGear US, SlashGear Japan, and
+Founder & Admin of www.fedoraforum.org

Follow me at http://twitter.com/ewdi

Laptop : MacBook Pro 2.4Ghz 4GB DDR, 20-inch iMac Aluminium/4GB RAM
  #4  
Old 11th August 2004, 08:27 PM
Aardvark Freak Offline
Registered User
 
Join Date: May 2004
Age: 27
Posts: 133
here is the my.cnf, i believe it's the default.
Code:
[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
error log:
Code:
040808 00:25:33  mysqld started
Cannot initialize InnoDB as 'innodb_data_file_path' is not set.
If you do not want to use transactional InnoDB tables, add a line
skip-innodb
to the [mysqld] section of init parameters in your my.cnf
or my.ini. If you want to use InnoDB tables, add to the [mysqld]
section, for example,
innodb_data_file_path = ibdata1:10M:autoextend
But to get good performance you should adjust for your hardware
the InnoDB startup options listed in section 2 at
http://www.innodb.com/ibman.html
040808  0:25:33  /usr/libexec/mysqld: Incorrect information in file: './mysql/host.frm'
040808 00:25:33  mysqld ended
  #5  
Old 11th August 2004, 08:51 PM
Paul_Vandenberg Offline
Registered User
 
Join Date: Feb 2004
Location: Canada
Posts: 344
I'ver always started the MYSQL service through the Services GUI tool under System Settings. The precise name of the tool escapes me at the momment and I can't check it because I'm on a Windows box at work. Anyway, it's always worked for me. Perhaps the script that the tool generates has a parm or something.

Paul
  #6  
Old 11th August 2004, 08:53 PM
Aardvark Freak Offline
Registered User
 
Join Date: May 2004
Age: 27
Posts: 133
when i start it through the gui, it says "mysqld dead but subsys locked" and i get the same error in the error log.
  #7  
Old 11th August 2004, 09:12 PM
ewdi's Avatar
ewdi Offline
Retired Admin
 
Join Date: Jan 2004
Location: Penguin Land
Age: 63
Posts: 1,939
okay, you should add skip-innodb under socket=/var/lib/mysql/mysql.sock and then try again
__________________
+ Visit My new blog
- [B]SlashGear US, SlashGear Japan, and
+Founder & Admin of www.fedoraforum.org

Follow me at http://twitter.com/ewdi

Laptop : MacBook Pro 2.4Ghz 4GB DDR, 20-inch iMac Aluminium/4GB RAM
  #8  
Old 11th August 2004, 11:24 PM
Aardvark Freak Offline
Registered User
 
Join Date: May 2004
Age: 27
Posts: 133
i did that, but it still won't work. now the log contains this this:
Quote:
040811 18:22:30 mysqld started
040811 18:22:30 /usr/libexec/mysqld: Incorrect information in file: './mysql/host.frm'
040811 18:22:30 /usr/libexec/mysqld: Normal shutdown
i can't find any host.frm file on my system.
  #9  
Old 14th August 2004, 06:37 PM
Aardvark Freak Offline
Registered User
 
Join Date: May 2004
Age: 27
Posts: 133
now i've found host.frm, it's in /var/lib/mysql/mysql/host.frm. for some reason the gnome search program couldn't find it though.

anyways, it appears that it's not a text file, so i don't know how to edit it if there's something wrong. can anyone help?
  #10  
Old 23rd August 2004, 11:03 AM
jbarendse Offline
Registered User
 
Join Date: Aug 2004
Posts: 1
I have the same problem on FC1 with a clean installation and a clean RPM (yum) installation of mysql-server-3.23.58-4. It seams like a bug in FC1 in combination with MySQL. The most strange part is the "mysqld start" reports a time-out but the service seams to run with "ps -aux|grep mysql".

If you search google.com with this problems you get a lot of result but nobody knows an answer. Everybody is looking in the config but I think ther is same other problemen. Most likly a bug?
  #11  
Old 24th August 2004, 03:03 PM
goe Offline
Registered User
 
Join Date: Aug 2004
Posts: 10
I have exactly the same problem with my fedora2
I try to start mysql server and I get "mysqld dead but subsys locked" !!!
What can I do to make it work?

Please help!
goe
  #12  
Old 30th August 2004, 12:29 PM
tommytomato Offline
Registered User
 
Join Date: Aug 2004
Posts: 11
what OS are you using.

TT
  #13  
Old 30th August 2004, 01:20 PM
Paul_Vandenberg Offline
Registered User
 
Join Date: Feb 2004
Location: Canada
Posts: 344
Last week, I tried MySQL on FC2 for the first time and I got the same error, i.e. "mysqld dead but subsys locked". I played around with the startup script and couldn't get it to work. I uninstalled MySQL and installed PostgreSQL instead. A couple of days later, I decided to try MySQL again, and it worked! I don't know what I did!
  #14  
Old 24th September 2004, 05:03 PM
LLS
Guest
 
Posts: n/a
Quote:
Originally Posted by Aardvark Freak
when i start it through the gui, it says "mysqld dead but subsys locked" and i get the same error in the error log.
I found this posted on another forum--- try at own risk

If you run

killall -9 mysqld ---> may take a couple of attempts

then
/etc/rc.d/init.d/mysqld restart
mysql should turn over and run fine again.
  #15  
Old 24th September 2004, 06:32 PM
pcranger's Avatar
pcranger Offline
Registered User
 
Join Date: Sep 2004
Location: Middlesex, UK
Age: 24
Posts: 5
try starting it up with....

Code:
/etc/init.d/mysqld start
Closed Thread

Tags
mysqld, 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
#/etc/init.d/mysqld start FAILS won't start mysql cwynn Servers & Networking 17 19th September 2006 02:59 AM
mysqld help ajthornton Using Fedora 8 26th April 2006 01:06 AM
mysqld has disapered Wishartz Servers & Networking 7 11th September 2005 12:15 PM
Help Setting Up mysqld 07dcolem Servers & Networking 4 2nd February 2005 12:07 AM


Current GMT-time: 16:10 (Wednesday, 22-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