You must have MySQl or Mariadb installed and running to use IMPS. IMPS cannot install a database server for you -- once that part is done, everything else described below (creating the database, the database user, and IMPS's tables) can be done for you automatically by the in-app setup wizard.
The first time you open IMPS in a browser, it will take you to the Welcome to IMPS setup wizard instead of the normal home page. This wizard walks you through everything needed to get a new install running:
None of this requires editing imps_config.toml by hand or restarting the server -- the wizard writes your settings to that file for you and reloads them immediately.
If you'd rather not use the wizard, you can set up the database yourself using the SQL files included with IMPS.
The deploy/setup.sql file creates the database and a database user with the permissions IMPS needs. While the file has a default username and password provided, you should edit the file to change these to something unique to your IMPS install for security purposes.
The line to edit is:
CREATE USER IF NOT EXISTS 'box_user'@'localhost'
IDENTIFIED BY 'box_pass';
Change box_user and box_pass, then use
those same values later, either when the setup wizard's Database
connection page asks for your credentials, or directly in
imps_config.toml if you're skipping the wizard entirely.
Setup database on MySQL / Mariadb
sudo mysql -u root < deploy/setup.sqlmysql -u box_user -p box_db < deploy/schema.sqlMost people are better served by the setup wizard above -- it does the same thing without needing you to run SQL by hand.