Set up a database
You choose and set up a database to use as the metastore for Apache Druid (incubating).
You choose and set up a database to use as the metastore for Apache Druid (incubating).
On Centos 7.4, for example:
yum install https://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm
yum install mysql-community-server
systemctl start mysqld.service
grep 'A temporary password is generated for root@localhost' \
/var/log/mysqld.log |tail -1
/usr/bin/mysql_secure_installation
CREATE USER 'druid'@'%' IDENTIFIED BY '<DRUIDPASSWORD>';
GRANT ALL PRIVILEGES ON *.* TO 'druid'@'%’;
GRANT ALL PRIVILEGES ON *.* TO 'druid'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;
CREATE DATABASE druid DEFAULT CHARACTER SET utf8;