Archief - mysql installatie probleem

Het archief is een bevroren moment uit een vorige versie van dit forum, met andere regels en andere bazen. Deze posts weerspiegelen op geen enkele manier onze huidige ideeën, waarden of wereldbeelden en zijn op sommige plaatsen gecensureerd wegens ontoelaatbaar. Veel zijn in een andere tijdsgeest gemaakt, al dan niet ironisch - zoals in het ironische subforum Off-Topic - en zouden op dit moment niet meer gepost (mogen) worden. Toch bieden we dit archief nog graag aan als informatiedatabank en naslagwerk. Lees er hier meer over of start een gesprek met anderen.

G|N|

Legacy Member
ik heb mysql proberen te installeren (mysql-standard-4.0.20-pc-linux-i686)
en als ik ./configure --prefix=/opt/mysql doe dan krijg ik deze error:
Code:
wout@server:/opt/mysql-standard-4.0.20-pc-linux-i686$ ./configure --prefix=/opt/mysql
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.

WARNING: The host 'server.thuis.lan' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
mkdir: cannot create directory `./data/mysql': Permission denied
chmod: getting attributes of `./data/mysql': Permission denied
mkdir: cannot create directory `./data/test': Permission denied
chmod: getting attributes of `./data/test': Permission denied
Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables
040824 17:28:54  Warning: Can't create test file /opt/mysql-standard-4.0.20-pc-linux-i686/data/server.lower-test
040824 17:28:54  Warning: Asked for 196608 thread stack, but got 126976
./bin/mysqld: Can't change dir to '/opt/mysql-standard-4.0.20-pc-linux-i686/./data/' (Errcode: 13)
040824 17:28:54  Aborting

040824 17:28:54  ./bin/mysqld: Shutdown Complete

Installation of grant tables failed!

Examine the logs in ./data for more information.
You can also try to start the mysqld daemon with:
./bin/mysqld --skip-grant &
You can 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
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 ./bin/mysqlbug script!
wout@server:/opt/mysql-standard-4.0.20-pc-linux-i686$ ./configure --prefix=/opt/mysql
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.

WARNING: The host 'server.thuis.lan' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
mkdir: cannot create directory `./data/mysql': Permission denied
chmod: getting attributes of `./data/mysql': Permission denied
mkdir: cannot create directory `./data/test': Permission denied
chmod: getting attributes of `./data/test': Permission denied
Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables
040824 17:29:55  Warning: Can't create test file /opt/mysql-standard-4.0.20-pc-linux-i686/data/server.lower-test
040824 17:29:55  Warning: Asked for 196608 thread stack, but got 126976
./bin/mysqld: Can't change dir to '/opt/mysql-standard-4.0.20-pc-linux-i686/./data/' (Errcode: 13)
040824 17:29:55  Aborting

040824 17:29:55  ./bin/mysqld: Shutdown Complete

Installation of grant tables failed!

Examine the logs in ./data for more information.
You can also try to start the mysqld daemon with:
./bin/mysqld --skip-grant &
You can 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
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 ./bin/mysqlbug script!

G|N|

Legacy Member
sorry, maar er liep nog een mysql proces en daardoor was het geblokkeert, nu is het opgelost.

G|N|

Legacy Member
nu krijg ik nog deze fout:
Code:
server:/opt# mysql -u root -p -h localhost
Enter password:
ERROR 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
iemand daar een oplossing voor?
het bestand /var/run/mysqld/mydsql.sock bestaat niet, staat er iets speciaals in?

dJeez

Legacy Member
Die uitleg in dat PDFje (want 'k heb ze de indruk dat je je daar op hebt gebaseerd) was enkel en alleen van toepassing als je alles van de source .tar.gz gaat installeren hé. Afgaande op die foutmelding in je eerste post heb je de binary distributie gedownload, vandaar dat het configure script wellicht ontbreekt. De rest hangt er eigenlijk mee samen, kijk eens in die /opt/mysql folder of daar wat subfolders onder hangen. En controleer na de installatie eens (via ps) dat mysqld wel daadwerkelijk aan 't runnen is, anders kan je uiteraard niet gaan connecteren via het mysql commando.

G|N|

Legacy Member
Code:
server:~# ps -ax | grep 'mysqld'
Bad syntax, perhaps a bogus '-'?
18228 ?        S      0:00 /bin/sh ./bin/mysqld_safe
18255 ?        S      0:00 [mysqld]
18257 ?        S      0:00 [mysqld]
18258 ?        S      0:00 [mysqld]
18259 ?        S      0:00 [mysqld]
18260 ?        S      0:00 [mysqld]
18261 ?        S      0:00 [mysqld]
18262 ?        S      0:00 [mysqld]
18263 ?        S      0:00 [mysqld]
18264 ?        S      0:00 [mysqld]
18265 ?        S      0:00 [mysqld]
18404 pts/0    S      0:00 grep mysqld
dus de mysql server is volgens mij wel aan het runnen
Het archief is een bevroren moment uit een vorige versie van dit forum, met andere regels en andere bazen. Deze posts weerspiegelen op geen enkele manier onze huidige ideeën, waarden of wereldbeelden en zijn op sommige plaatsen gecensureerd wegens ontoelaatbaar. Veel zijn in een andere tijdsgeest gemaakt, al dan niet ironisch - zoals in het ironische subforum Off-Topic - en zouden op dit moment niet meer gepost (mogen) worden. Toch bieden we dit archief nog graag aan als informatiedatabank en naslagwerk. Lees er hier meer over of start een gesprek met anderen.
Terug
Bovenaan