..En fait je me demande vraiment si il ne me manque pas des commandes dans terminal..est-ce que c'est possible??
Non.
Mais ce qui est fréquent c'est que le chemin de la commande ne soit pas le chemin par défaut.
Cherche dans /usr/local/mysql-standard-4.0.18-apple-darwin6.8-powerpc/ (le numéro de version est peut-être différent)
tu devrais y trouver mysqldump.
Donc si tu tapes /usr/local/mysql-standard-4.0.18-apple-darwin6.8-powerpc/mysqldump ça doit marcher (enfin je crois...)
après avoir écrit cette ligne je reçois:
tcsh: /root/localhost/mysql-standard-4.0.18-apple-darwin6.8-powerpc/mysqldump: Command not found. [Ordinateur-de-Joseph-Cordaro:~] josephc%
J'ai bien le script unix "mysqldump dans le répertoire MySQL/Library/bin/
J'avoue que je ne comprends pas pourquoi le terminal ne veut pas s'en servir???
jcordaroNOSPAM
Joseph Cordaro wrote:
Donc si tu tapes /usr/local/mysql-standard-4.0.18-apple-darwin6.8-powerpc/mysqldump ça doit marcher (enfin je crois...)
après avoir écrit cette ligne je reçois:
tcsh: /root/localhost/mysql-standard-4.0.18-apple-darwin6.8-powerpc/mysqldump: Command not found. [Ordinateur-de-Joseph-Cordaro:~] josephc%
J'ai bien le script unix "mysqldump dans le répertoire MySQL/Library/bin/
J'avoue que je ne comprends pas pourquoi le terminal ne veut pas s'en servir???
Je viens de lire les recommandations de mon installer de mysql..j'y trouve ces lignes un peu ésotériques pour moi..mais je me demande si ce n'est pas la piste pour résoudre mon problème: Je copie la partie en question:
Modify Your $PATH One thing you may wish to do after you install the MySQL package is add the directory "/Library/MySQL/bin" to your $PATH environment variable for your shell. If you do not do so, you will not be able to just type "mysql" to access the "mysql" command or any other commands in the MySQL binary directory. But rather you would have to use the full path like so: shell> /Library/MySQL/bin/mysql In order to modify your $PATH, you will have to find out which shell you are using. This can be done easily in the Terminal with the following command: shell> echo $SHELL This will return the path to the shell you are using. In most cases it will return either "/bin/tcsh" (tcsh shell) or "/bin/bash" (bash shell). If you are using the tcsh shell, you will have to modify the file ".tcshrc" located within your home directory. If this file does not exist, then you will have to create a new one. After opening the file in your text editor, add the following line at the bottom of the file: setenv PATH "$PATH":/Library/MySQL/bin Save the file. If you are using the bash shell, you will have to edit the file ".bashrc" located in your home directory. If this file does not exist, then you will have to create a new one. After opening the file in your text editor, add the following line at the bottom of the file: export PATH="$PATH:/Library/MySQL/bin" Save the file. After you have successfully modified your $PATH environment variable to include the MySQL binary directory, restart the Terminal application. You should now be able to access the MySQL command by simply typing "mysql" at the command prompt. If that does not work, then you may wish to logout fully and then log back in again. If you are receiving the error message "mysql: command not found" then review these instructions to double check that you have correctly modified the necessary files. Now that you've installed the MySQL server, it is now time to install the MySQL System Preferences Pane.
Je veux bien créer ce fichier texte appelé ".bashrc" et y mettre : export PATH="$PATH:/Library/MySQL/bin" Mais je ne vois pas où le mettre...? On parle ici de home directory..comment le traduisez-vous en français??
Pensez-vous aussi que c'est la source de mon problème?
Joseph Cordaro <jcordaroNOSPAM@club-internet.fr> wrote:
Donc si tu tapes
/usr/local/mysql-standard-4.0.18-apple-darwin6.8-powerpc/mysqldump ça
doit marcher (enfin je crois...)
après avoir écrit cette ligne je reçois:
tcsh:
/root/localhost/mysql-standard-4.0.18-apple-darwin6.8-powerpc/mysqldump:
Command not found.
[Ordinateur-de-Joseph-Cordaro:~] josephc%
J'ai bien le script unix "mysqldump dans le répertoire
MySQL/Library/bin/
J'avoue que je ne comprends pas pourquoi le terminal ne veut pas s'en
servir???
Je viens de lire les recommandations de mon installer de mysql..j'y
trouve ces lignes un peu ésotériques pour moi..mais je me demande si ce
n'est pas la piste pour résoudre mon problème: Je copie la partie en
question:
Modify Your $PATH
One thing you may wish to do after you install the MySQL package is add
the
directory "/Library/MySQL/bin" to your $PATH environment variable for
your
shell. If you do not do so, you will not be able to just type "mysql" to
access the
"mysql" command or any other commands in the MySQL binary directory. But
rather you would have to use the full path like so:
shell> /Library/MySQL/bin/mysql
In order to modify your $PATH, you will have to find out which shell you
are
using. This can be done easily in the Terminal with the following
command:
shell> echo $SHELL
This will return the path to the shell you are using. In most cases it
will return
either "/bin/tcsh" (tcsh shell) or "/bin/bash" (bash shell). If you are
using the tcsh
shell, you will have to modify the file ".tcshrc" located within your
home
directory. If this file does not exist, then you will have to create a
new one. After
opening the file in your text editor, add the following line at the
bottom of the
file:
setenv PATH "$PATH":/Library/MySQL/bin
Save the file.
If you are using the bash shell, you will have to edit the file
".bashrc" located in
your home directory. If this file does not exist, then you will have to
create a
new one. After opening the file in your text editor, add the following
line at the
bottom of the file:
export PATH="$PATH:/Library/MySQL/bin"
Save the file.
After you have successfully modified your $PATH environment variable to
include the MySQL binary directory, restart the Terminal application.
You
should now be able to access the MySQL command by simply typing "mysql"
at the command prompt. If that does not work, then you may wish to
logout
fully and then log back in again. If you are receiving the error message
"mysql: command not found"
then review these instructions to double check that you have correctly
modified
the necessary files.
Now that you've installed the MySQL server, it is now time to install
the
MySQL System Preferences Pane.
Je veux bien créer ce fichier texte appelé ".bashrc" et y mettre :
export PATH="$PATH:/Library/MySQL/bin"
Mais je ne vois pas où le mettre...? On parle ici de home
directory..comment le traduisez-vous en français??
Pensez-vous aussi que c'est la source de mon problème?
Donc si tu tapes /usr/local/mysql-standard-4.0.18-apple-darwin6.8-powerpc/mysqldump ça doit marcher (enfin je crois...)
après avoir écrit cette ligne je reçois:
tcsh: /root/localhost/mysql-standard-4.0.18-apple-darwin6.8-powerpc/mysqldump: Command not found. [Ordinateur-de-Joseph-Cordaro:~] josephc%
J'ai bien le script unix "mysqldump dans le répertoire MySQL/Library/bin/
J'avoue que je ne comprends pas pourquoi le terminal ne veut pas s'en servir???
Je viens de lire les recommandations de mon installer de mysql..j'y trouve ces lignes un peu ésotériques pour moi..mais je me demande si ce n'est pas la piste pour résoudre mon problème: Je copie la partie en question:
Modify Your $PATH One thing you may wish to do after you install the MySQL package is add the directory "/Library/MySQL/bin" to your $PATH environment variable for your shell. If you do not do so, you will not be able to just type "mysql" to access the "mysql" command or any other commands in the MySQL binary directory. But rather you would have to use the full path like so: shell> /Library/MySQL/bin/mysql In order to modify your $PATH, you will have to find out which shell you are using. This can be done easily in the Terminal with the following command: shell> echo $SHELL This will return the path to the shell you are using. In most cases it will return either "/bin/tcsh" (tcsh shell) or "/bin/bash" (bash shell). If you are using the tcsh shell, you will have to modify the file ".tcshrc" located within your home directory. If this file does not exist, then you will have to create a new one. After opening the file in your text editor, add the following line at the bottom of the file: setenv PATH "$PATH":/Library/MySQL/bin Save the file. If you are using the bash shell, you will have to edit the file ".bashrc" located in your home directory. If this file does not exist, then you will have to create a new one. After opening the file in your text editor, add the following line at the bottom of the file: export PATH="$PATH:/Library/MySQL/bin" Save the file. After you have successfully modified your $PATH environment variable to include the MySQL binary directory, restart the Terminal application. You should now be able to access the MySQL command by simply typing "mysql" at the command prompt. If that does not work, then you may wish to logout fully and then log back in again. If you are receiving the error message "mysql: command not found" then review these instructions to double check that you have correctly modified the necessary files. Now that you've installed the MySQL server, it is now time to install the MySQL System Preferences Pane.
Je veux bien créer ce fichier texte appelé ".bashrc" et y mettre : export PATH="$PATH:/Library/MySQL/bin" Mais je ne vois pas où le mettre...? On parle ici de home directory..comment le traduisez-vous en français??
Pensez-vous aussi que c'est la source de mon problème?
Saïd
Joseph Cordaro :
Joseph Cordaro wrote:
Donc si tu tapes /usr/local/mysql-standard-4.0.18-apple-darwin6.8-powerpc/mysqldump ça doit marcher (enfin je crois...)
après avoir écrit cette ligne je reçois:
tcsh: /root/localhost/mysql-standard-4.0.18-apple-darwin6.8-powerpc/mysqldump: Command not found. [Ordinateur-de-Joseph-Cordaro:~] josephc%
J'ai bien le script unix "mysqldump dans le répertoire MySQL/Library/bin/
directory "/Library/MySQL/bin" to your $PATH environment variable for
Faudrait savoir. Si tu as bien un /Library/MySQL/bin/mysqldump alors la modification du path va resoudre le probleme et il n'y aura qu'a taper mysqldump
Le .bashrc doit se trouver dans le home directory, c'est a dire le repertoire maison. Soit, pour un utilisateur normal dont le login est "utilisateur"
/Users/utilisateur
pour root c'est le repertoire /var/root
Si le .bashrc existe deja, il ne faut pas l'ecraser, mais simplement le modifier pour y ajouter ce que tu dis;
export PATH="$PATH:/Library/MySQL/bin"
-- Saïd. C programmers never die - they're just cast into void.
Joseph Cordaro :
Joseph Cordaro <jcordaroNOSPAM@club-internet.fr> wrote:
Donc si tu tapes
/usr/local/mysql-standard-4.0.18-apple-darwin6.8-powerpc/mysqldump ça
doit marcher (enfin je crois...)
après avoir écrit cette ligne je reçois:
tcsh:
/root/localhost/mysql-standard-4.0.18-apple-darwin6.8-powerpc/mysqldump:
Command not found.
[Ordinateur-de-Joseph-Cordaro:~] josephc%
J'ai bien le script unix "mysqldump dans le répertoire
MySQL/Library/bin/
directory "/Library/MySQL/bin" to your $PATH environment variable for
Faudrait savoir. Si tu as bien un /Library/MySQL/bin/mysqldump alors la
modification du path va resoudre le probleme et il n'y aura qu'a taper
mysqldump
Le .bashrc doit se trouver dans le home directory, c'est a dire le
repertoire maison. Soit, pour un utilisateur normal dont le login est
"utilisateur"
/Users/utilisateur
pour root c'est le repertoire /var/root
Si le .bashrc existe deja, il ne faut pas l'ecraser, mais simplement le
modifier pour y ajouter ce que tu dis;
export PATH="$PATH:/Library/MySQL/bin"
--
Saïd.
C programmers never die - they're just cast into void.
Donc si tu tapes /usr/local/mysql-standard-4.0.18-apple-darwin6.8-powerpc/mysqldump ça doit marcher (enfin je crois...)
après avoir écrit cette ligne je reçois:
tcsh: /root/localhost/mysql-standard-4.0.18-apple-darwin6.8-powerpc/mysqldump: Command not found. [Ordinateur-de-Joseph-Cordaro:~] josephc%
J'ai bien le script unix "mysqldump dans le répertoire MySQL/Library/bin/
directory "/Library/MySQL/bin" to your $PATH environment variable for
Faudrait savoir. Si tu as bien un /Library/MySQL/bin/mysqldump alors la modification du path va resoudre le probleme et il n'y aura qu'a taper mysqldump
Le .bashrc doit se trouver dans le home directory, c'est a dire le repertoire maison. Soit, pour un utilisateur normal dont le login est "utilisateur"
/Users/utilisateur
pour root c'est le repertoire /var/root
Si le .bashrc existe deja, il ne faut pas l'ecraser, mais simplement le modifier pour y ajouter ce que tu dis;
export PATH="$PATH:/Library/MySQL/bin"
-- Saïd. C programmers never die - they're just cast into void.
sdeglin_no_masp
Joseph Cordaro wrote:
Paul Gaborit wrote:
Par curiosité essaie de taper echo $path. La réponse est peut-être là.
Je viens de le faire
Et alors, ça donne quoi ?
Excusez-moi..j'avais raté un copier coller..en fait j'obtiens ça:
Que la réponse à ta question est dans ton autre message. Le Path indique l'ensemble des répertoires dans lequel ton shell cherche les commandes que tu tapes. MySQL/Library/bin n'étant pas dans la PATH, le shell ne trouve pas tout seul les scripts mysql. Une fois ajouter cela devrait marcher.
-- |/ |arpok http://karpok.free.fr
Joseph Cordaro <jcordaroNOSPAM@club-internet.fr> wrote:
Paul Gaborit <Paul.Gaborit@invalid.invalid> wrote:
Par curiosité essaie de taper echo $path. La réponse est peut-être là.
Je viens de le faire
Et alors, ça donne quoi ?
Excusez-moi..j'avais raté un copier coller..en fait j'obtiens ça:
Que la réponse à ta question est dans ton autre message.
Le Path indique l'ensemble des répertoires dans lequel ton shell cherche
les commandes que tu tapes.
MySQL/Library/bin n'étant pas dans la PATH, le shell ne trouve pas tout
seul les scripts mysql. Une fois ajouter cela devrait marcher.
Que la réponse à ta question est dans ton autre message. Le Path indique l'ensemble des répertoires dans lequel ton shell cherche les commandes que tu tapes. MySQL/Library/bin n'étant pas dans la PATH, le shell ne trouve pas tout seul les scripts mysql. Une fois ajouter cela devrait marcher.
-- |/ |arpok http://karpok.free.fr
bgrandin
Joseph Cordaro wrote:
patpro ~ patrick proniewski wrote:
(de tete)
mysqldump -u user -ppasswd --opt tabase > tabase.sql
patpro
Là, c'est la meilleure!!! mon terminal me renvoit: mysqldump : command not found
Tape la commande avec son chemin en entier, possiblement :
/usr/local/mysql/bin/mysqldump
mais l'installation peut avoir été faite ailleurs, selon le package utilisé (Dans /Library/MySQL/ par exemple).
-- Benoît Grandin
http://www.bdzone.com Le portail BD -----------------------------------
Joseph Cordaro <jcordaroNOSPAM@club-internet.fr> wrote:
patpro ~ patrick proniewski <patpro@boleskine.patpro.net> wrote:
(de tete)
mysqldump -u user -ppasswd --opt tabase > tabase.sql
patpro
Là, c'est la meilleure!!! mon terminal me renvoit:
mysqldump : command not found
Tape la commande avec son chemin en entier, possiblement :
/usr/local/mysql/bin/mysqldump
mais l'installation peut avoir été faite ailleurs, selon le package
utilisé (Dans /Library/MySQL/ par exemple).
--
Benoît Grandin
bgrandin@bdzone.com
http://www.bdzone.com Le portail BD
-----------------------------------