Configuring NiFi Registry Metadata Stores in MySQL
MySQL provides the option to use an externally located database that supports high availability.
Perform the following steps to use MySQL:
MySQL provides the option to use an externally located database that supports high availability.
Perform the following steps to use MySQL:
/path/to/drivers/mysql-connector-java-8.0.16.jar
mysql -u root
-p
).
CREATE DATABASE nifi_registry;
nifireg'@'<IP-ADDRESS>
, or nifireg'@'%
for any remote host).
GRANT ALL PRIVILEGES ON nifi_registry.* TO 'nifireg'@'localhost' IDENTIFIED BY 'changeme';
nifi.registry.db.url=jdbc:mysql://<MYSQL-HOSTNAME>/nifi_registry
nifi.registry.db.driver.class=com.mysql.cj.jdbc.Driver
nifi.registry.db.driver.directory=/path/to/drivers
nifi.registry.db.username=nifireg
nifi.registry.db.password=changeme