Am Donnerstag, den 04.05.2006, 18:02 +0200 schrieb Christian Hammers:
> On 2006-05-04 Daniel Leidert wrote:
> > > * What gives
> > > "my_print_defaults --defaults-file=/etc/mysql/debian.cnf mysqld
> > > mysql_upgrade"
> >
> > I ran it as root, but it doesn't output anything. The last lines of a
>
> That explains, your debian.cnf is missing the new (identical)
> block labeled [mysql_upgrade]. It should have been added by the
> mysql-server-5.0.postinst script during installation.
No. Seems, this is missed. I also tried a reinstall. Nothing changed. As
far as I see, the relevant part is:
> # recreate the credentials file
> dc=$mysql_cfgdir/debian.cnf;
> if [ -e "$dc" ]; then
> pass="`sed -n 's/password *= *// p' $dc`"
> else
> pass=`perl -e 'print
> map{("a".."z","A".."Z",0..9)[int(rand(62))]}(1..16)'`;
> if [ ! -d "$mysql_cfgdir" ]; then install -o 0 -g 0 -m 0755 -d
> $mysql_cfgdir; fi
> cat /dev/null > $dc
> echo "# Automatically generated for Debian scripts. DO NOT TOUCH!"
> >>$dc
Maybe I'm wrong. But if the config-file already exists, pass ist just
given a value. But nothing else happens. Shouldn't it be:
if [ -e "$dc" ]; then
pass="`sed -n 's/password *= *// p' $dc`"
else
pass=`perl -e 'print
map{("a".."z","A".."Z",0..9)[int(rand(62))]}(1..16)'`
fi
if [ ! -d "$mysql_cfgdir" ]; then install -o 0 -g 0 -m 0755 -d $mysql_cfgdir; fi
cat /dev/null > $dc
[..]
> Can you do "dpkg-reconfigure mysql-server-5.0"
It just shows one window ("Install hints") with some information, but
nothing else and debian.cnf is also noch changed.
> or do you remember having
> told dpkg not to alter this config file?
No. I never touched this file nor did I tell dpkg, to not alter it.
Regards, Daniel
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]