java - 备份mysql数据的时候报/usr/bin/bash: mysqldump: command not found,怎么解决
黄舟
黄舟 2017-04-18 09:39:43
0
1
583
黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(1)
PHPzhong

bash finds commands via the path contained in the $PATH environment variable. /usr/bin/bash: mysqldump: command not found means that bash did not find the mysqldump command in $PATH.

There are two situations here:

  1. The directory where mysqldump is located is not added to $PATH, which can be confirmed through echo $PATH.

  2. mysqldump is not installed

Usually the second case is more likely to occur, so the questioner can search for how to install mysqldump in the system he is using, and just install it.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!