Answers.Body: <p>I'm wondering if this is due to the authentication method that is not set to native password. See <a href="https://mariadb.com/kb/en/authentication-plugin-unix-socket/" rel="nofollow noreferrer">https://mariadb.com/kb/en/authentication-plugin-unix-socket/</a></p>
  <p>Try this:</p>
  <pre><code>ALTER USER 'YOUR_CIVI_DB_USER_NAME'@'localhost' IDENTIFIED WITH mysql_native_password BY 'PASSWORD_OF_THE_CIVI_DB_USER';
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-08-04T14:16:54.120Z
Answers.Text: Thank you very much, it might have been that. I changed the passwort by another method and it does work now.
Answers.UserDisplayName: golha
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-08-03T13:22:04.447Z
Answers.LastActivityDate: 2022-08-03T13:22:04.447Z
Answers.UserDisplayName: AlainB
Body: <p>I'd appreciate any hint on how to fix this: wordpress installed, civicrm installation fails with
  Initialization Error code 24 DB Error: connect failed. Access denied for user 'user'@'localhost'</p>
  <p>wordpress successfully uses the same database and user, therefore i can't figure out why access is denied for civicrm installer at some point (database has entries for civicrm, but installation is not completed.
  thanks</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-07-29T16:18:29.783Z
Comments.Text: Hi. Could use a bit more info. If there are some civicrm tables in your DB, then clearly the DB access credentials are OK, or nothing would get written there. So it's probably something else getting in the way. What's your hosting environment?
Comments.UserDisplayName: Graham
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-07-29T16:33:07.337Z
Comments.Text: Hi Graham, thank you. Debian bullseye with apache 2, mariadb 10.5, php 7.4, wordpress 5.7. . your comment makes sense to me, but the error message stills says "access denied".
Comments.UserDisplayName: golha
Tags: <installation>
Title: Installation failed: DB Error:connect failed
ThreadText: # Installation failed: DB Error:connect failed
  
  (Asked by: username_0 on 2022-07-29)
  
  I'd appreciate any hint on how to fix this: wordpress installed, civicrm installation fails with
  Initialization Error code 24 DB Error: connect failed. Access denied for user 'user'@'localhost'
  
  wordpress successfully uses the same database and user, therefore i can't figure out why access is denied for civicrm installer at some point (database has entries for civicrm, but installation is not completed.
  thanks
  
  **Tags:** installation
  
  > **Comments:**
  > **username_1**: Hi. Could use a bit more info. If there are some civicrm tables in your DB, then clearly the DB access credentials are OK, or nothing would get written there. So it's probably something else getting in the way. What's your hosting environment?  
  > **username_0**: Hi username_1, thank you. Debian bullseye with apache 2, mariadb 10.5, php 7.4, wordpress 5.7. . your comment makes sense to me, but the error message stills says "access denied".  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2022-08-03. Score: 2
  
  I'm wondering if this is due to the authentication method that is not set to native password. See <https://mariadb.com/kb/en/authentication-plugin-unix-socket/>
  
  Try this:
  
  ```
  ALTER USER 'YOUR_CIVI_DB_USER_NAME'@'localhost' IDENTIFIED WITH mysql_native_password BY 'PASSWORD_OF_THE_CIVI_DB_USER';
  
  ```
  
  > **Comments:**
  > **username_0**: Thank you very much, it might have been that. I changed the passwort by another method and it does work now.  
  
  ---
  
  