instalacja serwera mysql
: 21 czerwca 2007, 20:40
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:
O co w tym może chodzić? Próbuję zainstalować mysql ale nie daję rady.
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:
Kod: Zaznacz cały
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!