Body: <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>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-26T16:56:57.447Z
Comments.Text: 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.
Comments.UserDisplayName: Lindsey D
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-30T00:32:01.113Z
Comments.Text: Have you added `mysqldump` to your PATH environment variable?  If so, was it a user based PATH or a whole system PATH variable?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-31T04:35:46.777Z
Comments.Text: `which mysqldump` gives `/usr/bin/mysqldump` does that help ?
Comments.UserDisplayName: laurent
Tags: <craft3><database><back-up>
Title: Craft 3 : Can't backup database ("failed with exit code -1")
ThreadText: # 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
  
  