You are not logged in.
hi all~
I got this error when trying to install mysql on my fresh new archlinux
ERROR: 1062 Duplicate entry 'localhost-' for key 1
This is a very weird error
And i recalled that when i was trying to install mysql the other day, it was all ok
But this time this error came up
I followed the instructions in
http://wiki.archlinux.org/index.php/LAMP
So are there some steps that i forgot to perform this time?
Or is this some kind of bug?
Thanks in advance~
Offline
I have the same problem. It seems like a bug.
Linux je jako mušketýři "jeden za všechny, všichni za jednoho"
Offline
Problem is in /usr/share/mysql/mysql_system_tables_data.sql. You must remove this 2 lines:
INSERT INTO tmp_user (host,user) VALUES ('localhost','');
INSERT INTO tmp_user (host,user) VALUES (@@hostname,'');
Linux je jako mušketýři "jeden za všechny, všichni za jednoho"
Offline
i solved this problem by changing the hostname in /etc/rc.conf to something other than 'localhost'
it seems like a bug...
Offline