CENTOS7使用rpm方式安装mysql5.7.18

标签: centos mysql rpm
1935人阅读 评论(0) 收藏 举报

1、# yum install libaio  //mysql依赖包

2、# rpm -ivh mysql-community-libs-5.7.17-1.el6.x86_64.rpm  mysql-community-client-5.7.17-1.el6.x86_64.rpm mysql-community-common-5.7.17-1.el6.x86_64.rpm mysql-community-server-5.7.17-1.el6.x86_64.rpm  //安装mysql

3、#/etc/init.d/mysqld start  //开启mysql

Starting mysqld (via systemctl):                 [  OK  ]//开启成功

4、#cat /var/log/mysqld.log  //查看mysql的初始密码

2017-04-12T08:08:09.129189Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2017-04-12T08:08:10.300168Z 0 [Warning] InnoDB: New log files created, LSN=45790
2017-04-12T08:08:10.376838Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2017-04-12T08:08:10.394301Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 2b1bbadd-1f57-11e7-a13b-f23c91bcd804.
2017-04-12T08:08:10.395575Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2017-04-12T08:08:10.397081Z 1 [Note] A temporary password is generated for root@localhost:VIsoqx.z:4!L(密码)
2017-04-12T08:08:12.994015Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

5、#mysql -u root -p VIsoqx.z:4!L  //登录mysql

6、ALTER USER 'root'@'localhost' IDENTIFIED BY 'your_new_password';

至此,mysql安装配置成功

以下命令是开启mysql的远程访问:

UPDATE user SET HOST = '%' WHERE USER ='root';

FLUSH PRIVILEGES; 

查看评论

centos7使用rpm安装mysql

折腾了两天,走了好多弯路,终于安装上mysql了,希望这篇博客帮个各个博友少走弯路,顺利安装mysql。准备: centos 7.2_64位的,如果不清楚自己系统的位数,可以通过file /bin...
  • qq_31382921
  • qq_31382921
  • 2016-12-16 17:50:27
  • 2604

CentOS7下安装mysql-5.7.18

本文参考了: http://blog.csdn.net/peng314899581/article/details/70241976 http://www.cnblogs.com/pythonal/p...
  • heting717
  • heting717
  • 2017-05-11 18:20:41
  • 2156

Centos7使用rpm包安装mysql5.7.18

最近一直使用mysql,mysql-Linux下安装写了使用其他方式安装mysql,这次主要采用rpm格式来安装,试了一下感觉这种安装模式比较简单。 卸载MariaDB centos7默认安装Mari...
  • u013038643
  • u013038643
  • 2017-07-17 09:14:13
  • 748

linux-centos7安装mysql5.7.21步骤

linux centos7 安装mysql5.7.12   一.下载Mysql版本 1) 打开百度搜索,输入MySQL,第一个是MySQL官网 2) 点击第一个链接地址,进入MySQL...
  • ywmxyz123456
  • ywmxyz123456
  • 2018-01-25 15:51:49
  • 3671

centos7.2下安装mysql5.7,使用rpm包安装

转载,向原著致敬
  • guotao521
  • guotao521
  • 2017-02-06 13:21:42
  • 1125

Linux 使用rpm方式安装最新mysql(5.7.17)完整步骤

Linux 使用rpm方式安装最新mysql(5.7.16)步骤以及常见问题解决(接上一篇)1、下载以及前面的rpm安装步骤请参照 Linux 使用rpm方式安装最新mysql(5.7.16)步骤以及...
  • qq_33663251
  • qq_33663251
  • 2017-01-23 14:07:06
  • 1884

windows 10 下MySQL 5.7.18安装教程

一、 1、MySQL下载:http://www.mysql.com/进入页面Download Download MySQL Community Server 选择你想要的版本进行下载 这里我选...
  • Vincentlmeng
  • Vincentlmeng
  • 2017-04-13 17:54:06
  • 28211

MySQL5.7.18下载和安装过程

MySql下载 1、打开官网找到下载路口,这里直接给出下载的地址 https://dev.mysql.com/downloads/mysql/   2、选择64位版本   3、直接下载 ...
  • cc297322716
  • cc297322716
  • 2017-07-20 10:32:18
  • 431

MySQL5.7.18 源码安装详细步骤

MySQL5.7.18 源码安装详细步骤 一:操作系统环境和目录结构 [root@mysql3 ~]# cat /etc/redhat-release Red Hat Enter...
  • Hwh1231
  • Hwh1231
  • 2017-05-08 17:51:40
  • 5831

Centos7下RPM方式安装mysql-5.6.24

1.下载地址:http://downloads.mysql.com/archives/community/ 2.下载的是bundle版本的安装包,包含内容如下 3.放入Centos下解压安装,一般情...
  • u013276589
  • u013276589
  • 2016-06-08 15:57:17
  • 2118
    个人资料
    持之以恒
    等级:
    访问量: 14万+
    积分: 2110
    排名: 2万+
    最新评论