LSPS requires an lsps database with a dedicated user to store its system data. To set up such a database, do the following:
Create a database with the character encoding to UTF-8.
Example MySQL database setup with UTF-8
CREATE USER 'lsps' IDENTIFIED BY 'lsps';
CREATE DATABASE lsps DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_unicode_ci;
GRANT ALL PRIVILEGES ON lsps.* TO lsps@'';
GRANT XA_RECOVER_ADMIN ON *.* TO 'lsps'@''; -- not on MySQL 5
SET GLOBAL log_bin_trust_function_creators = 1; -- not on MySQL 5
FLUSH PRIVILEGES;
cli-tools$ java -jar lsps-db-migration-lsps-<VERSION>-full.jar --databaseUrl <DATABASE_URL> --user <DB_USER> --password <ESCAPED_DB_PASSWD>
(refer to documentation of the lsps-database migration script).cli-tools$ java -jar lsps-bam-migration-lsps-<VERSION>-full.jar --databaseUrl <DATABASE_URL> --user <DB_USER> --password <ESCAPED_DB_PASSWD>
my.cnf
or mysqld.conf
files: [mysqld]
max_allowed_packet=512M
default_time_zone="+0:00"