Answers.Body: <p>Changed Method to cli-Method.
  Changed Mysql Auth Method for civicrm Mysql user:</p>
  <p><a href="https://dcblog.dev/mysql-80-error-the-server-requested-authentication-method-unknown-to-the-client" rel="nofollow noreferrer">https://dcblog.dev/mysql-80-error-the-server-requested-authentication-method-unknown-to-the-client</a></p>
  <p>error: The server requested authentication method unknown to the client
  The solution is to change the default authentication method to mysql_native_password.</p>
  <p>ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password
  BY 'password';</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-21T13:29:15.833Z
Answers.LastActivityDate: 2021-09-21T13:54:51.337Z
Answers.LastEditDate: 2021-09-21T13:54:51.337Z
Answers.UserDisplayName: Mich___
Body: <p>When I enter &quot;cv api job.execute --user=cronuser --cwd=/srv/www/html/wordpress&quot;
  I get following error message:
  cronuser has admin priviledges in wordpress and civicrm.</p>
  <p>Initialization Error</p><p><pre>Array
  (
      [callback] =&gt; Array
          (
              [0] =&gt; CRM_Core_Error
              [1] =&gt; simpleHandler
          )
  <pre><code>[code] =&amp;gt; -24
  [message] =&amp;gt; DB Error: connect failed
  [mode] =&amp;gt; 16
  [debug_info] =&amp;gt;  [nativecode=The server requested authentication method unknown to the client]
  [type] =&amp;gt; DB_Error
  [user_info] =&amp;gt;  [nativecode=The server requested authentication method unknown to the client]
  [to_string] =&amp;gt; [db_error: message=&amp;quot;DB Error: connect failed&amp;quot; code=-24 mode=callback callback=CRM_Core_Error::simpleHandler prefix=&amp;quot;&amp;quot; info=&amp;quot; [nativecode=The server requested authentication method unknown to the client]&amp;quot;]
  </code></pre>
  <p>)
  </pre></p><p></p><p>Initialization Error</p><p><pre>Array
  (
  [callback] =&gt; Array
  (
  [0] =&gt; CRM_Core_Error
  [1] =&gt; simpleHandler
  )</p>
  <pre><code>[code] =&amp;gt; -24
  [message] =&amp;gt; DB Error: connect failed
  [mode] =&amp;gt; 16
  [debug_info] =&amp;gt;  [nativecode=The server requested authentication method unknown to the client]
  [type] =&amp;gt; DB_Error
  [user_info] =&amp;gt;  [nativecode=The server requested authentication method unknown to the client]
  [to_string] =&amp;gt; [db_error: message=&amp;quot;DB Error: connect failed&amp;quot; code=-24 mode=callback callback=CRM_Core_Error::simpleHandler prefix=&amp;quot;&amp;quot; info=&amp;quot; [nativecode=The server requested authentication method unknown to the client]&amp;quot;]
  </code></pre>
  <p>)
  </pre></p><p></p></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-09-20T13:58:05.840Z
Comments.Text: Have you tried https://stackoverflow.com/questions/50026939/php-mysqli-connect-authentication-method-unknown-to-the-client-caching-sha2-pa ?
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-09-21T13:26:29.597Z
Comments.Text: Thanks so much, your hint was great. I got it solved by changing the mysql user to the old auth method... https://dcblog.dev/mysql-80-error-the-server-requested-authentication-method-unknown-to-the-client
Comments.UserDisplayName: Mich___
Tags: <cli>
Title: cv api job.execute - authentication method unknown
ThreadText: # cv api job.execute - authentication method unknown
  
  (Asked by: username_0 on 2021-09-20)
  
  When I enter "cv api job.execute --user=cronuser --cwd=/srv/www/html/wordpress"
  I get following error message:
  cronuser has admin priviledges in wordpress and civicrm.
  
  Initialization Error
  
  ```
  Array
  (
      [callback] => Array
          (
              [0] => CRM_Core_Error
              [1] => simpleHandler
          )
  
  ```
  [code] =&gt; -24
  [message] =&gt; DB Error: connect failed
  [mode] =&gt; 16
  [debug_info] =&gt;  [nativecode=The server requested authentication method unknown to the client]
  [type] =&gt; DB_Error
  [user_info] =&gt;  [nativecode=The server requested authentication method unknown to the client]
  [to_string] =&gt; [db_error: message=&quot;DB Error: connect failed&quot; code=-24 mode=callback callback=CRM_Core_Error::simpleHandler prefix=&quot;&quot; info=&quot; [nativecode=The server requested authentication method unknown to the client]&quot;]
  
  ```
  
  )
  
  ```
  
  Initialization Error
  
  ```
  Array
  (
  [callback] => Array
  (
  [0] => CRM_Core_Error
  [1] => simpleHandler
  )
  
  ```
  [code] =&gt; -24
  [message] =&gt; DB Error: connect failed
  [mode] =&gt; 16
  [debug_info] =&gt;  [nativecode=The server requested authentication method unknown to the client]
  [type] =&gt; DB_Error
  [user_info] =&gt;  [nativecode=The server requested authentication method unknown to the client]
  [to_string] =&gt; [db_error: message=&quot;DB Error: connect failed&quot; code=-24 mode=callback callback=CRM_Core_Error::simpleHandler prefix=&quot;&quot; info=&quot; [nativecode=The server requested authentication method unknown to the client]&quot;]
  
  ```
  
  )
  
  ```
  
  **Tags:** cli
  
  > **Comments:**
  > **username_1**: Have you tried https://stackoverflow.com/questions/50026939/php-mysqli-connect-authentication-method-unknown-to-the-client-caching-sha2-pa ?  
  > **username_0**: Thanks so much, your hint was great. I got it solved by changing the mysql user to the old auth method... https://dcblog.dev/mysql-80-error-the-server-requested-authentication-method-unknown-to-the-client  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2021-09-21. Score: 2
  
  Changed Method to cli-Method.
  Changed Mysql Auth Method for civicrm Mysql user:
  
  <https://dcblog.dev/mysql-80-error-the-server-requested-authentication-method-unknown-to-the-client>
  
  error: The server requested authentication method unknown to the client
  The solution is to change the default authentication method to mysql\_native\_password.
  
  ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql\_native\_password
  BY 'password';
  
  
  ---
  
  