[root@server1 ~]# vi /etc/yum.repos.d/mariadb.repo
[mariadb]
name = MariaDB
baseurl= http://yum.mariadb.org/10.5/centos8-amd64
module_hotfixes=1
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
[root@server1 ~]#
[root@server1 ~]# dnf -y install MariaDB-server
[root@server1 ~]# systemctl status mariadb
[root@server1 ~]# systemctl enable mariadb
[root@server1 ~]# systemctl start mariadb
[root@server1 ~]# mysqladmin -u root password '1234'
[root@server1 ~]# mysql -u root -p root
Enter password:
MariaDB [(none)]>
MariaDB [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| my_db |
| mysql |
| performance_schema |
| test |
+--------------------+
5 rows in set (0.001 sec)
'linux' 카테고리의 다른 글
centos - postfix (0) | 2020.12.28 |
---|---|
centos -dns 서버 설치 (0) | 2020.12.28 |
Centos -samba (0) | 2020.12.27 |
Centos - nfs 설정 (0) | 2020.12.27 |
centos linux -vsftpd 설정 (0) | 2020.12.26 |