Home  >  Q&A  >  body text

java - 备份mysql数据的时候报/usr/bin/bash: mysqldump: command not found,怎么解决

黄舟黄舟2718 days ago567

reply all(1)I'll reply

  • PHPz

    PHPz2017-04-18 09:41:43

    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.

    reply
    0
  • Cancelreply