vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm having trouble with starting mysql at boot time on a Slackware 9.0 box. This is what I did: I put the following lines in rc.local if [ -x /etc/rc.d/rc.mysql ]; then . /etc/rc.d/rc.mysql start fi rc.mysql is actually a soft link to /usr/share/mysql/mysql.server, and when I execute it from bash it works normally. It even works if I run /etc/rc.d/rc.local from bash. But when I boot up, mysql server starts up and suddenly quit. Any idea? I also run at boot time apache and cups, all following the 'standard' Slackware way and without any trouble. - -- Dario Basile - ---------------------------------------------------------------- Amantes amentes si coitus frementes non habent frequentes. - ---------------------------------------------------------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/AwmO7mRkrRsDl/8RAnbwAKCcduMLOZVuFINkoJCM6sS3UvnnkwCgvltC 1U+swy3PwWr+kEvXn64gOvE= =z744 -----END PGP SIGNATURE----- |
| |||
| On Wed, 02 Jul 2003 16:35:20 +0000, Dario Basile wrote: > I'm having trouble with starting mysql at boot time on a Slackware 9.0 > box. > > This is what I did: > I put the following lines in rc.local > > if [ -x /etc/rc.d/rc.mysql ]; then > . /etc/rc.d/rc.mysql start > fi HHave you perhaps tried to remove the period which sources that file into rc.local and instead execute it as a seperate process? > rc.mysql is actually a soft link to /usr/share/mysql/mysql.server, and > when I execute it from bash it works normally. > It even works if I run /etc/rc.d/rc.local from bash. > But when I boot up, mysql server starts up and suddenly quit. > Any idea? Maybe. Run mysql.server from bash and then log out of that shell. Now see if mysql is still running. If it isn't, then that process is tied to your shell and as long as your shell is running, so will it. Otherwise it just won't continue. In case you're interested, George put a few nice little scrits up at: http://www.tripleg.net.au/public/ Take a look at mysql_setup.tar.gz (originally done by mRgOBlin IIRC) and doinst_sh.mysql. > I also run at boot time apache and cups, all following the 'standard' > Slackware way and without any trouble. This is irrelevant. There is no standard way for running mysql under slackware. |
| |||
| -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 George Georgakis wrote: > A couple of things to try are up at http://www.tripleg.net.au/public/ > : > mysql_setup.tar.gz > rc.mysql > > The latter will need to be tweaked to account for the /usr/share/mysql > location on your machine. Right, nothing seems to change (apart from chmodding root:root and root:mysql some files in mysql working dirs). <darius.err> 030703 12:25:10 mysqld started 030703 12:25:10 Can't start server : Bind on unix socket: Permission denied 030703 12:25:10 Do you already have another mysqld server running on socket: /var/run/mysql/mysql.sock ? 030703 12:25:10 Aborting 030703 12:25:10 /usr/libexec/mysqld: Shutdown Complete 030703 12:25:10 mysqld ended </darius.err> I don't have any other mysql processes running, as it is run at boot time. - -- Dario Basile - ---------------------------------------------------------------- Coito, ergo sum. - ---------------------------------------------------------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/BAdF7mRkrRsDl/8RAgWhAKCR3d2bl1GiDy86cF8YXj2aS/f72ACg5Eec sU/4fMT0U+wx8442IbVLMfc= =yl2Z -----END PGP SIGNATURE----- |
| ||||
| On Thu, 03 Jul 2003 10:37:50 +0000, Dario Basile wrote: > 030703 12:25:10 Can't start server : Bind on unix socket: Permission > denied > 030703 12:25:10 Do you already have another mysqld server running on > socket: /var/run/mysql/mysql.sock ? STFW! http://groups.google.com/groups?hl=e...3F&sa=N&tab=wg That took me all of 20 seconds to find. |
| Thread Tools | |
| Display Modes | |
|
|