1、检测mysql是否安装及卸载自带的mysql

yum list installed | grep mysql

yum -y remove mysql-libs.x86_64

Centos6.8 yum安装安装MySql5.6

2、安装及配置

wget http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm

rpm -ivh mysql-community-release-el6-5.noarch.rpm

yum repolist all | grep mysql

Centos6.8 yum安装安装MySql5.6

2.1、安装mysql数据库

yum install mysql-community-server -y

2.2、设置开机自启

chkconfig --list | grep mysqld

chkconfig mysqld on

2.3、启动mysq

service mysqld start

2.4、给root用户设置密码

/usr/bin/mysqladmin -u root password 'root'

2.5、远程连接授权,命令登录mysql服务器后使用

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIEDBY 'root' WITH GRANT OPTION;
Centos6.8 yum安装安装MySql5.6

相关文章:

  • 2021-12-26
  • 2021-05-05
  • 2022-12-23
  • 2021-10-16
  • 2021-11-05
  • 2021-10-20
  • 2021-05-18
猜你喜欢
  • 2022-12-23
  • 2021-06-27
  • 2021-10-29
  • 2021-09-13
  • 2021-07-05
  • 2022-01-18
  • 2022-12-23
相关资源
相似解决方案