linux CentOS6.5 yum安装mysql 5.6
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux CentOS6.5 yum安装mysql 5.6相关的知识,希望对你有一定的参考价值。
直接按步骤安装
# wget # rpm -ivh mysql-community-release-el6-5.noarch.rpm [[email protected] ~]# yum repolist all | grep mysql 查看一下是否已经有mysql可安装文件 mysql-connectors-community MySQL Connectors Community enabled: 36 mysql-connectors-community-source MySQL Connectors Community - So disabled mysql-tools-community MySQL Tools Community enabled: 47 mysql-tools-community-source MySQL Tools Community - Source disabled mysql55-community MySQL 5.5 Community Server disabled mysql55-community-source MySQL 5.5 Community Server - So disabled mysql56-community MySQL 5.6 Community Server enabled: 358 mysql56-community-source MySQL 5.6 Community Server - So disabled mysql57-community-dmr MySQL 5.7 Community Server Deve disabled mysql57-community-dmr-source MySQL 5.7 Community Server Deve disabled
yum 安装即可
[[email protected] ~]# yum install mysql-community-server -y 安装成功后 # service mysqld start 设置root密码 # mysql -u root # use mysql; # update user set password=PASSWORD("这里输入root用户密码") where User=‘root‘; # flush privileges; mysql安全设置 # mysql_secure_installation 设置开启自启动命令 # chkconfig mysqld on
本文出自 “xiangcun168” 博客,请务必保留此出处http://xiangcun168.blog.51cto.com/4788340/1928907
以上是关于linux CentOS6.5 yum安装mysql 5.6的主要内容,如果未能解决你的问题,请参考以下文章
linux CentOS6.5 yum安装mysql 5.6
linux CentOS6.5 yum安装mysql 5.6