Witam.
Próbowałem zainstalować z pomocą apt-get mysql ale nie startuje po instalacji. Potem próbowałem instalować mysql ze źródeł ale wyskakuje mi taki błąd:
debian:/usr/local/src/mysql# ./configure --prefix=/usr/local/mysqld
NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!
To help you a bit, I am now going to create the needed MySQL databases
and start the MySQL server for you. If you run into any trouble, please
consult the MySQL manual, that you can find in the Docs directory.
Installing MySQL system tables...
ERROR: 1582 Duplicate entry '%-test-' for key 'PRIMARY'
070621 22:35:41 [ERROR] Aborting
070621 22:35:41 [Note] ./bin/mysqld: Shutdown complete
Installation of system tables failed!
Examine the logs in ./data for more information.
You can try to start the mysqld daemon with:
./bin/mysqld --skip-grant &
and use the command line tool
./bin/mysql to connect to the mysql
database and look at the grant tables:
shell> ./bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in ./data that may be helpful.
The latest information about MySQL is available on the web at
[url]http://www.mysql.com[/url]
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 ./bin/mysqlbug script!
debian:/usr/local/src/mysql# ./configure --prefix=/usr/local/mysql --with-charset=latin2
NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!
To help you a bit, I am now going to create the needed MySQL databases
and start the MySQL server for you. If you run into any trouble, please
consult the MySQL manual, that you can find in the Docs directory.
Installing MySQL system tables...
ERROR: 1582 Duplicate entry '%-test-' for key 'PRIMARY'
070621 22:37:09 [ERROR] Aborting
070621 22:37:09 [Note] ./bin/mysqld: Shutdown complete
Installation of system tables failed!
Examine the logs in ./data for more information.
You can try to start the mysqld daemon with:
./bin/mysqld --skip-grant &
and use the command line tool
./bin/mysql to connect to the mysql
database and look at the grant tables:
shell> ./bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in ./data that may be helpful.
The latest information about MySQL is available on the web at
[url]http://www.mysql.com[/url]
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 ./bin/mysqlbug script!
O co w tym może chodzić? Próbuję zainstalować mysql ale nie daję rady.
debian:/usr/local/src/mysql# ./configure --prefix=/usr/local/mysqld
NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!
To help you a bit, I am now going to create the needed MySQL databases
and start the MySQL server for you. If you run into any trouble, please
consult the MySQL manual, that you can find in the Docs directory.
Installing MySQL system tables...
ERROR: 1582 Duplicate entry '%-test-' for key 'PRIMARY'
070621 22:35:41 [ERROR] Aborting
(...)
o co z tym moze chodzic proboje zrobic tego mysql ale niedaje rade :/
Ten błąd wskazuje, że to nie problem instalacji jako takiej, tylko bazy danych. Polecenie, które wywołujesz próbuje utworzyć bazę danych i ją odpalić. Ponieważ baza już jest, więc się to nie udaje ze względu na duplikacje unikalnych indeksów. Prawdopodobnie trzeba usunąć już istniejącą bazę danych.
Wczoraj robilem aktualizacje systemu oczywiscie jak zwykle zawsze cos sie narypalo po aktualizacji tym razem wywalilo mi procesy z pliku rc ktore ma podnosic przy starcie to mysql niby w procesach widnieje
na firewallu napewno nie ma blokady tego portu jedynie jest 135-139 i 445 a jezeli chodzi o plik mysql.sock w katalogu '/var/lib/mysql/' to nie wiem dlaczego ale nie ma wogle tego pliku