Oracle Linux 6.5 RPM安装Mysql 5.7.11

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Oracle Linux 6.5 RPM安装Mysql 5.7.11相关的知识,希望对你有一定的参考价值。

安装Oracle Liunx 6.5 开发包全部选择上 不然后面安装mysql报错
[[email protected] /]# cd /tool
[[email protected] tool]# tar -xvf mysql-5.7.11-1.el6.x86_64.rpm-bundle.tar
查看原来安装的Mysql  
[[email protected] /]# rpm -qa | grep mysql
mysql-5.1.71-1.el6.x86_64
mysql-devel-5.1.71-1.el6.x86_64
mysql-libs-5.1.71-1.el6.x86_64
mysql-server-5.1.71-1.el6.x86_64
qt-mysql-4.6.2-26.el6_4.x86_64

Mysql卸载从下往上顺序
[[email protected] /]# rpm -e –nodeps qt-mysql-4.6.2-26.el6_4.x86_64
[[email protected] /]# rpm -e –nodeps mysql-server-5.1.71-1.el6.x86_64
[[email protected] /]# rpm -e –nodeps mysql-libs-5.1.71-1.el6.x86_64
[[email protected] /]# rpm -e –nodeps mysql-devel-5.1.71-1.el6.x86_64
[[email protected] /]# rpm -e –nodeps mysql-5.1.71-1.el6.x86_64
[[email protected] /]# rpm -qa | grep mysql

安装Mysql安装顺序安装
[[email protected] tool]#rpm -ivh mysql-community-common-5.7.11-1.el6.x86_64.rpm
[[email protected] tool]#rpm -ivh mysql-community-libs-5.7.11-1.el6.x86_64.rpm
[[email protected] tool]#rpm -ivh mysql-community-client-5.7.11-1.el6.x86_64.rpm
[[email protected] tool]#rpm -ivh mysql-community-server-5.7.11-1.el6.x86_64.rpm

启动Mysql服务  
service mysqld start

查看MySQL服务器的状态
service mysqld status

生成随机密码
grep ‘temporary password’ /var/log/mysqld.log
2016-03-15T06:21:17.557372Z 1 [Note] A temporary password is generated for [email protected]: b/xE8hdZoEwJ

登陆mysql  
mysql -uroot -p  
b/xE8hdZoEwJ  系统随机密码

修改Mysql密码–一定要满足复杂性
mysql> ALTER USER ‘root’@’localhost’ IDENTIFIED BY ‘HanZheng.123’;
Query OK, 0 rows affected (0.00 sec)

重新登陆
mysql -uroot -p  
HanZheng.123


本文出自 “为梦想奋斗” 博客,谢绝转载!

以上是关于Oracle Linux 6.5 RPM安装Mysql 5.7.11的主要内容,如果未能解决你的问题,请参考以下文章

Oracle Linux 6.5安装Oracle 11gr2

oracle 11g之一 oracle linux 6.5 安装

Linux-Centos6.5-Oracle数据库安装-DNS安装

linux [CentOS 6.5]下安装oracle

在 Oracle Linux 6.5 上安装 Oracle 11g 单实例数据库

在redhat6.4上安装oracle和在6.5上安装一样么