First check and remove the original mariadb
1. Uninstall mariadb:yum remove mariadb
2, delete a profile:rm -f /etc/my.cnf
3, delete the data directory:rm -rf /var/lib/mysql/
we /etc/yum.repos.d/MariaDB.repo
Add about content
[mariadb]
name = MariaDB
baseurl = http://mirrors.aliyun.com/mariadb/yum/10.4/centos7-amd64/
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
enabled=1
gpgcheck=1
yum -y install MariaDB-server MariaDB-client
- ip a URL is not displayed, CentOS 7 NIC did not start (ONBOOT = no), this one changed to YES (ONBOOT = yes), cd / etc / sysconfig / network-scripts / cat ifcfg-ens33
- Or because your (VMware DHCP Service) This service is not open, enter Computer Management - "Services and Applications -" service to find VMware DHCP Service to open the line hey ----