Answers.Body: <p>The reference for cli is <a href="https://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs#ManagingScheduledJobs-PHPclimethod" rel="nofollow noreferrer">Manage Scheduled Jobs</a>. It tells</p>
  
  <blockquote>
    <p>This method requires a valid Username and Password (for a Drupal, Joomla or <strong>WordPress</strong> user who has adequate permissions for the job or jobs being run). </p>
  </blockquote>
  
  <p>So try to run it with a Wordpress user and password. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-11T10:19:06.453Z
Answers.Text: You mean i use username and password that i used for Wp-admin?
Answers.UserDisplayName: shahbaz hassan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-11T10:46:55.953Z
Answers.Text: Try it. If it it works you can create a seperate WP user that has just enough priviliges to run the cron.
Answers.UserDisplayName: Kainuk - CiviCooP
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-09T09:05:16.333Z
Answers.LastActivityDate: 2016-11-09T09:05:16.333Z
Answers.UserDisplayName: Kainuk - CiviCooP
Body: <p>I've installed CiviCRM in one of my Wordpress site, It installed fine but it is showing me popup window that "No Cron is running", i've tried to setup Cron from my Cpanel with PHP-CLi method, I use this command:</p>
  
  <pre><code>/usr/local/bin/php /home/thetia/public_html/wp-content/plugins/civicrm/civicrm/bin/cli.php  -s thetia.com.au -u database_user -p database_user_password -e Job -a execute 
  </code></pre>
  
  <p>When cron executes it send me Email with following error:</p>
  
  <p>Sorry but we are not able to provide this at the moment.</p>
  
  <pre><code>DB Error: connect failed
  </code></pre>
  
  <p>I'm providing right username and password but even then it is showing me this error, i don't know what am i doing wrong, any help will be very appreciable.</p>
  
Tags: <wordpress><cron><cli>
Title: CiviCRM Wordpress Cron not running - DB Error connect failed
ThreadText: # CiviCRM Wordpress Cron not running - DB Error connect failed
  
  (Asked by: username_0 on 2016-11-09)
  
  I've installed CiviCRM in one of my Wordpress site, It installed fine but it is showing me popup window that "No Cron is running", i've tried to setup Cron from my Cpanel with PHP-CLi method, I use this command:
  
  ```
  /usr/local/bin/php /home/thetia/public_html/wp-content/plugins/civicrm/civicrm/bin/cli.php  -s thetia.com.au -u database_user -p database_user_password -e Job -a execute 
  
  ```
  
  When cron executes it send me Email with following error:
  
  Sorry but we are not able to provide this at the moment.
  
  ```
  DB Error: connect failed
  
  ```
  
  I'm providing right username and password but even then it is showing me this error, i don't know what am i doing wrong, any help will be very appreciable.
  
  **Tags:** wordpress, cron, cli
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-11-09. Score: 1
  
  The reference for cli is [Manage Scheduled Jobs](https://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs#ManagingScheduledJobs-PHPclimethod). It tells
  
  > This method requires a valid Username and Password (for a Drupal, Joomla or **WordPress** user who has adequate permissions for the job or jobs being run).
  
  So try to run it with a Wordpress user and password.
  
  > **Comments:**
  > **username_0**: You mean i use username and password that i used for Wp-admin?  
  > **username_1**: Try it. If it it works you can create a seperate WP user that has just enough priviliges to run the cron.  
  
  ---
  
  