Preparing... ########################################### [100%]
1:MySQL-server-community ########################################### [100%]
ERROR: 1062 Duplicate entry 'localhost-' for key 1
081127 15:38:42 [ERROR] Aborting081127 15:38:42 [Note] /usr/sbin/mysqld: Shutdown completeInstallation of system tables failed!Examine the logs in /var/lib/mysql for more information.
You can try to start the mysqld daemon with:
/usr/sbin/mysqld --skip-grant &
and use the command line tool
/usr/bin/mysql to connect to the mysql
database and look at the grant tables:shell> /usr/bin/mysql -u root mysql
mysql> show tablesTry 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/mysql that may be helpful.The latest information about MySQL is available on the web at
http://www.mysql.com
Please consult the MySQL manual section: 'Problems running mysql_install_db',
and the manual section that describes problems on your OS.
Another information source is the MySQL email archive.
Please check all of the above before mailing us!
And if you do mail us, you MUST use the /usr/bin/mysqlbug script!
Starting MySQL.[ OK ]
Giving mysqld 2 seconds to start
1:MySQL-server-community ########################################### [100%]
ERROR: 1062 Duplicate entry 'localhost-' for key 1
081127 15:38:42 [ERROR] Aborting081127 15:38:42 [Note] /usr/sbin/mysqld: Shutdown completeInstallation of system tables failed!Examine the logs in /var/lib/mysql for more information.
You can try to start the mysqld daemon with:
/usr/sbin/mysqld --skip-grant &
and use the command line tool
/usr/bin/mysql to connect to the mysql
database and look at the grant tables:shell> /usr/bin/mysql -u root mysql
mysql> show tablesTry 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/mysql that may be helpful.The latest information about MySQL is available on the web at
http://www.mysql.com
Please consult the MySQL manual section: 'Problems running mysql_install_db',
and the manual section that describes problems on your OS.
Another information source is the MySQL email archive.
Please check all of the above before mailing us!
And if you do mail us, you MUST use the /usr/bin/mysqlbug script!
Starting MySQL.[ OK ]
Giving mysqld 2 seconds to start
rpm -qa | grep mysql2、要是有mysql已经安装了,
那ERROR: 1062 Duplicate entry 'localhost-' for key 1 这个错误就是有一个匿名用户。
所以还是干掉以前的数据吧。或者用rpm -Uvh来安装吧。