• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

How to install mysql server in RedHat and CentOS

March 7, 2013 by Sharad Chhetri Leave a Comment

In this post we will learn about,how to install mysql server in RedHat and CentOS. MySQL is a relational database management system (RDBMS), and ships with no GUI tools to administer MySQL databases or manage data contained within the databases.
Read More About MySQL Server

By-Default Port no. of MySQL : 3306 (It is a TCP based protocol)

In Red Hat or CentOS install the MySQL Server by following command

yum install -y mysql-server

To start/stop/restart the mysql-server

To Start the MySQL server : /etc/init.d/mysqld start

To Stop the MySQL Server : /etc/init.d/mysqld stop

To Restart the MySQL Server : /etc/init.d/mysqld restart

To Check the status of MySQL Server : /etc/init.d/mysqld status

How To Check on which port no. the mysql is running

# netstat -tanp|grep mysqld
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 17925/mysqld

The output of netstat command shows the MySQL server is running at port no. 3306 in localhost IP Address(127.0.0.1) ,it is Listening and have the PID no. 17925 with program name mysqld

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. Find mysql commands history without mysql server login
  2. How to install MySQL Server 5.6 on CentOS 7 / RHEL 7
  3. How to Install awstat in Redhat and CentOS
  4. Install MySQL Server 5.6 in CentOS 6.x and Red Hat 6.x Linux
  5. How to change hostname or FQDN in CentOS and Redhat
  6. How to check default storage engine in MySQL server
  7. Set delay replication to MySQL slave server
  8. How to install mysql server 5.6 on Ubuntu 14.04 LTS ( Trusty Tahr )
  9. How to install MySQL Server 5.7 on Ubuntu 14.04 LTS
  10. How to reset forgot root password in CentOS 6.x and Redhat 6.x

Filed Under: Database Server, Linux, mysql, Server Tagged With: mysql

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Linux Commands

awk command to search keyword or strings in file

How to lock and unlock user account in linux

Install lxml by using pip command on Ubuntu 14.04 LTS

How to rename and move the directory and files in linux

grep command to find multiple strings or keyword from file

Yum command to download rpm file without installing in linux system

print working directory ( pwd , PWD , OLDPWD ) in Linux / Unix

Explore 70+ Articles On Linux Commands

Always Useful Tips And Tricks

How to find swap partition or file in linux

How to configure htdigest in nagios server

Read the file inside compressed .gz files without extract

postgres database backup script using database user password inside

How to encode and decode the strings with base64

How to add/install Ubuntu fonts in CentOS/Red Hat Linux

Edit the crontab without using crontab -e

Explore 90+ Article On "Linux Tips And Tricks"

You Might Like These Articles!

Internal External Command

What is Linux/Unix Internal And External Command

Linux basic command

Linux Basic Commands For Every Beginner

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission but Schools and Colleges can do in their Private Network
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy