<p>I can't backup database, the log says :</p>

<blockquote>
  <p>[error][yii\base\Exception] yii\base\Exception: Could not create
  backup: The shell command "mysqldump {{...blablabla...}} failed with
  exit code -1. in
  /home/user/craft/vendor/craftcms/cms/src/controllers/UtilitiesController.php:38</p>
</blockquote>

<p>Any ideas what error -1 means ?</p>

CC BY-SA 4.0
2018-05-26T16:56:57.447Z
It's not a duplicate of [that other question](https://craftcms.stackexchange.com/q/23290/45). I've added the error message to both question titles, in order to show the distinction.
Lindsey D
CC BY-SA 4.0
2018-05-30T00:32:01.113Z
Have you added `mysqldump` to your PATH environment variable?  If so, was it a user based PATH or a whole system PATH variable?
Brad Bell
CC BY-SA 4.0
2018-05-31T04:35:46.777Z
`which mysqldump` gives `/usr/bin/mysqldump` does that help ?
laurent
<craft3><database><back-up>
Craft 3 : Can't backup database ("failed with exit code -1")
# Craft 3 : Can't backup database ("failed with exit code -1")

(Asked by: username_0 on 2018-05-26)

I can't backup database, the log says :

> [error][yii\base\Exception] yii\base\Exception: Could not create
> backup: The shell command "mysqldump {{...blablabla...}} failed with
> exit code -1. in
> /home/user/craft/vendor/craftcms/cms/src/controllers/UtilitiesController.php:38

Any ideas what error -1 means ?

**Tags:** craft3, database, back-up

> **Comments:**
> **username_1**: It's not a duplicate of [that other question](https://craftcms.stackexchange.com/q/23290/45). I've added the error message to both question titles, in order to show the distinction.  
> **username_2**: Have you added `mysqldump` to your PATH environment variable?  If so, was it a user based PATH or a whole system PATH variable?  
> **username_0**: `which mysqldump` gives `/usr/bin/mysqldump` does that help ?  

---

## 0 answers

