Setting Up a Midgard Database
After the Midgard Framework is installed, run the Datagard command. Before doing this, ensure that the Midgard module in enabled in the php.ini file used by PHP CLI.
$ datagard
When you run datagard for the first time, and midgard-data can not connect to MySQL server, you will be asked about the MySQL administrator name and password.
Midgard 8.09 Ragnaroek
By default, datagard installs new database named 'midgard'. To install new database, run datagard without any arguments:
datagard
If you need to create another database with self tuned configuration values, create own Midgard unified configuration and specify this configuration as datagard argument:
datagard -c myconfiguration
You will be asked very few questions, like hostname or host's port. Datagard provides sensible defaults which should be suitable in many cases.
This initial setup will create:
- Database
- Midgard Domain (Sitegroup)
- Apache Virtual Host
- Midgard Virtual Host
- Initial website with default style
Default Midgard Domain (sitegroup) administrator's username is admin. Password: password.
Midgard 1.8
Select "install" from the datagard menu:

You will be asked about the database name which you would like to create:

Right after that you will be asked about the Midgard database username and password. This data is used to create a MySQL account and to connect websites with the MySQL server.
All midgard packages which are included in midgard-data will be imported to the database. (Depending on your hardware, it may take from a few minutes up to twenty minutes.)
If You need and want to create a virtual host, answer "yes". This is important. If you say "no", midgard-data won't update your database to be ready to use with the Apache server, and you will be forced to update your database manually.

Read Creating a New Virtual Host for instructions on creating the virtual host.
