Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-19835

Installing into D8, DB requirements fail using non-standard port for MySQL

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7
    • Fix Version/s: 4.7.18
    • Component/s: None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding
    • Verified?:
      No

      Description

      Starting to work with CiviCRM and Drupal 8, testing 4.7 master against Drupal 8.2.5

      I tried to install on my lcoalhost, where MySQL is using a non-standard port....

      The requirements checks in the civicrm.install file fail with a cannot find host error.

      I figured out how to make it go on for my situation, but I need to take a look and make sure this is a general solution...

      see civicrm_requirements()
      around line 89
      had to comment out:
      $db_config['host'] = "{$db_config['host']}:{$db_config['port']}";

      It looks as in the method checkMysqlConnection() in /Civi/Install/Requirements.php
      calls@mysql_connect(), and this works best without the port, at least on my config....

      Will make a PR after some additional testing....

        Attachments

          Activity

            People

            • Assignee:
              jackrabbithanna Mark Hanna
              Reporter:
              jackrabbithanna Mark Hanna
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: