Git bash on Windows 7. mysqldump command not working

I use git bash on a Windows 7 machine. When I try to use mysqldump, I get the error message: “sh.exe”: mysqldump: command not found. I am very new to this. Can anyone help me?

+2
source share
1 answer

You will need mysqldumpthe path that bash uses to search for commands. UN * X shell, for example bash, as well as windows cmd, use an environment variable PATHto control this.

To see the current path, enter it in bash:

$ echo $PATH

MySQL, c:\Program Files\MySql, , mysqldump, c:\Program Files\MySql\MySQL Server 5.5\bin\. . MySQL - , bin .

Windows - . Windows:

  • Computer Properties .
  • Advanced System Settings .
  • Advanced.
  • Environment Variables.
  • 2 , user system. , system.
  • , PATH Variable.
  • PATH.
  • Variable value : ;c:\Program Files\MySql\MySQL Server 5.5/bin/. : .
  • OK, /.

, Git bash . :

$ mysqldump

.

, , :

$ echo $PATH

- , ? MySQL? , - . , .

+14

All Articles