# create Repository
/etc/yum.repos.d/MariaDB.repo
# MariaDB 10.3 CentOS repository list - created 2018-05-25 19:02 UTC
#
[mariadb]
name = MariaDB
baseurl =
gpgkey=
gpgcheck=1
# start install
sudo yum install MariaDB-server MariaDB-client
# start service
sudo systemctl enable mariadb
sudo systemctl start mariadb
# check status
sudo systemctl status mariadb
# run secure
sudo mysql_secure_installation
#connect to database
mysql -u root -p
# show tables
SHOW DATABASES;
# allow firewall
firewall-cmd --zone=public --add-port=55555/tcp --permanent
firewall-cmd --reload
# allow Remote
GRANT ALL PRIVILEGES ON *.* TO 'USERNAME'@'%' IDENTIFIED BY 'PASSWORD' WITH GRANT OPTION;
FLUSH PRIVILEGES;
FLUSH HOSTS;
0 Comments