Installation des MySQL Servers in CentOS 7/ RHEL 7

Schritt-für-Schritt-Anleitung

  1. Download und Installation des Yum Repo Packages
  2. Installation des mySQL-Servers
  3. Download des Repo-Packages und Installation der MariaDB

 

1. Download des Yum Repo packages von mySQL Server 5.6

yum install wget
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
rpm -ivh mysql-community-release-el7-5.noarch.rpm
[root@localhost ~]# ls -1 /etc/yum.repos.d/mysql-community*
/etc/yum.repos.d/mysql-community.repo
/etc/yum.repos.d/mysql-community-source.repo
[root@localhost ~]#

2. Installation des mySQL Servers

yum install mysql-server

Im Falle der Nutzung der MariaDB bitte das Repo-Package der MariaDB herunterladen und installieren

3. Download des Repo-Packages und Installation der MariaDB

wget -O /etc/yum.repos.d/MariaDB.repo http://mariadb.if-not-true-then-false.com/centos/$(rpm -E %centos)/$(uname -i)/10
yum install mariadb-server

Verwandte Artikel