Pb compilation mysql

Fermé
k_rom Messages postés 142 Date d'inscription mardi 14 septembre 2004 Statut Membre Dernière intervention 14 janvier 2009 - 13 févr. 2007 à 00:36
k_rom Messages postés 142 Date d'inscription mardi 14 septembre 2004 Statut Membre Dernière intervention 14 janvier 2009 - 15 févr. 2007 à 00:00
bonjour à tous et toutes,

je suis en train de monter un serveur LAMP et jusqu'à present:
apache nickel
php nickel
mysql --->> BUG

j'ai d'abord décompresser l'archive puis je l'ai configuré
./configure

j'obtiens alors :
[root@exxan mysql-max-4.1.21-pc-linux-gnu-i686]# chown: `mysql': usager invalide
Starting mysqld daemon with databases from /usr/local/mysql-max-4.1.21-pc-linux-gnu-i686/data
STOPPING server from pid file /usr/local/mysql-max-4.1.21-pc-linux-gnu-i686/data/exxan.net.pid
070212 23:39:31 mysqld ended

et après ça, si je tape 'make', il me dit :
[root@exxan mysql-max-4.1.21-pc-linux-gnu-i686]# make
make: *** Pas de cibles spécifiées et aucun makefile n'a été trouvé. Arrêt.

y'a-t-il qlq'un qui serait en mesure de m'aider à retirer cette épine du pied??

mercid'avance à tous

Laurent

15 réponses

k_rom Messages postés 142 Date d'inscription mardi 14 septembre 2004 Statut Membre Dernière intervention 14 janvier 2009 13
13 févr. 2007 à 01:21
re-salut!!

ben on peut pas dire qu'il y a eu bousculade pour me répondre!!! ;-))

j'ai un peu avancé! le pb de chown est du au fait qu'avant de compiler, il faut d'abord créer un groupe et un utilisateur

exemple:
# groupadd mysql
# useradd -g mysql mysql

pour créer l'utilisateur mysql dans le groupe mysql

donc le message de chown, usager invalide n'apparait plus

mais ça ne change rien à mon problème car je ne peux toujurs pas faire le 'make'

y'a t-il qlq'un que ce pb inspire?

merci d'avance

@+
Laurent
0
lami20j Messages postés 21331 Date d'inscription jeudi 4 novembre 2004 Statut Modérateur, Contributeur sécurité Dernière intervention 30 octobre 2019 3 567
13 févr. 2007 à 10:56
Salut,

[root@exxan mysql-max-4.1.21-pc-linux-gnu-i686]# make
make: *** Pas de cibles spécifiées et aucun makefile n'a été trouvé. Arrêt.


Ben, c'est normal.

En premier temps quand tu as exécuter ./configure tu as eu un message d'erreur chown: `mysql': usager invalide


Donc le script configure s'est arrêté sans créer le Makefile

Une fois l'utilisateur mysql créé il faut relancer
./configure
0
k_rom Messages postés 142 Date d'inscription mardi 14 septembre 2004 Statut Membre Dernière intervention 14 janvier 2009 13
13 févr. 2007 à 12:12
bonjour lami, bonjour zempachi,

zempachi:
merci pour le tuyau. je vais regarder ça me parait très intéressant même si pour le moment je voudrais terminer mon install "classique";-))

lami20j:
j'ai effectivement créé un groupe et un uilisateur et reconfigurer mais je n'ai pas l'impression que la configuration se passe bien et du coup le pb persiste, le fichier MAKE n'est pas créé.

voici donc la log :

root@exxan mysql-standard-4.1.21-pc-linux-gnu-i686]# ./configure
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 all prepared tables
Fill help tables

To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h exxan.net password 'new-password'
See the manual for more instructions.

NOTE:  If you are upgrading from a MySQL <= 3.22.10 you should run
the ./bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!

You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests

Please report any problems with the ./bin/mysqlbug script!

The latest information about MySQL is available on the web at
https://www.mysql.com/
Support MySQL by buying support/licenses at https://shop.oracle.com/apex/f?p=dstore:2:0::NO:RP,2:PROD_HIER_ID:58095029061520477171389
Starting the mysqld server.  You can test that it is up and running
with the command:
./bin/mysqladmin version
[root@exxan mysql-standard-4.1.21-pc-linux-gnu-i686]# Starting mysqld daemon with databases from /usr/local/src/mysql-standard-4.1.21-pc-linux-gnu-i686/data
STOPPING server from pid file /usr/local/src/mysql-standard-4.1.21-pc-linux-gnu-i686/data/exxan.net.pid
070213 11:40:44  mysqld ended


par ailleurs, où peut-on trouver les groupes utilisateurs que je créé ??
la première fois que j'ai fais l'install, j'ai trouvé l'utilisateur mysql dans /home

Cette fois je ne le trouve pas!!

Et oui, j'ai des gros pb de newbie !!! mais je lache rien :-))

merci d'avance pour votre aide à tous et toutes

Laurent
0
lami20j Messages postés 21331 Date d'inscription jeudi 4 novembre 2004 Statut Modérateur, Contributeur sécurité Dernière intervention 30 octobre 2019 3 567
13 févr. 2007 à 13:17
Salut,

NOTE: This is a MySQL binary distribution. It's ready to run, you don't need to configure it!

Tu n'as pas téléchargé ce qu'il fallait
Télécharge ici MySQL
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
k_rom Messages postés 142 Date d'inscription mardi 14 septembre 2004 Statut Membre Dernière intervention 14 janvier 2009 13
13 févr. 2007 à 14:43
merci bcp lami20j

qd je disais que j'etais un newbie!! :-))

par contre le lien que tu me donne pointe vers MySQL5 et il me faut MySQL4 (reprise d'une application existante!!)

en fait sur MySQL, je suis allé dans "archives" et j'ai téléchargé
MySQL-Standard-4.1.20-pc-linux-gnu-i586.tar.gz

comment s'y retrouver avec la liste qu'ils proposent???

pour info, l'installation se fera sous un serveur dédié distant, distrib. debian sarge

merci d'avance

Laurent
0
lami20j Messages postés 21331 Date d'inscription jeudi 4 novembre 2004 Statut Modérateur, Contributeur sécurité Dernière intervention 30 octobre 2019 3 567
13 févr. 2007 à 15:21
Re,

comment s'y retrouver avec la liste qu'ils proposent???

Il faut creuser :-))


Sur cette page https://dev.mysql.com/downloads/ tu as (voir en gras)

MySQL Community Server
 Current Release (Recommended): 
MySQL 5.0 -- Generally Available (GA) release for production use 


Upcoming Releases: 
MySQL 5.1 -- Beta release, Test new features early!
MySQL 5.2 -- Alpha - Falcon Preview New!
Snapshots -- source code snapshots of the development trees 


Older Releases: 
MySQL 4.1 -- Previous GA release
Archives of Older Releases 

quand tu fait clic sur ce que tu as vu en gras tu seras sur cette page
https://dev.mysql.com/downloads/mysql/4.1.html

En bas de page tu verras
Source downloads
Note that in the more recent 5.1 releases, Windows binaries are built from the same source as the Unix/Linux source TAR.
 
Compressed GNU TAR archive (tar.gz)  4.1.22 16.9M Download | Pick a mirror 
MD5: 37b4479951fa0cf052269d27c41ca200 | Signature 
tu fais clic sur Download ou Pick a mirror
0
k_rom Messages postés 142 Date d'inscription mardi 14 septembre 2004 Statut Membre Dernière intervention 14 janvier 2009 13
13 févr. 2007 à 19:55
re-bonjour lami20j,

ce n'est pas faute de chercher avant de poster mais je suis une fois de plus bloqué!! j'etais assez fier d'avoir installer apache + php sans probleme, mais là, SQL me donne du fil à retordre!!

voici mon probleme:
j'ai fait
MAKE
et
MAKE INSTALL
et tout s'est bien passé
j'ai créer des bases par défaut avec
./scripts/mysql_install_db


et c'est là que ça se complique. le howto qui me sert de base http://www.ze-linux.org/howto.html?id_docs=7&id_docs_page=33 indique que je dois à présent créer le mot de passe l'admin avec la commande suivante
mysqladmin -u root password ‘password’


et voilà ce qui se passe:
[
root@exxan /]# mysqladmin -u root password mysql
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!


j'ai vérifié le fichier
mysql.sock 
est bien présent dans
/temp


j'ai lu ailleurs qu'il fallait d'abord créer un groupe et un utilisateur avec
groupadd mysql
adduser -u mysql mysql
pour donc créer un utilisateur sql dans le groupe sql

mais c'est sans incidence sur mon prblème

HELLLLPPPPPP!!!! :-)

plus sérieusement, merci d'avance

@++

LAurent
0
lami20j Messages postés 21331 Date d'inscription jeudi 4 novembre 2004 Statut Modérateur, Contributeur sécurité Dernière intervention 30 octobre 2019 3 567
13 févr. 2007 à 20:09
Salut,

affiche le contenu de
 /etc/my.cnf
0
bob031 Messages postés 8158 Date d'inscription samedi 7 août 2004 Statut Membre Dernière intervention 1 septembre 2014 472
13 févr. 2007 à 20:24
Salut,

Est-ce que mysqld est lancé ???
Check that mysqld is running

bob
0
k_rom Messages postés 142 Date d'inscription mardi 14 septembre 2004 Statut Membre Dernière intervention 14 janvier 2009 13
13 févr. 2007 à 20:32
Salut lami,

merci bcp de suivre mon cas. ne sachant pas ce que tu voulais regarder, je te joins ici tout le contenu du fichier, y compris les commentaires..

0+ et merci encore

Laurent

Example MySQL config file for medium systems.
#
# This is for a system with little memory (32M - 64M) where MySQL plays
# an important part, or systems up to 128M where MySQL is used together with
# other programs (such as a web server)
#
# You can copy this file to
# /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options (in this
# installation this directory is /usr/local/mysql/data) or
# ~/.my.cnf to set user-specific options.
#
# In this file, you can use all long options that a program supports.
# If you want to know which options a program supports, run the program
# with the "--help" option.

# The following options will be passed to all MySQL clients
[client]
#password       = your_password
port            = 3306
socket          = /tmp/mysql.sock

# Here follows entries for some specific programs

# The MySQL server
[mysqld]
port            = 3306
socket          = /tmp/mysql.sock
skip-locking
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M

# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (via the "enable-named-pipe" option) will render mysqld useless!
#
#skip-networking

# Replication Master Server (default)
# binary logging is required for replication
log-bin

# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
# but will not function as a master if omitted
server-id       = 1

# Replication Slave (comment out master section to use this)
#
# To configure this host as a replication slave, you can choose between
# two methods :
#
# 1) Use the CHANGE MASTER TO command (fully described in our manual) -
#    the syntax is:
#
#    CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
#    MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
#
#    where you replace <host>, <user>, <password> by quoted strings and
#    <port> by the master's port number (3306 by default).
                                                                      
Example:
#
#    CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
#    MASTER_USER='joe', MASTER_PASSWORD='secret';
#
# OR
#
# 2) Set the variables below. However, in case you choose this method, then
#    start replication for the first time (even unsuccessfully, for example
#    if you mistyped the password in master-password and the slave fails to
#    connect), the slave will create a master.info file, and any later
#    change in this file to the variables' values below will be ignored and
#    overridden by the content of the master.info file, unless you shutdown
#    the slave server, delete master.info and restart the slaver server.
#    For that reason, you may want to leave the lines below untouched
#    (commented) and instead use CHANGE MASTER TO (see above)
#
# required unique id between 2 and 2^32 - 1
# (and different from the master)
# defaults to 2 if master-host is set
# but will not function as a slave if omitted
#server-id       = 2
#
# The replication master for this slave - required
#master-host     =   <hostname>
#
# The username the slave will use for authentication when connecting
# to the master - required
#master-user     =   <username>
#
# The password the slave will authenticate with when connecting to
# the master - required
#master-password =   <password>
                                                                       
# The port the master is listening on.
# optional - defaults to 3306
#master-port     =  <port>
#
# binary logging - not required for slaves, but recommended
#log-bin

# Point the following paths to different dedicated disks
#tmpdir         = /tmp/
#log-update     = /path-to-dedicated-directory/hostname

# Uncomment the following if you are using BDB tables
#bdb_cache_size = 4M
#bdb_max_lock = 10000

# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = /usr/local/mysql/data/
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = /usr/local/mysql/data/
#innodb_log_arch_dir = /usr/local/mysql/data/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
#innodb_buffer_pool_size = 16M
#innodb_additional_mem_pool_size = 2M
# Set .._log_file_size to 25 % of buffer pool size
#innodb_log_file_size = 5M
#innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50

[mysqldump]
quick
max_allowed_packet = 16M
# The port the master is listening on.
# optional - defaults to 3306
#master-port     =  <port>
#
# binary logging - not required for slaves, but recommended
#log-bin

# Point the following paths to different dedicated disks
#tmpdir         = /tmp/
#log-update     = /path-to-dedicated-directory/hostname

# Uncomment the following if you are using BDB tables
#bdb_cache_size = 4M
#bdb_max_lock = 10000

# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = /usr/local/mysql/data/
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = /usr/local/mysql/data/
#innodb_log_arch_dir = /usr/local/mysql/data/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
#innodb_buffer_pool_size = 16M
#innodb_additional_mem_pool_size = 2M
# Set .._log_file_size to 25 % of buffer pool size
#innodb_log_file_size = 5M
#innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50

[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates

[isamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout
0
lami20j Messages postés 21331 Date d'inscription jeudi 4 novembre 2004 Statut Modérateur, Contributeur sécurité Dernière intervention 30 octobre 2019 3 567
13 févr. 2007 à 20:48
Il faut démarrer le daemon.
Regarde dans la documentation comment il faut faire

Voilà mon installation de MySQL(pour t'inspirer)
2. MySQL

lami20j@debian:~/lamp$ su
Password:
debian:/home/lami20j/lamp# useradd mysql
debian:/home/lami20j/lamp# cd /usr/local/src/
debian:/usr/local/src# tar xzf /home/lami20j/lamp/mysql-5.0.21.tar.gz
debian:/usr/local/src# cd mysql-5.0.21/
debian:/usr/local/src/mysql-5.0.21#
debian:/usr/local/src/mysql-5.0.21# ./configure --prefix=/usr/local/mysql --enable-local-infile --with-openssl=/usr/local/ssl
.........
.........
.........
MySQL has a Web site at https://www.mysql.com/ which carries details on the
latest release, upcoming features, and other information to make your
work or play with MySQL more productive. There you can also find
information about mailing lists for MySQL discussion.

Remember to check the platform specific part of the reference manual for
hints about installing MySQL on your platform. Also have a look at the
files in the Docs directory.

Thank you for choosing MySQL!

debian:/usr/local/src/mysql-5.0.21# make && make install

debian:/usr/local# cp src/mysql-5.0.21/support-files/my-medium.cnf /etc/my.cnf
debian:/usr/local/src/mysql-5.0.21# /usr/local/mysql/bin/mysql_install_db --user=mysql
debian:/usr/local/src/mysql-5.0.21# cd /usr/local/
debian:/usr/local# echo "/usr/local/mysql/lib/mysql/" >> /etc/ld.so.conf
debian:/usr/local# ldconfig
debian:/usr/local# cp src/mysql-5.0.21/support-files/mysql.server.sh /etc/init.d/mysql
debian:/usr/local# cd /etc/rc2.d/
debian:/etc/rc2.d# ln -s ../init.d/mysql S85mysql
debian:/etc/rc2.d# ln -s ../init.d/mysql K85mysql
debian:/etc/rc2.d# cd /etc/rc5.d/
debian:/etc/rc5.d# ln -s ../init.d/mysql S85mysql
debian:/etc/rc5.d# ln -s ../init.d/mysql K85mysql
debian:/etc/rc5.d# cd ../init.d/
debian:/etc/init.d# chmod -v 0755 mysql
Le mode d'accès de `mysql' a été modifié à 0755 (rwxr-xr-x).
debian:/etc/init.d#


0
lami20j Messages postés 21331 Date d'inscription jeudi 4 novembre 2004 Statut Modérateur, Contributeur sécurité Dernière intervention 30 octobre 2019 3 567
13 févr. 2007 à 20:52
Au cas où (j'ai eu un problème avec mysql)
mysql installation depuis les sources#3
0
bob031 Messages postés 8158 Date d'inscription samedi 7 août 2004 Statut Membre Dernière intervention 1 septembre 2014 472
13 févr. 2007 à 21:47
Re-,
----------------------------------------------------------------------
Pour lancer le deamon :
# cd /etc/init.d/

# ./mysqld

Utilisation : ./mysqld {start | stop | status | restart }
-------------------------------------------------------------------------
Donner un mot de passe pour l'administrateur du serveur :
# mysqladmin -u root password 'votre_mot_de_passe'

-------------------------------------------------------------------------
Changer le mot de passe pour l'administrateur du serveur :
# mysqladmin -u root -p password 'votre_nouveau_mot_de_passe'

---------------------------------------------------------------------------
Pour accéder à mysql :
# mysql -p

-----------------------------------------------------------------------------
:-))

bob
0
k_rom Messages postés 142 Date d'inscription mardi 14 septembre 2004 Statut Membre Dernière intervention 14 janvier 2009 13
15 févr. 2007 à 00:00
merci bcp à vous

j'ai finalement opté pour une ré-install complete avec apt-get et ma foi, ça tourne. Mais en reprenant mon appli existante, plus rien ne marche.

je cherche encore mais je sens que je vais pas tarder à poste un nouveau message à ce sujet.

@+

Laurent
0
Zempachi Messages postés 7472 Date d'inscription vendredi 14 octobre 2005 Statut Contributeur Dernière intervention 5 juin 2020 906
13 févr. 2007 à 11:27
-1