LSPS documentation logo
LSPS Documentation
Setting up the Database

LSPS requires an lsps database with a dedicated user to store its system data. To set up such a database, do the following:

  1. Make sure the database is supported by your application server.
  2. Create a database with the character encoding to UTF-8.

    Example MySQL database setup with UTF-8

    CREATE DATABASE lsps DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
    GRANT ALL PRIVILEGES ON lsps.* TO lsps@'' IDENTIFIED BY 'lsps'; 
    FLUSH PRIVILEGES;
  3. Initialize the database with the db-migration tool from the runtime suite: ./migrate.sh databaseUrl:<DATABASE_URL> user:<DB_USER> password:<ESCAPED_DB_PASSWD> (for details, refer to migratescriptparams).
  4. Configure your database:
    • Microsoft SQL server:
    • On MySQL, set the allowed packet size to 512 MBs and the default time zone in the configuration file of your mysql server, typically, the my.cnf or mysqld.conf files:
      [mysqld] 
        max_allowed_packet=512M
        default_time_zone='+0:00'