• centosblog_icon_b_64

Install MySQL Server on CentOS

This quick tutorial will describe how to install MySQL on your CentOS 5 or CentOS 6 server.

MySQL server and MySQL client are available from the standard CentOS repository.

1. Install MySQL server and MySQL client
yum install mysql-server mysql
2. Start the MySQL service
/etc/init.d/mysql start
 3. Run MySQL secure installation
/usr/bin/mysql_secure_installation

Accept the defaults for all options, and set the root password when prompted.

4. Make sure MySQL auto-starts upon a reboot
chkconfig mysqld on

[line]

Install MySQL Server on CentOS Video Tutorial:

Scan to Donate Bitcoin
Like this? Donate Bitcoin to at:
Bitcoin 14M4a7UHEX61VoHkyjj4dxbUBNGGz3hmhM
Donate
Share This Post

About Author: Curtis K

Hi! My name is Curtis, and I am the creator of CentOS Blog. Please feel free to comment any suggestions, feedback or questions on my posts!

  • Jonathan Sundqvist

    This didn’t work.

    [root@ ~]# /etc/init.d/mysql start
    -bash: /etc/init.d/mysql: No such file or directory

  • nirav sanghavi

    use /etc/init.d/mysqld restart