|
From: Heiko Z. <he...@zu...> - 2008-04-09 18:03:02
|
I don't have a problem with putting it into the my.cnf. I know you can do the addition with awk, maybe you can find the code somewhere via google. -- Regards Heiko Zuerker http://www.devil-linux.org Quoting Bruce Smith <bw...@ar...>: >> I'll take a look at mysql to see if it solves that problem too. > > No, that didn't solve the problem, but I did figure out the cause. > > For some reason "--user=mysql" is not working on the command line in the > init.d script during boot. > > /var/mysql/dns2.err: > ======================================================================== > 080409 10:38:44 [ERROR] Fatal error: Please read "Security" section > of the manual to find out how to run mysqld as root! > 080409 10:38:44 [ERROR] Aborting > ======================================================================== > > If I add "user = mysql" in /etc/my.cnf (under the [mysqld] section), > then mysql starts fine upon boot. Very weird ... > > Since we are copying the my.cnf file from the mysql tmp source: > > cp $TMPDIR/usr/share/mysql/my-small.cnf $ETCDIR/etc/my.cnf > > I'm not sure the best way to add the line to the file, or IF we should > add it to the file (since it overrides the config parameters). Heiko? > > I've also tried starting mysqld_safe with "su - mysql -c ..." in the > init.d script, but I haven't gotten that to work either (parameters are > not passing to the script). But then again, hardcoding the user id in > the init.d script overrides the MYSQL_PARM --user=mysql parameter > in /etc/sysconfig/config. > > - BS > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Devil-linux-discuss mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/devil-linux-discuss > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. |