Installation de MariaDB sur Redhat
/etc/yum.repos.d/MariaDB.repo :
1 2 3 4 5 6 7 |
# MariaDB 10.3 RedHat repository list - created 2019-01-11 14:04 UTC # http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.3/rhel7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 |
1 |
yum install mariadb-server |
1 2 |
systemctl enable mariadb systemctl start mariadb |
1 |
mysql_secure_installation |
1 |
mysql -u root -p |
1 2 3 |
create database sas; create user 'usas'@localhost identified by 'xxx'; grant all on sas.* to 'usas' identified by 'xxxx'; |
1 |
mysql -u usas -p sas |