Commit 833a68ce authored by Frank Winkler's avatar Frank Winkler

Added mariadb instructions.

parent 013123e9
......@@ -94,3 +94,34 @@ Add MariaDB access port to your firewall policy, e.g. for RHEL with
firewall-cmd --zone=public --permanent --add-port=3306/tcp
systemctl restart firewalld
Create a database and an admin user using the mysql shell:
CREATE DATABASE pika;
CREATE USER 'admin'@'localhost' IDENTIFIED BY 'password';
GRANT USAGE ON *.* TO 'admin'@'localhost' IDENTIFIED BY 'password';
GRANT ALL privileges ON pika.* TO 'admin'@'localhost';
FLUSH PRIVILEGES;
CREATE USER 'admin'@'%' IDENTIFIED BY 'password';
GRANT USAGE ON *.* TO 'admin'@'%' IDENTIFIED BY 'password';
GRANT ALL privileges ON pika.* TO 'admin'@'%';
FLUSH PRIVILEGES;
Import all tables into the pika database:
mysql -u admin -p pika < install/server_node/pika_structure.sql
Add user with only read permission on pika database using the mysql shell:
CREATE USER 'user'@'localhost' IDENTIFIED BY 'password';
GRANT USAGE ON *.* TO 'user'@'localhost' IDENTIFIED BY 'password';
GRANT SELECT ON pika.* TO 'user'@'localhost';
FLUSH PRIVILEGES;
CREATE USER 'user'@'%' IDENTIFIED BY 'password';
GRANT USAGE ON *.* TO 'user'@'%' IDENTIFIED BY 'password';
GRANT SELECT ON pika.* TO 'user'@'%';
FLUSH PRIVILEGES;
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment