Find the Full Youtube Tutorial here Connect NiFi to any Database
jdbc:mysql://#{db_host}:#{db_port}/#{db_name}
com.mysql.jdbc.Driver
jdbc:postgresql://#{db_host}:#{db_port}/#{db_name}
com.mysql.jdbc.Driver
mkdir -p /<nifi home directory>/drivers
See how to setup NiFi toolkit here Setup NiFi Env
cd ApacheNifi
nifi import-param-context -i 'Database-Connection/parameter-context/mysql-config.json' -u http://localhost:8081
nifi import-param-context -i 'Database-Connection/parameter-context/postgres-config.json' -u http://localhost:8081
Note: - make sure you don`t commit your passwords :)