Answers.Body: <p>Have you tried to enter the database information in your <code>.env</code> file?</p>
  
  <p>Your password is usually <code>"root"</code> in a MAMP environment.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-07T10:44:29.110Z
Answers.LastActivityDate: 2017-12-10T15:23:38.207Z
Answers.LastEditDate: 2017-12-10T15:23:38.207Z
Answers.UserDisplayName: Marten Brosch
Body: <p>I have installed Craft with Composer and have run the set up command.</p>
  
  <p>When I type in my database name I always get the error:</p>
  
  <p><code>Testing database credentials... failed: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)</code></p>
  
  <p>I have tried with a Mamp Pro server set up (restarted as per another post) and with a different username (I can't seem to set a password in terminal during the setup?).  Any ideas how I can get past this final hurdle?</p>
  
Tags: <database><craft3><composer>
Title: Craft 3 composer installation
ThreadText: # Craft 3 composer installation
  
  (Asked by: username_0 on 2017-12-07)
  
  I have installed Craft with Composer and have run the set up command.
  
  When I type in my database name I always get the error:
  
  `Testing database credentials... failed: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)`
  
  I have tried with a Mamp Pro server set up (restarted as per another post) and with a different username (I can't seem to set a password in terminal during the setup?). Any ideas how I can get past this final hurdle?
  
  **Tags:** database, craft3, composer
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-12-07. Score: 3 | Accepted answer
  
  Have you tried to enter the database information in your `.env` file?
  
  Your password is usually `"root"` in a MAMP environment.
  
  
  ---
  
  