How to Install MySQL on CentOS 7 using PuTTY?

puttykeyinfoputtykeyinfo
2 min read

MySQL is a popular open-source relational database management system (RDBMS) that is used in a variety of web applications and server environments. The package manager yum is used to obtain and install the essential software packages when installing MySQL on CentOS 7.

PuTTY, a popular SSH client, allows for a secure remote connection to the CentOS server, enabling command-line interaction and administration.

Explore how to establish the key based authentication to Docker container by using PuTTY.

To install MySQL on CentOS 7 using PuTTY, you can use the package manager yum. Here are step-by-step instructions:

Connect to Your CentOS Server via PuTTY:

Open PuTTY, enter the IP address or hostname of your CentOS 7 server.

Set the connection type to SSH and port to 22.

Click on Open establish an SSH connection.

Update the System:

Before installing MySQL, update the system packages to fix the bugs:

sudo yum update

Install MySQL Server:

To install the MySQL server use command:

sudo yum install mysql-server

Start MySQL Service:

After the installation is complete, start the MySQL service and enable it to start on boot:

sudo systemctl start mysqld

sudo systemctl enable mysqld

Secure MySQL:

Run the MySQL secure installation script to set the root password and enhance security:

sudo mysql_secure_installation

Access MySQL:

You can now access MySQL using the MySQL client. To log in, use the following command:

mysql -u root -p

Enter the password when prompted.

Installing MySQL on CentOS 7 using PuTTY is an essential step in establishing a reliable database system on a Linux server.

It allows users to efficiently store and retrieve data, improving the functionality of web applications, server-based projects, and more. This summary provides an overview of the major processes, by using PuTTY for safe and efficient remote server administration.

0
Subscribe to my newsletter

Read articles from puttykeyinfo directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

puttykeyinfo
puttykeyinfo

puttykeyinfo is your full stop about putty.