Fedora Linux Support Community & Resources Center
Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > Fedora Support > Servers

Servers The place to discuss any Fedora server problems you may have.

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2004-08-07, 10:26 PM CDT
Aardvark Freak Offline
Registered User
 
Join Date: May 2004
Age: 24
Posts: 132
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 2004-08-11, 12:59 PM CDT
Aardvark Freak Offline
Registered User
 
Join Date: May 2004
Age: 24
Posts: 132
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 2004-08-11, 01:07 PM CDT
ewdi's Avatar
ewdi Offline
Retired Admin
 
Join Date: Jan 2004
Location: Penguin Land
Age: 59
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 2004-08-11, 01:27 PM CDT
Aardvark Freak Offline
Registered User
 
Join Date: May 2004
Age: 24
Posts: 132
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 2004-08-11, 01:51 PM CDT
Paul_Vandenberg Offline
Registered User
 
Join Date: Feb 2004
Location: Canada
Age: 44
Posts: 313
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 2004-08-11, 01:53 PM CDT
Aardvark Freak Offline
Registered User
 
Join Date: May 2004
Age: 24
Posts: 132
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 2004-08-11, 02:12 PM CDT
ewdi's Avatar
ewdi Offline
Retired Admin
 
Join Date: Jan 2004
Location: Penguin Land
Age: 59
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 2004-08-11, 04:24 PM CDT
Aardvark Freak Offline
Registered User
 
Join Date: May 2004
Age: 24
Posts: 132
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 2004-08-14, 11:37 AM CDT
Aardvark Freak Offline
Registered User
 
Join Date: May 2004
Age: 24
Posts: 132
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 2004-08-23, 04:03 AM CDT
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 2004-08-24, 08:03 AM CDT
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 2004-08-30, 05:29 AM CDT
tommytomato Offline
Registered User
 
Join Date: Aug 2004
Posts: 11
what OS are you using.

TT
  #13  
Old 2004-08-30, 06:20 AM CDT
Paul_Vandenberg Offline
Registered User
 
Join Date: Feb 2004
Location: Canada
Age: 44
Posts: 313
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 2004-09-24, 10:03 AM CDT
LLS Online
Registered User
 
Join Date: Sep 2004
Location: +37 -95
Posts: 497
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 2004-09-24, 11:32 AM CDT
pcranger's Avatar
pcranger Offline
Registered User
 
Join Date: Sep 2004
Location: Middlesex, UK
Age: 21
Posts: 5
try starting it up with....

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

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 Off
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 17 2006-09-18 07:59 PM CDT
mysqld help ajthornton Software 8 2006-04-25 06:06 PM CDT
mysqld has disapered Wishartz Servers 7 2005-09-11 05:15 AM CDT
Help Setting Up mysqld 07dcolem Servers 4 2005-02-01 05:07 PM CST
mysqld error Amit Bapat gmane.linux.redhat.fedora.general 10 2003-11-06 05:32 AM CST

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 10:02 PM CST.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
Hosting provided by ThePlanet



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 | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
Thanks to NLP-er enjoy automatic translations (vBET)