RedHat 7.2上通过RPM包安装MySQL 5.7.20的详细步骤
下面讲讲关于RedHat 7.2上通过RPM包安装Mysql 5.7.20的详细步骤,文字的奥妙在于贴近主题相关。所以,闲话就不谈了,我们直接看下文吧,相信看完RedHat 7.2上通过RPM包安装mysq
下面讲讲关于RedHat 7.2上通过RPM包安装Mysql 5.7.20的详细步骤,文字的奥妙在于贴近主题相关。所以,闲话就不谈了,我们直接看下文吧,相信看完RedHat 7.2上通过RPM包安装mysql 5.7.20的详细步骤这篇文章你一定会有所受益。
一、安装环境
1、操作系统版本:Red Hat Enterprise linux Server release 7.2 (Maipo)
2、Mysql版本:mysql-5.7.20-1.el7.x86_64.rpm-bundle.tar
二、安装说明
1、官网上关于mysql 5.7的各个rpm包的说明如下:
2、官网上关于mysql5.7用rpm包安装的各个路径说明如下:
3、官网上关于标准安装需要安装哪些rpm包的说明如下:
4、官网上关于安装后初始化的说明:使用rpm包安装后会在第一次启动服务时自动完成初始化,无需再手动执行初始化操作
三、安装过程
1、解压mysql-5.7.20-1.el7.x86_64.rpm-bundle.tar
2、卸载掉系统中的mariadb-libs
3、按照下图顺序依次安装各个rpm包,各个rpm包之间有依赖关系,最后安装mysql-commUnity-server-5.7.20-1.el7.x86_64.rpm时报缺少相关依赖包,使用yum装上,再安装就没问题了
4、查看mysql的相关目录,是空的
5、安装完后mysql服务已经enable,但是没有启动,启动它
6、启动mysql服务后,日志如下:其中记录了随机生成的初始root密码“A temporary passWord is generated for root@localhost: urq2&OKwZd,t”
2018-04-18T10:31:46.894089Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-04-18T10:31:50.089964Z 0 [Warning] InnoDB: New log files created, LSN=45790
2018-04-18T10:31:50.319434Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2018-04-18T10:31:50.380647Z 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: b44683a6-42f3-11e8-8b54-000c29ffe62f.
2018-04-18T10:31:50.382406Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2018-04-18T10:31:50.383390Z 1 [Note] A temporary password is generated for root@localhost: urq2&OKwZd,t
2018-04-18T10:31:54.678495Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-04-18T10:31:54.679697Z 0 [Note] /usr/sbin/mysqld (mysqld 5.7.20) starting as process 2954 ...
2018-04-18T10:31:54.685450Z 0 [Note] InnoDB: PUNCH HOLE support available
2018-04-18T10:31:54.685476Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-04-18T10:31:54.685479Z 0 [Note] InnoDB: Uses event mutexes
2018-04-18T10:31:54.685481Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2018-04-18T10:31:54.685483Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2018-04-18T10:31:54.685486Z 0 [Note] InnoDB: Using Linux native AIO
2018-04-18T10:31:54.685708Z 0 [Note] InnoDB: Number of pools: 1
2018-04-18T10:31:54.685812Z 0 [Note] InnoDB: Using CPU crc32 instructions
2018-04-18T10:31:54.739376Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2018-04-18T10:31:54.753795Z 0 [Note] InnoDB: Completed initialization of buffer pool
2018-04-18T10:31:54.758522Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2018-04-18T10:31:54.772576Z 0 [Note] InnoDB: Highest supported file fORMat is Barracuda.
2018-04-18T10:31:54.793537Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2018-04-18T10:31:54.793646Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2018-04-18T10:31:54.952587Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2018-04-18T10:31:54.955544Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2018-04-18T10:31:54.955610Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2018-04-18T10:31:54.957052Z 0 [Note] InnoDB: Waiting for purge to