Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
SlideShare a Scribd company logo
How To Install MySQL / MariaDB Server on CentOS 7
i | P a g e
Contents
Overview.......................................................................................................................................................1
Applies To......................................................................................................................................................1
Install MariaDB Server ..................................................................................................................................1
Install MariaDB Server – Download..........................................................................................................1
Install MariaDB Server – Installation Status..............................................................................................2
Install MariaDB Server – Package Listing..................................................................................................2
Install MariaDB Server – Start Daemon ....................................................................................................3
Install MariaDB Server – Status Daemon..................................................................................................3
Install MariaDB Server – Enable Daemon.................................................................................................4
Install MariaDB Server – Connect MySQL.................................................................................................4
How To Install MySQL / MariaDB Server on CentOS 7
1 | P a g e
Overview
The purpose of this guide is to install MySQL database server on CentOS 7.
Applies To
CentOS 7, RHEL 7
Install MariaDB Server
First step that we need to perform is to install MariaDB Server, which is inline replacement for MySQL
Server. To start the installation of the mariadb-server.
yum install mariadb-server mariadb
Install MariaDB Server – Download
After package dependency is resolved, accept the package download and installation.
How To Install MySQL / MariaDB Server on CentOS 7
2 | P a g e
Install MariaDB Server – Installation Status
After the package is downloaded, installation will be completed.
Install MariaDB Server – Package Listing
Run the rpm query package list; run the below command.
rpm -qa | grep maria
How To Install MySQL / MariaDB Server on CentOS 7
3 | P a g e
Install MariaDB Server – Start Daemon
Start the “mariadb” server daemon, run the below command.
systemctl start mariadb
Install MariaDB Server – Status Daemon
Check the status “mariadb” server daemon, run the below command, if the daemon is running “Active:
active (running)”.
systemctl status mariadb
How To Install MySQL / MariaDB Server on CentOS 7
4 | P a g e
Install MariaDB Server – Enable Daemon
After installation the init script “openfire” will be copied to the /etc/init.d/ folder. To enable in it in specific
run levels run the below command, default in runlevel 345 it will turn on when you enable the service.
systemctl enable mariadb
Install MariaDB Server – Connect MySQL
Login to the server, run the command “mysql” . You will be connected to the server.
mysql

More Related Content

How to Install MariaDB Server or MySQL Server on CentOS 7

  • 1. How To Install MySQL / MariaDB Server on CentOS 7 i | P a g e Contents Overview.......................................................................................................................................................1 Applies To......................................................................................................................................................1 Install MariaDB Server ..................................................................................................................................1 Install MariaDB Server – Download..........................................................................................................1 Install MariaDB Server – Installation Status..............................................................................................2 Install MariaDB Server – Package Listing..................................................................................................2 Install MariaDB Server – Start Daemon ....................................................................................................3 Install MariaDB Server – Status Daemon..................................................................................................3 Install MariaDB Server – Enable Daemon.................................................................................................4 Install MariaDB Server – Connect MySQL.................................................................................................4
  • 2. How To Install MySQL / MariaDB Server on CentOS 7 1 | P a g e Overview The purpose of this guide is to install MySQL database server on CentOS 7. Applies To CentOS 7, RHEL 7 Install MariaDB Server First step that we need to perform is to install MariaDB Server, which is inline replacement for MySQL Server. To start the installation of the mariadb-server. yum install mariadb-server mariadb Install MariaDB Server – Download After package dependency is resolved, accept the package download and installation.
  • 3. How To Install MySQL / MariaDB Server on CentOS 7 2 | P a g e Install MariaDB Server – Installation Status After the package is downloaded, installation will be completed. Install MariaDB Server – Package Listing Run the rpm query package list; run the below command. rpm -qa | grep maria
  • 4. How To Install MySQL / MariaDB Server on CentOS 7 3 | P a g e Install MariaDB Server – Start Daemon Start the “mariadb” server daemon, run the below command. systemctl start mariadb Install MariaDB Server – Status Daemon Check the status “mariadb” server daemon, run the below command, if the daemon is running “Active: active (running)”. systemctl status mariadb
  • 5. How To Install MySQL / MariaDB Server on CentOS 7 4 | P a g e Install MariaDB Server – Enable Daemon After installation the init script “openfire” will be copied to the /etc/init.d/ folder. To enable in it in specific run levels run the below command, default in runlevel 345 it will turn on when you enable the service. systemctl enable mariadb Install MariaDB Server – Connect MySQL Login to the server, run the command “mysql” . You will be connected to the server. mysql