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

Create database on install

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9, 2.0
    • Component/s: Database SQL/XMLDB
    • Labels:
      None
    • Environment:
      MySQL 5, PHP 5, Apache 2
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      While I was browsing through install.php, I've noted a comment saying that Moodle should create its database, but it doesn't. I've looked into adodb an noticed that it caches previous connection parameters (including database name). That is why the second connect fails (it has the same semantics as the first one). I've fixed this problem and
      attached install.php.patch.

        Attachments

        1. install_mixed.patch
          2 kB
          Eloy Lafuente (stronk7)
        2. install.php.patch
          2 kB
          Andrei Bautu
        3. mdl_9609_install.php.diff
          2 kB
          Anthony Borrow

          Activity

            People

            Assignee:
            stronk7 Eloy Lafuente (stronk7)
            Reporter:
            abautu Andrei Bautu
            Tester:
            Nobody
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              3/Mar/08