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

Moodle missing XMLDB class for mysqli

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7
    • Fix Version/s: 1.8
    • Component/s: Installation
    • Labels:
      None
    • Environment:
      PHP 5.2.0 with mysqli but not mysql extension
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_17_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE

      Description

      After setting the config file manually, the first time I run Moodle, it returns an error complaining that "mysqli is not supported by XMLDDB". This is caused by the fact that there is no mysqli directory within the lib/xmldb/classes/generators directory. After having a look at the mysql directory I saw no reason why I couldn't use the mysql.class.php file - so I created a new mysqli directory and copied mysql.class.php into mysqli as mysqli.class.php/ I then changed all references to mysql within the php file to mysqli.

      After that Moodle had no problems, so it appears to be resolved. I am primarily posting the issue as I could find no reference to this problem, so I was unsure if you are aware of it.

        Attachments

          Activity

            People

            Assignee:
            stronk7 Eloy Lafuente (stronk7)
            Reporter:
            rorym Rory McKinley
            Tester:
            Nobody
            Participants:
            Component watchers:
            Matteo Scaramuccia, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              31/Mar/07