Configuring MySQL
After installing the Unravel RPM, complete the following steps.
1. Copy the MySQL JDBC JAR to /usr/local/unravel/share/java/
.
sudo mkdir -p /usr/local/unravel/share/java sudo cp /tmp/mysql-connector-java-5.1.47/mysql-connector-java-5.1.47.jar /usr/local/unravel/share/java sudo cp /tmp/mysql-connector-java-5.1.47/mysql-connector-java-5.1.47.jar /usr/local/unravel/dlib/unravel
2. Configure Unravel to connect to the MySQL server.
Using mysql, create a database and user for Unravel.
mysql mysql> CREATE DATABASE unravel_mysql_prod; mysql> CREATE USER 'unravel-host' IDENTIFIED BY '
password
'; mysql> GRANT ALL PRIVILEGES ON unravel_mysql_prod.* TO 'unravel-host';Note
In the case of MySQL 8.0, the client does not support the authentication protocol requested by the server and there can be a failed connection to the database. Run the following to resolve this authentication issue:
ALTER USER
'unravel'
@'unravel-host'
IDENTIFIED WITH mysql_native_password BY'password'
;flush privileges;Where
unravel
is your user,unravel-host
is the URL, andpassword
is your password.In
/usr/local/unravel/etc/unravel.properties
, update the following properties:For example,
unravel.jdbc.username=unravel unravel.jdbc.password=
password
unravel.jdbc.url=jdbc:mysql://127.0.0.1:3306/unravel_mysql_prodImportant
If you installed MySQL 8.0, add:
unravel.jdbc.url.params=disableMariaDbDriver
Create a schema for Unravel tables.
sudo /usr/local/unravel/dbin/db_schema_upgrade.sh