[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Errore in aggiornamento mysql (forse bug)



Salve a tutti, ho avuto un problema nell'aggiornare il pacchetto mysql-server, ad occhio e croce sembrerebbe un bug, ma non ne sono certo. Praticamente aptitude si pianta nell'eseguire lo script postinst, mi sono messo a spulciare e ho appurato che si blocca nell'eseguire questa riga:

/bin/bash /usr/bin/mysql_install_db --rpm 2>&1 | $ERR_LOGGER

Spulciando nei log trovo questo:

Apr 10 11:39:20 host6 mysqld_safe[14374]: ERROR: 1062 Duplicate entry 'localhost-root' for key 1
Apr 10 11:39:20 host6 mysqld_safe[14374]: 070410 11:39:20 [ERROR] Aborting
Apr 10 11:39:20 host6 mysqld_safe[14374]:
Apr 10 11:39:20 host6 mysqld_safe[14374]: 070410 11:39:20 [Note] /usr/sbin/mysqld: Shutdown complete
Apr 10 11:39:20 host6 mysqld_safe[14374]:
Apr 10 11:39:25 host6 mysqld_safe[14374]: Error in my_thread_global_end(): 1 threads didn't exit Apr 10 11:39:25 host6 mysqld_safe[14374]: Installation of system tables failed!
Apr 10 11:39:25 host6 mysqld_safe[14374]:
Apr 10 11:39:25 host6 mysqld_safe[14374]: Examine the logs in /home2/mysql for more information. Apr 10 11:39:25 host6 mysqld_safe[14374]: You can try to start the mysqld daemon with:
Apr 10 11:39:25 host6 mysqld_safe[14374]: /usr/sbin/mysqld --skip-grant &
Apr 10 11:39:25 host6 mysqld_safe[14374]: and use the command line tool
Apr 10 11:39:25 host6 mysqld_safe[14374]: /usr/bin/mysql to connect to the mysql Apr 10 11:39:25 host6 mysqld_safe[14374]: database and look at the grant tables:
Apr 10 11:39:25 host6 mysqld_safe[14374]:
Apr 10 11:39:25 host6 mysqld_safe[14374]: shell> /usr/bin/mysql -u root mysql
Apr 10 11:39:25 host6 mysqld_safe[14374]: mysql> show tables
Apr 10 11:39:25 host6 mysqld_safe[14374]:
Apr 10 11:39:25 host6 mysqld_safe[14374]: Try 'mysqld --help' if you have problems with paths. Using --log Apr 10 11:39:25 host6 mysqld_safe[14374]: gives you a log in /home2/mysql that may be helpful.
Apr 10 11:39:25 host6 mysqld_safe[14374]:
Apr 10 11:39:25 host6 mysqld_safe[14374]: The latest information about MySQL is available on the web at
Apr 10 11:39:25 host6 mysqld_safe[14374]: http://www.mysql.com
Apr 10 11:39:25 host6 mysqld_safe[14374]: Please consult the MySQL manual section: 'Problems running mysql_install_db', Apr 10 11:39:25 host6 mysqld_safe[14374]: and the manual section that describes problems on your OS. Apr 10 11:39:25 host6 mysqld_safe[14374]: Another information source is the MySQL email archive. Apr 10 11:39:25 host6 mysqld_safe[14374]: Please check all of the above before mailing us! Apr 10 11:39:25 host6 mysqld_safe[14374]: And if you do mail us, you MUST use the /usr/bin/mysqlbug script!

Googlando un po sull'errore 1062 ho letto che potrebbe essere normale, mentre trovo alcuni riferimenti al messaggio
"Error in my_thread_global_end(): 1 threads didn't exit"
sul sito di mysql nella sezione bug [1], anche se non ci giurerei che quello è la causa di tutto.

Eseguendo /usr/sbin/mysqld --skip-grant mysql parte regolarmente, e connettendomi al database la tabella user sembra perfettamente normale.

Infine in /home2/mysql/ non trovo alcun file di log, quindi boh...

Qualcuno ha riscontrato la stessa situazione?? In caso sia un bug, come si fa un report, non l'ho mai fatto e qualche suggerimento è ben accetto.

Saluti.

[1]http://bugs.mysql.com/bug.php?id=25621



Reply to: