在线下载mysql rpm_mysql 5.7 rpm下载

mysql 5.7 rpm是一款用于linux系统的mysql数据库的5.7版本,具有更加人性化的数据库服务功能,帮助用户们更加方便的进行数据库相关的开发工作.有需要的朋友就来IT猫扑下载吧!

centos 6.5 下安装MySQL 5.7.12 rpm方法

解压安装包

tar -xvf mysql-5.7.12-1.el6.x86_64.rpm-bundle.tar

移除已经安装的早期版本

如果不移除的话,会提示有冲突,版本可能有所不同

yum -y remove mysql-libs-5.1.73*

安装顺序

rpm -ivh mysql-community-common-5.7.12-1.el6.x86_64.rpm

rpm -ivh mysql-community-libs-5.7.12-1.el6.x86_64.rpm

rpm -ivh mysql-community-client-5.7.12-1.el6.x86_64.rpm

rpm -ivh mysql-community-server-5.7.12-1.el6.x86_64.rpm

rpm -ivh mysql-community-devel-5.7.12-1.el6.x86_64.rpm

启动Mysql服务

# service mysqld start

初始化 MySQL 数据库:                                      [确定]

Installing validate password plugin:                       [确定]

正在启动 mysqld:

修改管理员密码

查看初始管理员密码,下面的命令适用于 RHEL, oracle Linux, CentOS, and Fedora 平台:

grep 'temporary password' /var/log/mysqld.log

SLES平台使用下面的命令:

grep 'temporary password' /var/log/mysql/mysqld.log

你会发现初始密码超级的复杂,可以复制粘贴

# grep 'temporary password' /var/log/mysqld.log

2016-05-14T02:57:24.372528Z 1 [Note] A temporary password is generated for root@localhost: ?sSq8?.IucXV

[root@localhost /]#

[root@localhost /]# mysql -uroot -p?sSq8?.IucXV

mysql: [Warning] Using a password on the command line interface can be insecure.

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 15

Server version: 5.7.12

Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值