Answers.Body: <p>Although not clearly stated in the civix documentation, a full running mysql database is mandatory with the CiviCRM application for an api generation.
  A good reason for me to have an online clone of my site for testing. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-26T16:34:11.663Z
Answers.LastActivityDate: 2016-07-26T16:34:11.663Z
Answers.UserDisplayName: Jean-Pierre PECUCHET
Body: <p>I would use civix for coding a scheduled task that updates a customed field. I could generate an extension skeletton with the "civix generate:module" command, but fail to use "civix generate:api" for generating an api to be scheduled.</p>
  
  <p>My CiviCRM is embedded in Drupal and hosted by Google cloud. I have a local copy of the civicrm part of my site, but without the mysql database. When executing the civix generate:api command, I get an error that seems coming from mysql : Initialization Error - DB error : extension not found.</p>
  
  <p>Is mysql mandatory for having "civix generate:api" working ?
  How can I avoid my civicrm copy to launch mysql ?
  Thanks for help.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-07-25T17:09:36.197Z
Comments.Text: solved by a "extension=php_mysql.dll" directive in the php.ini file.
  But remains an "Initialization Error" during the call "Services::api3()".
Comments.UserDisplayName: Jean-Pierre PECUCHET
Tags: <civix>
Title: does civix need a mysql install?
ThreadText: # does civix need a mysql install?
  
  (Asked by: username_0 on 2016-07-24)
  
  I would use civix for coding a scheduled task that updates a customed field. I could generate an extension skeletton with the "civix generate:module" command, but fail to use "civix generate:api" for generating an api to be scheduled.
  
  My CiviCRM is embedded in Drupal and hosted by Google cloud. I have a local copy of the civicrm part of my site, but without the mysql database. When executing the civix generate:api command, I get an error that seems coming from mysql : Initialization Error - DB error : extension not found.
  
  Is mysql mandatory for having "civix generate:api" working ?
  How can I avoid my civicrm copy to launch mysql ?
  Thanks for help.
  
  **Tags:** civix
  
  > **Comments:**
  > **username_0**: solved by a "extension=php_mysql.dll" directive in the php.ini file. But remains an "Initialization Error" during the call "Services::api3()".  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-07-26. Score: 1
  
  Although not clearly stated in the civix documentation, a full running mysql database is mandatory with the CiviCRM application for an api generation.
  A good reason for me to have an online clone of my site for testing.
  
  
  ---
  
  