Topic on Project:Support desk

Setup a MW Database by existing LocalSettings.php

4
Carchaias (talkcontribs)

Is it possible to create an new MW Database from an existing LocalSettings.php file with /maintenance/install.php

In

Manual:Install.php

There is the parameter --conf . When I give an existing modified LocalSettings.php to it, will it create the database with the containing settings? I only need a new empty Database but want to keep my customised LocalSettings.php.

Ciencia Al Poder (talkcontribs)

Last time I checked, no, there's no way to create the database with the existing configuration from LocalSettings.php. The install.php script is the only one that explicitly ignores the LocalSettings.php file

Carchaias (talkcontribs)

OK. What might be the best way to solve this task? Use install.php with parameters on CLI?

Ciencia Al Poder (talkcontribs)

Yes. Use install.php as seen in the example, and then update.php to populate changes from extensions

Reply to "Setup a MW Database by existing LocalSettings.php"