Answers.Body: <p>The CiviCRM <a href="https://github.com/civicrm/civicrm-core/blob/master/install/index.php#L348" rel="nofollow noreferrer">installer checks for the presence of <code>mysql_connect</code></a>. Your Heroku environment has <code>mysql_*</code> extension disabled. The installer won't run if the environment doesn't pass CiviCRM's checks (as you've discovered).</p>
  
  <p>This mysql_ library was <a href="http://php.net/manual/en/function.mysql-connect.php" rel="nofollow noreferrer">deprecated in PHP5.5 and removed in PHP7</a>. It looks like Heroku do offer <code>mysql_</code> as an option you can enable through composer.json (see their docs on <a href="https://devcenter.heroku.com/articles/php-support#extensions" rel="nofollow noreferrer">Heroku PHP extension support</a>). </p>
  
  <p>Even so, it's likely easier to use a hosting environment known to support CiviCRM; if you're a CiviCRM pioneer on Heroku, you may have to deal with other features of that environment which CiviCRM hasn't been road-tested with. (Not a criticism of Heroku - but CiviCRM has some expectations of its host environment above and beyond the "average" PHP app.)</p>
  
  <p>It's also possible that you could convert CiviCRM to use <code>mysqli_*</code> with a global replace of the <code>mysql_*</code> functions through the CiviCRM codebase ... if that works, the relevant ticket is <a href="https://issues.civicrm.org/jira/browse/CRM-16067" rel="nofollow noreferrer">CRM-16067: Replace deprecated mysql api with PDO or mysqli</a>!</p>
  
  <p>See also:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/27108087/call-to-undefined-function-mysql-connect-on-heroku-php-works-fine-locally-bu">Undefined function mysql_connect on Heroku</a></li>
  <li><a href="https://civicrm.stackexchange.com/questions/9276/error-during-drupal-installation-mysql-support-not-included-in-php">Error during Drupal installation: MySQL support not included in PHP</a></li>
  <li><a href="https://wiki.php.net/rfc/mysql_deprecation" rel="nofollow noreferrer">php.net: mysql deprecation</a></li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-31T09:50:57.993Z
Answers.LastActivityDate: 2016-03-31T10:01:45.243Z
Answers.LastEditDate: 2017-05-23T12:38:59.763Z
Answers.UserDisplayName: Chris Burgess
Body: <p>Got this error on heroku wordpress with ClearDB Mysql Connected. Everything works expect this:</p>
  
  <p><a href="https://i.sstatic.net/RorJP.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/RorJP.png" alt="enter image description here"></a></p>
  
  <p>Any ideas? Thanks.</p>
  
Tags: <wordpress><php>
Title: MySQL support not included in PHP - Wordpress Heroku
ThreadText: # MySQL support not included in PHP - Wordpress Heroku
  
  (Asked by: username_0 on 2016-03-30)
  
  Got this error on heroku wordpress with ClearDB Mysql Connected. Everything works expect this:
  
  [![enter image description here](https://i.sstatic.net/RorJP.png)](https://i.sstatic.net/RorJP.png)
  
  Any ideas? Thanks.
  
  **Tags:** wordpress, php
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-03-31. Score: 0 | Accepted answer
  
  The CiviCRM [installer checks for the presence of `mysql_connect`](https://github.com/civicrm/civicrm-core/blob/master/install/index.php#L348). Your Heroku environment has `mysql_*` extension disabled. The installer won't run if the environment doesn't pass CiviCRM's checks (as you've discovered).
  
  This mysql\_ library was [deprecated in PHP5.5 and removed in PHP7](http://php.net/manual/en/function.mysql-connect.php). It looks like Heroku do offer `mysql_` as an option you can enable through composer.json (see their docs on [Heroku PHP extension support](https://devcenter.heroku.com/articles/php-support#extensions)).
  
  Even so, it's likely easier to use a hosting environment known to support CiviCRM; if you're a CiviCRM pioneer on Heroku, you may have to deal with other features of that environment which CiviCRM hasn't been road-tested with. (Not a criticism of Heroku - but CiviCRM has some expectations of its host environment above and beyond the "average" PHP app.)
  
  It's also possible that you could convert CiviCRM to use `mysqli_*` with a global replace of the `mysql_*` functions through the CiviCRM codebase ... if that works, the relevant ticket is [CRM-16067: Replace deprecated mysql api with PDO or mysqli](https://issues.civicrm.org/jira/browse/CRM-16067)!
  
  See also:
  
  * [Undefined function mysql\_connect on Heroku](https://stackoverflow.com/questions/27108087/call-to-undefined-function-mysql-connect-on-heroku-php-works-fine-locally-bu)
  * [Error during Drupal installation: MySQL support not included in PHP](https://civicrm.stackexchange.com/questions/9276/error-during-drupal-installation-mysql-support-not-included-in-php)
  * [php.net: mysql deprecation](https://wiki.php.net/rfc/mysql_deprecation)
  
  
  ---
  
  