Install directly by step
# wget # rpm -ivh mysql-community-release-el6-5.noarch.rpm[[email protected] ~]# yum repolist all | grep mysql Check to see if you already have MySQL installable files mysql-connectors-community mysql connectors community enabled: 36mysql-connectors-community-source mysql connectors community - so disabledmysql-tools-community Mysql tools community enabled: 47mysql-tools-community-source mysql tools Community - Source disabledmysql55-community mysql 5.5 community server disabledmysql55-community-source MySQL 5.5 Community Server - So disabledmysql56-community MySQL 5.6 Community Server enabled: 358mysql56-community-source MySQL 5.6 community server - so disabledmysql57-community-dmr MySQL 5.7 Community Server Deve disabledmysql57-community-dmr-source mysql 5.7 community Server deve disabled
Yum installation can
[[email protected] ~]# Yum install mysql-community-server-y after successful installation # service mysqld start set root password # mysql-u root# use MySQL ; # Update user set Password=password ("Enter the root user password here") where user= ' root '; # flush privileges; MySQL Security settings # mysql_secure_installation setting on self-launch command # Chkconfig mysqld on
This article is from the "xiangcun168" blog, make sure to keep this source http://xiangcun168.blog.51cto.com/4788340/1928907
Linux CentOS6.5 yum install MySQL 5.6