From: Bruce S. <bw...@ar...> - 2008-04-10 14:57:22
|
> >> > --- mysql 27 Mar 2008 14:27:03 -0000 1.23 > >> > +++ mysql 10 Apr 2008 14:00:51 -0000 1.24 > >> > @@ -56,7 +56,7 @@ > >> > rm $TMPDIR/usr/lib/*.la || exit 1 > >> > copy_docs $TMPDIR > >> > rm -rf $TMPDIR/usr/mysql-test || exit 1 > >> > - cp $TMPDIR/usr/share/mysql/my-small.cnf $ETCDIR/etc/my.cnf || exit 1 > >> > + sed 's/^\[mysqld\] *$/&\nuser\t\t= mysql/' > >> > $TMPDIR/usr/share/mysql/my-small.cnf > $ETCDIR/etc/my.cnf || exit 1 > >> > mkdir -p $CDDIR > >> > copy_files $TMPDIR/usr $CDDIR || exit 1 > >> > rm -rf $TMPDIR || exit 1 > >> > > >> > >> Should we add this statement to the init script for mysql? > > > > You mean add the user line to my.cnf in the init.d script, instead of > > giving them the default my.cnf with the user line already in there? > > I was thinking about a check, if it's not in there then add it, > otherwise ignore. Yeah, it's doable. I checked, and if you have 'user=' in my.cnf, and you supply "--user" on the command line to start mysqld, it uses the one in my.cnf. Again, I don't like mucking with someone's customized config file for fear of breaking something else. I'd rather post some kind of notice that they need to add the line to their file if they are experiencing the problem. > >> This would help us with custom my.cnf files, but would prevent users > >> from changing the username for mysql > > > > I hate to go mucking with someone's customized config files without > > telling them. (and we can't ask for confirmation, because we're trying > > to make it boot correctly - unattended) > > > > This bug might get fixed in the latest version of mysql. I see you > > updated it last night. I'll run a fresh compile tonight, and if the bug > > is fixed, I'll change the script back. > > It's broke for a very long time, I doubt it's fixed. We can always hope! :-) - BS |