Search This Blog

Lets go..

Thursday

How to install MySQL in CentOS 6

Just run these commands ::
[root@db-tom ~]# yum install wget
[root@db-tom ~]# wget http://dev.mysql.com/get/mysql57-community-release-el6-7.noarch.rpm
[root@db-tom ~]# yum localinstall mysql57-community-release-el6-7.noarch.rpm
[root@db-tom ~]# yum repolist enabled | grep "mysql.*-community.*"
[root@db-tom ~]# yum install mysql-community-server
[root@db-tom ~]# service mysqld start
[root@db-tom ~]# grep 'temporary password' /var/log/mysqld.log
[root@db-tom ~]# mysql_secure_installation

Note : New password must have one capital letter+one special character+one number+one small letter

MySQL start/stop ::
[root@db-tom ~]# /etc/init.d/mysqld stop
[root@db-tom ~]# /etc/init.d/mysqld start
[root@db-tom ~]# /etc/init.d/mysqld restart
[root@db-tom ~]# /etc/init.d/mysqld status

No comments:

Post a Comment

Thanks for your opinion