Bonjour
J'essaie d'installer MySQL5 sur un petit serveur tournant sur OpenBSD.
J'ai donc installé mon serveur Apache, qui fonctionne parfaitement, avec le port 80 de mon routeur ouvert et mappé vers mon serveur. Je peux y accéder depuis l'extérieur.
Mais lorsque je me suis attaqué à l'installation de MySQL 5, j'ai été confronté à plusieurs erreurs. Je précise que j'ai téléchargé le tar.gz, décompressé l'archive, et créé le groupé d'user mysql, comme précisé dans le manuel de MySQL.
Mais lors de l'éxecution du script scripts/mysql_install_db, censé me formater les droits de root et les tables de base, ça coince.
- Première erreur vient au niveau du domaine "localhost" :
Pourtant mon réseau marche parfaitement bien, et voici le contenu de mon fichier /etc/hosts :root@overtone >> ./mysql_install_db
Abort trap
Abort trap
Abort trap
Neither host 'overtone.dubland' nor 'localhost' could be looked up with
./bin/resolveip
Please configure the 'hostname' command to return a correct hostname.
If you want to solve this at a later stage, restart this script with
the --force option
- Deuxième erreur : je décide donc de passer "outre" le premier message d'erreur en utilisant l'option --force, et voilà ce que j'obtiens :# $OpenBSD: hosts,v 1.11 2002/09/26 23:35:51 krw Exp $
#
# Host Database
#
# RFC 1918 specifies that these networks are "internal".
# 10.0.0.0 10.255.255.255
# 172.16.0.0 172.31.255.255
# 192.168.0.0 192.168.255.255
#
::1 localhost.dubland localhost
127.0.0.1 localhost.dubland localhost
::1 overtone.dubland overtone
127.0.0.1 overtone.dubland overtone
Bien sûr aucun fichier de log remplis dans le dossier dataroot@overtone >> ./mysql_install_db --force
Abort trap
Installing all prepared tables
Abort trap
Installation of system 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!
Si vous auriez des pistes ou des idées, merci d'avance
Partager