Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
MySql doesnt start
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
martindv
Apprentice
Apprentice


Joined: 16 Jul 2005
Posts: 171
Location: Argentina

PostPosted: Sat Nov 18, 2006 12:11 pm    Post subject: MySql doesnt start Reply with quote

Hi Guys,
I've installed MySql from portage on an old box i have. Everything seem to went fine until y tryed to start mysql via /etc/init.d script..

when i try tu run the script i get the following message:
Code:
Servtoo mysql # /etc/init.d/mysql start
 * Starting mysql ...
 * Starting mysql (/etc/mysql/my.cnf)
 * MySQL NOT started (0)                     
Servtoo mysql #


its wired cause i think i have all conf. files well configured. and although i have that error message the deamon starts without problem...
thats the message that i receive when i try to restart the deamon after try to start it
Code:
Servtoo mysql # /etc/init.d/mysql restart
 * Starting mysql ...
 * "/var/run/mysqld/mysqld.pid" is still present and the process is running.
 * Please stop it "kill 14851" maybe ?                                    [ !! ]
Servtoo mysql #


im completelly lost with this.... and i really mysql to run from the script, cause this fail is causing that i cant run apache2 from script either.

please if you have a clue let me know.

Thanks in advance.
_________________
Gentoo Rulez

AMD Athlon XP 2800+ @2.08Ghz
Asus A7V8NX-E-Deluxe
Nvidia Nforce2 chipset
1GB Ram
ASUS GeForce N6600 256MB RAM
2 IDE HDDS @Primary/Secondary Master
1 120GB HDD @Sata Channel #0
Back to top
View user's profile Send private message
scoon
l33t
l33t


Joined: 23 Aug 2003
Posts: 747
Location: Philadelphia, PA

PostPosted: Sat Nov 18, 2006 12:38 pm    Post subject: Reply with quote

Hey there,

Code:
/etc/init.d/mysql zap


should fix you right up.

-scoon
_________________
Hope this helps........
Back to top
View user's profile Send private message
logics
n00b
n00b


Joined: 05 May 2004
Posts: 6

PostPosted: Tue Nov 21, 2006 5:04 pm    Post subject: Re: MySql doesnt start Reply with quote

martindv wrote:
Hi Guys,
I've installed MySql from portage on an old box i have. Everything seem to went fine until y tryed to start mysql via /etc/init.d script..

when i try tu run the script i get the following message:
Code:
Servtoo mysql # /etc/init.d/mysql start
 * Starting mysql ...
 * Starting mysql (/etc/mysql/my.cnf)
 * MySQL NOT started (0)                     
Servtoo mysql #



I was having the same problem here; so... I uncommented DEBUG=4 in /etc/conf.d/mysql and that output looked like it should be working. I saw how it was trying to launch mysqld, so figured I'd give it a whirl.

I ran /usr/sbin/mysqld manually at the shell and saw the following:

Code:

$ /usr/sbin/mysqld --defaults-file=/etc/mysql/my.cnf   --basedir=/usr --datadir=/var/lib/mysql --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock

061121  8:41:51 [ERROR] /usr/sbin/mysqld: unknown variable 'innodb_buffer_pool_size=16M'


More meat to search for :) There was one thread that mentioned how a user was trying to enable innodb (they had explicitly added it as a USE flag, etc.) but was seeing the same failure; which led me to believe that perhaps my configuration didn't have, nor want innodb, but the configuration was bad...

So, I looked in /etc/conf.d/my.cnf and sure enough innodb has lots of things defined. I don't know what innodb is, but I know I don't have the USE flag set for it -- so mysql shouldn't be using it (I would think). So I commented all of those usages out of my.cnf and wha-la... mysql now starts. Happy camper.

You can cheat and use this to edit out innodb variables:

Code:

$ sed -i -e "s:^innodb:#innodb:g" -e "s:^\(set-variable.*innodb\):#\1:g" -e "s:skip_innodb:#skip_innodb:g" /etc/mysql/my.cnf


Hopefully it will work for you as it did for me... my network is now back up and my users are happy again. If it didn't work, and you're still having problems, perhaps running mysqld manually will give you more output to hunt on.

James
_________________
ipw2100 & ipw2200 developer / ipw3945 developer & maintainer
irc.freenode.net #ipw2100 - http://ipw3945.sf.net - http://bughost.org/repos/
Back to top
View user's profile Send private message
supermihi
Guru
Guru


Joined: 09 Feb 2005
Posts: 348

PostPosted: Mon Mar 19, 2007 1:10 pm    Post subject: Reply with quote

Thanks - I had the same problem, and this thread helped me to fix it. Btw, please mark the topic as "[SOLVED]".

Edit: If anyone has the same issue: You don't have to comment out every innodb-related stuff in my.cnf, it's enough to just uncomment the "skip-innodb" line; mysql then ignores everything else related to innodb.
_________________
"You may say I'm a dreamer, but I'm not the only one."
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Fri Oct 10, 2008 8:37 am    Post subject: Reply with quote

Hello,

thank you for the solution. I resolved that problem too, removing the "#" symbol in front of skip-innodb but I don't like this solution very much. I had this problem on my laptop.
The skip-innodb option is commented on my Desktop PC but no strange errors occur.

What's going on?
_________________
[HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered
Back to top
View user's profile Send private message
oc666
Guru
Guru


Joined: 15 May 2006
Posts: 330
Location: Israel

PostPosted: Wed Dec 30, 2009 1:24 pm    Post subject: Reply with quote

There is a bug on this in bugzilla:
https://bugs.gentoo.org/254133
_________________
embAD-new way to insert ads to your website
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum