Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133067 - mysql-4.1.19 init.d script says ok, even though mysqld didn't start
Summary: mysql-4.1.19 init.d script says ok, even though mysqld didn't start
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-11 17:05 UTC by David Grant
Modified: 2007-01-12 22:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Grant 2006-05-11 17:05:35 UTC
Here's what I get when I start the mysql init script:

minuet mysql # /etc/init.d/mysql start
 * Caching service dependencies ...                                         [ok]
 *  ...
 * Strange, the socket file already exist in "/var/run/mysqld/mysqld.sock"
 * it will be removed now and re-created by the MySQL server
 * BUT please make your checks.
 * Starting mysql (/etc/mysql/my.cnf)                                       [ok]

mysqld isn't running...

minuet mysql # ps ax |grep mysql
29736 pts/1    S+     0:00 grep mysql

look what happens when I run mysqld:

minuet mysql # mysqld
InnoDB: Error: log file ./ib_logfile0 is of different size 0 8388608 bytes
InnoDB: than specified in the .cnf file 0 5242880 bytes!
060511 16:57:25 [ERROR] Can't init databases
060511 16:57:25 [ERROR] Aborting

060511 16:57:25 [Note] mysqld: Shutdown complete

If I delete the ib_logfile0 and ib_logfile1, mysql will start correctly:

minuet mysql # /etc/init.d/mysql start
 *  ...
 * Strange, the socket file already exist in "/var/run/mysqld/mysqld.sock"
 * it will be removed now and re-created by the MySQL server
 * BUT please make your checks.
 * Starting mysql (/etc/mysql/my.cnf)                                            [ ok ]
minuet mysql # ps ax |grep mysql
29919 ?        Ssl    0:00 /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
29930 pts/1    R+     0:00 grep mysql


So the bug is:

Expected result:
-an error when I run /etc/init.d/mysql

Actual result:
-I see [ok] when I run /etc/init.d/mysql even though it didn't start
-Even better: show the error output from mysqld:

InnoDB: Error: log file ./ib_logfile0 is of different size 0 8388608 bytes
InnoDB: than specified in the .cnf file 0 5242880 bytes!
060511 16:57:25 [ERROR] Can't init databases
060511 16:57:25 [ERROR] Aborting
Comment 1 Luca Longinotti (RETIRED) gentoo-dev 2007-01-12 22:24:42 UTC
Well, the error is clear, the InnoDB logfile is different than what is set in my.cnf, we can't really do much about that ourselves...
Deleting the file or changing the my.cnf settings should fix this.
Best regards, CHTEKK.