MariaDB Installation on CentsOS7
Setup a Maria DB Server on CentOS7:
yum -y install mariadb-server mariadb systemctl enable mariadb systemctl status mariadb mysqlCreate MariaDB Server admin password:
mysqladmin -u root password
Config external access from remote host/Tool to database Server:
cd /etc/my.cnf.d vi server.cnf
Set to [mysqld] block:
[mysqld] bind-address = 0.0.0.0
Create User with external access rights:
mysql -u root -pGrant all privileges to database server admin user from extern!!create user ‘root’@’%’ IDENTIFIED BY ‘ ’; grant all on test to ‘root’@’%’; flush privileges;
Be careful!
GRANT ALL PRIVILEGES ON . TO ‘root’@’%’ with grant option; flush privileges;