Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-25532

mysqli: optional dbport is ignored

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.0.1
    • 2.0
    • Database SQL/XMLDB
    • mysql 5.0 running on alternative port 3307
    • MySQL
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE
    • Easy

      To run mysql under different port than default port 3306 we have the dboptions-array in config.php.
      But dboptions['dbport'] is ignored when creating the mysqli connection.

      I changed line 265 in lib/dml/mysqli_native_moodle_database.php
      from

      $this->mysqli = new mysqli($dbhost, $dbuser, $dbpass, $dbname);

      to

      $this->mysqli = new mysqli($dbhost, $dbuser, $dbpass, $dbname, $dboptions['dbport']);

      to solve this problem

            nebgor Aparup Banerjee
            somplan Georg Westermann
            Nobody Nobody (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.