Notes on setting up the database


Prerequisites

You must have MySQl or Mariadb running to use IMPS. Once you have a working installation of your database server, you will need a database for IMPS to use and a user/password combination for a user that has permissions to that db.

The setup.sql file included with IMPS contains the necessary commands to create and structure the IMPS database and to create a user with the necessary permissions. 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

Setup database on MySQL / Mariadb

  1. sudo mysql -u root
  2. mysql> source static/backups/setup.sql
  3. quit;