Re: MySQL Startup Script
In the last episode (Mar 06), Greg 'groggy' Lehey said: [Moving to -questions; this isn't really a ports issue] On Monday, 5 March 2007 at 23:28:53 -0800, Drew Jenkins wrote: I built MySQL 5.1 from port on FBSD 6.2. But it doesn't start up on boot. There's a mysql-server script in /usr/local/etc/rc.d/ but if I try and fire that up from the command line it doesn't start. What do I need to do? You could start by saying how you invoked the script and what happened when you tried. You should see: # /usr/local/etc/rc.d/mysql-server start Starting mysql. Also make sure you have mysql_enable=YES in your rc.conf file, since it's an rc.subr-style startup script. See the mysql-server script itself for more options. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: MySQL Startup Script
On Tue, 6 Mar 2007 18:24:39 +1030 Greg 'groggy' Lehey [EMAIL PROTECTED] wrote: On Monday, 5 March 2007 at 23:28:53 -0800, Drew Jenkins wrote: I built MySQL 5.1 from port on FBSD 6.2. But it doesn't start up on boot. There's a mysql-server script in /usr/local/etc/rc.d/ but if I try and fire that up from the command line it doesn't start. What do I need to do? You could start by saying how you invoked the script and what happened when you tried. You should see: # /usr/local/etc/rc.d/mysql-server start Starting mysql. Have you bothered to place the proper directive in the '/etc/rc,conf' file; i.e., MYSQL_ENABLE=yes Otherwise, if you want to start it from the command line sans that statement, you will have to use: /usr/local/etc/rc.d/mysql-server force Check out the mysql script in /usr/local/etc/rc.d for further details. -- Gerard My mother loved children -- she would have given anything if I had been one. Groucho Marx signature.asc Description: PGP signature
Re: MySQL Startup Script
- Original Message From: Jeremy Chadwick [EMAIL PROTECTED] To: Drew Jenkins [EMAIL PROTECTED] Cc: freebsd-ports@freebsd.org Sent: Tuesday, March 6, 2007 5:33:11 PM Subject: Re: MySQL Startup Script This isn't a good idea. ldconfig is supposed to take care of this for you. Can you provide the output from ldconfig -r? # ldconfig -r /var/run/ld-elf.so.hints: search directories: /lib:/usr/lib:/usr/lib/compat:/usr/X11R6/lib:/usr/local/lib 0:-lcrypt.3 = /lib/libcrypt.so.3 1:-lkvm.3 = /lib/libkvm.so.3 2:-lm.4 = /lib/libm.so.4 3:-lmd.3 = /lib/libmd.so.3 4:-lncurses.6 = /lib/libncurses.so.6 5:-lsbuf.3 = /lib/libsbuf.so.3 6:-lutil.5 = /lib/libutil.so.5 7:-lalias.5 = /lib/libalias.so.5 8:-latm.3 = /lib/libatm.so.3 9:-lbegemot.2 = /lib/libbegemot.so.2 10:-lbsnmp.3 = /lib/libbsnmp.so.3 11:-lc.6 = /lib/libc.so.6 12:-lcam.3 = /lib/libcam.so.3 13:-ldevstat.5 = /lib/libdevstat.so.5 14:-ledit.5 = /lib/libedit.so.5 15:-lbsdxml.2 = /lib/libbsdxml.so.2 16:-lgeom.3 = /lib/libgeom.so.3 17:-lgpib.1 = /lib/libgpib.so.1 18:-lipsec.2 = /lib/libipsec.so.2 19:-lipx.3 = /lib/libipx.so.3 20:-lufs.3 = /lib/libufs.so.3 21:-lkiconv.2 = /lib/libkiconv.so.2 22:-lpcap.4 = /lib/libpcap.so.4 23:-lpthread.2 = /lib/libpthread.so.2 24:-lz.3 = /lib/libz.so.3 25:-lreadline.6 = /lib/libreadline.so.6 26:-lcrypto.4 = /lib/libcrypto.so.4 27:-lbsm.1 = /usr/lib/libbsm.so.1 28:-lcom_err.3 = /usr/lib/libcom_err.so.3 29:-lnetgraph.2 = /usr/lib/libnetgraph.so.2 30:-lradius.2 = /usr/lib/libradius.so.2 31:-lrpcsvc.3 = /usr/lib/librpcsvc.so.3 32:-ltacplus.2 = /usr/lib/libtacplus.so.2 33:-lypclnt.2 = /usr/lib/libypclnt.so.2 34:-larchive.2 = /usr/lib/libarchive.so.2 35:-lbluetooth.2 = /usr/lib/libbluetooth.so.2 36:-lbz2.2 = /usr/lib/libbz2.so.2 37:-lc_r.6 = /usr/lib/libc_r.so.6 38:-lcalendar.3 = /usr/lib/libcalendar.so.3 39:-ldevinfo.3 = /usr/lib/libdevinfo.so.3 40:-lfetch.4 = /usr/lib/libfetch.so.4 41:-lform.3 = /usr/lib/libform.so.3 42:-lftpio.6 = /usr/lib/libftpio.so.6 43:-lmagic.2 = /usr/lib/libmagic.so.2 44:-lmemstat.1 = /usr/lib/libmemstat.so.1 45:-lmenu.3 = /usr/lib/libmenu.so.3 46:-lmilter.3 = /usr/lib/libmilter.so.3 47:-lmp.5 = /usr/lib/libmp.so.5 48:-lncp.2 = /usr/lib/libncp.so.2 49:-lngatm.2 = /usr/lib/libngatm.so.2 50:-lopie.4 = /usr/lib/libopie.so.4 51:-lpam.3 = /usr/lib/libpam.so.3 52:-lpanel.3 = /usr/lib/libpanel.so.3 53:-lpmc.3 = /usr/lib/libpmc.so.3 54:-lsdp.2 = /usr/lib/libsdp.so.2 55:-lsmb.2 = /usr/lib/libsmb.so.2 56:-lthr.2 = /usr/lib/libthr.so.2 57:-lthread_db.2 = /usr/lib/libthread_db.so.2 58:-lugidfw.2 = /usr/lib/libugidfw.so.2 59:-lusbhid.2 = /usr/lib/libusbhid.so.2 60:-lvgl.4 = /usr/lib/libvgl.so.4 61:-lwrap.4 = /usr/lib/libwrap.so.4 62:-llwres.10 = /usr/lib/liblwres.so.10 63:-ldialog.5 = /usr/lib/libdialog.so.5 64:-lgnuregex.3 = /usr/lib/libgnuregex.so.3 65:-lhistory.6 = /usr/lib/libhistory.so.6 66:-lstdc++.5 = /usr/lib/libstdc++.so.5 67:-lobjc.2 = /usr/lib/libobjc.so.2 68:-lg2c.2 = /usr/lib/libg2c.so.2 69:-lasn1.8 = /usr/lib/libasn1.so.8 70:-lgssapi.8 = /usr/lib/libgssapi.so.8 71:-lhdb.8 = /usr/lib/libhdb.so.8 72:-lkadm5clnt.8 = /usr/lib/libkadm5clnt.so.8 73:-lkadm5srv.8 = /usr/lib/libkadm5srv.so.8 74:-lkafs5.8 = /usr/lib/libkafs5.so.8 75:-lkrb5.8 = /usr/lib/libkrb5.so.8 76:-lroken.8 = /usr/lib/libroken.so.8 77:-lssl.4 = /usr/lib/libssl.so.4 78:-lssh.3 = /usr/lib/libssh.so.3 79:-lfontconfig.1 = /usr/X11R6/lib/libfontconfig.so.1 80:-lXau.0 = /usr/X11R6/lib/libXau.so.0 81:-lXdmcp.0 = /usr/X11R6/lib/libXdmcp.so.0 82:-lX11.6 = /usr/X11R6/lib/libX11.so.6 83:-loldX.6 = /usr/X11R6/lib/liboldX.so.6 84:-lICE.6 = /usr/X11R6/lib/libICE.so.6 85:-lSM.6 = /usr/X11R6/lib/libSM.so.6 86:-lXext.6 = /usr/X11R6/lib/libXext.so.6 87:-lXt.6 = /usr/X11R6/lib/libXt.so.6 88:-lXss.1 = /usr/X11R6/lib/libXss.so.1 89:-lXxf86misc.1 = /usr/X11R6/lib/libXxf86misc.so.1 90:-lXxf86vm.1 = /usr/X11R6/lib/libXxf86vm.so.1 91:-lXxf86dga.1 = /usr/X11R6/lib/libXxf86dga.so.1 92:-lXmu.6 = /usr/X11R6/lib/libXmu.so.6 93:-lXmuu.1 = /usr/X11R6/lib/libXmuu.so.1 94:-lXpm.4 = /usr/X11R6/lib/libXpm.so.4 95:-lXp.6 = /usr/X11R6/lib/libXp.so.6 96:-lXaw.6 = /usr/X11R6/lib/libXaw.so.6 97:-lXaw.7 = /usr/X11R6/lib/libXaw.so.7 98:-lXaw.8 = /usr/X11R6/lib/libXaw.so.8 99:-lXi.6 = /usr/X11R6
Re: MySQL Startup Script
[Format recovered--see http://www.lemis.com/email/email-format.html] Single line message. [Moving to -questions; this isn't really a ports issue] On Monday, 5 March 2007 at 23:28:53 -0800, Drew Jenkins wrote: I built MySQL 5.1 from port on FBSD 6.2. But it doesn't start up on boot. There's a mysql-server script in /usr/local/etc/rc.d/ but if I try and fire that up from the command line it doesn't start. What do I need to do? You could start by saying how you invoked the script and what happened when you tried. You should see: # /usr/local/etc/rc.d/mysql-server start Starting mysql. Greg -- When replying to this message, please take care not to mutilate the original text. For more information, see http://www.lemis.com/email.html See complete headers for address and phone numbers. pgptFdeyURLTs.pgp Description: PGP signature