Re: mysql-server-4.1
On 27.05.06 14:37:47, Norbert Preining wrote:
> On Sam, 27 Mai 2006, Andreas Pakulat wrote:
> Got a failure from command:
> cat /usr/share/mysql/mysql_fix_privilege_tables.sql | /usr/bin/mysql --no-defaults --force --user=root --host=localhost --database=mysql
> Please check the above output and try again.
>
> Running the script with the --verbose option may give you some information
> of what went wrong.
>
> If you get an 'Access denied' error, you should run this script again and
> give the MySQL root user password as an argument with the --password= option
> Checking for crashed MySQL tables in the background.
>
> Das liegt daran dass das init script /etc/mysql/debian-start ausführt
> und da steht drinnen:
>
> /usr/bin/mysql_upgrade --defaults-file=/etc/mysql/debian.cnf
>
> was ohne password nicht geht.
>
> Gut gemacht ;-)
Das ist dann aber kein aktuelles mysql-server Paket aus unstable. Der
Fehler ist dort schon gefixed, BTS-Nummer ist mir grad entfallen. Das
Problem ist das die folgende "Sektion" in der debian.cnf fehlt:
[mysql_upgrade]
host = localhost
user = debian-sys-maint
password = XXXXXXXXXXXXXX
socket = /var/run/mysqld/mysqld.sock
Einfach die [client] Sektion kopieren und den Namen abaendern oder aber
ein aktuelles mysql-server Paket aus unstable installieren.
Ganz reicht das noch nicht, da nach dem 1. Lauf immernoch bei jedem
Start mysql_fix_privilege_table gestartet wird ohne --user und
--passwort oder --defaults-file. Bugreport dafuer ist derselbe, Abhilfe
schafft hier:
$bindir/mysql_fix_privilege_tables --silent $arg
durch
$bindir/mysql_fix_privilege_tables --silent --user=$user --password=$password $arg
s
ersetzen in /usr/bin/mysql_upgrade Zeile 182.
Andreas
--
You will be called upon to help a friend in trouble.
Reply to: