Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-6715

Automatically create xwiki database on first run if it does not exist

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.1 RC1
    • Fix Version/s: None
    • Component/s: Storage
    • Labels:
      None
    • keywords:
      storage create database automatically
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      If you try to start XWiki on a, for example, MySQL server and there is no 'xwiki' database created, you get an error.

      Why not make XWiki create the database if it's not already there?

      I know that DB management is more or less a process separated from XWiki that needs to be handled by an admin or DB admin, but this is a minor thing that is very annoying specially during testing when you clean the database and start over. A simple 'create database xwiki' in the storage code should do the trick.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              enygma Eduard Moraru
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Date of First Response: