Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21996 - init.d script for mysqld is broken for mysql version 4.0.13
Summary: init.d script for mysqld is broken for mysql version 4.0.13
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-31 07:40 UTC by Simon Watson
Modified: 2004-12-02 16:40 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 Simon Watson 2003-05-31 07:40:29 UTC
The init.d script installed with mysqld version 4 points to the wrong executable
for starting the daemon.

Reproducible: Always
Steps to Reproduce:
1. emerge /usr/portage/dev-db/mysql/mysql-4.0.13.ebuild
2. attempt to start the daemon using /etc/init.d/mysql start
Actual Results:  
Reported that the mysqld could not be connected to via /var/run/mysqld/mysqld.sock

Expected Results:  
started the mysql daemon
Comment 1 Simon Watson 2003-05-31 07:41:24 UTC
This can be fixed by editting the line in /etc/init.d/mysql reading:

start() {        checkconfig || return 1        ebegin "Starting mysqld"        /usr/bin/safe_mysqld >/dev/null 2>&1 &        eend $?}

to:
 start() {        checkconfig || return 1        ebegin "Starting mysqld"        /usr/bin/mysqld_safe >/dev/null 2>&1 &        eend $?}


Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-05-31 15:29:31 UTC
You failed to run etc-update and update the init.d file.
Comment 3 Phil Clarke 2003-06-05 23:42:12 UTC
etc-update was run after the emerge, and I selected the option to auto change all needed files automatically.
Comment 4 Adam Nowotny 2004-12-02 16:40:21 UTC
I had the same problem after emerge.
It turned out, that there was no /var/run/mysqld directory.
I created it...but then "permission denied" while trying to open unix socket.
"chown mysql.mysql /var/run/mysqld" fixed it :]