centos7.5安装公版mysql5.7.25
#########
卸载原来系统安装的包
# yum remove -y java cvs libselinux-devel postgresql mysql ecj jna sinjdoc
依赖包安装
# yum install -y numactl git lrzsz screen make cmake gcc gcc-c++ libaio libaio-devel automake autoconf bzr bison libtool ncurses-devel ncurses vim numactl-devel sendmail perl-CPAN perl-Time-HiRes perl-LWP-Authen-Negotiate patch cpan perl-DBD-MySQL perl-YAML perl-File-Which perl-DBI perl-Digest-SHA1 perl-Time-HiRes perl-LWP-Authen-Negotiate bind-utils zlib-devel perl-Config-Tiny perl-Log-Dispatch perl-Parallel-ForkManager perl-JSON.noarch openssh-server openssh rsyslog perl openssl openssl-devel libgcrypt-devel
# make cmake automake autoconf gcc gcc-c++ vim git lrzsz sendmail ntp bzr bzip flex bison patch cpan rsyslog numactl screen bind-utils coreutils glib2 mpstat dstat sysstat e4fsprogs xfsprogs
# libaio libaio-devel
# libgcrypt-devel
# libxml2-devel
# libxslt-devel
# ncurses ncurses-devel
# openssh openssh-server openssl openssl-devel
# zlib-devel
# numactl-devel
# perl perl-devel perl* perl-ExtUtils*
# openldap-devel
# python-devel
# tcl-devel
# curl-devel
# expat-devel
# gettext-devel
############初始化
./bin/mysqld --defaults-file=/home/cdrom/work/mysql_3307/etc/my.cnf --initialize-insecure --user=work --basedir=/home/cdrom/work/mysql_3307
# 执行过程详细情况如下:
[work@a8-dba-cloud-db00.wh log]$ tail -f mysql.err
--22T22::35.617244+: [Note] InnoDB: Setting file './ibdata1' size to MB. Physically writing the file full; Please wait ...
--22T22::35.617619+: [Note] InnoDB: Progress in MB: --22T22::36.505698+: [Note] InnoDB: File './ibdata1' size is now MB.
--22T22::36.506527+: [Note] InnoDB: Setting log file ./ib_logfile101 size to MB
--22T22::36.506768+: [Note] InnoDB: Progress in MB: --22T22::20.789304+: [Note] InnoDB: Setting log file ./ib_logfile1 size to MB
--22T22::20.789537+: [Note] InnoDB: Progress in MB: --22T22::08.483251+: [Note] InnoDB: Setting log file ./ib_logfile2 size to MB
--22T22::08.483529+: [Note] InnoDB: Progress in MB: --22T22::55.159211+: [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
--22T22::55.160086+: [Warning] InnoDB: New log files created, LSN=
--22T22::55.160129+: [Note] InnoDB: Creating shared tablespace for temporary tables
--22T22::55.160256+: [Note] InnoDB: Setting file './ibtmp1' size to MB. Physically writing the file full; Please wait ...
--22T22::55.196141+: [Note] InnoDB: File './ibtmp1' size is now MB.
--22T22::55.196576+: [Note] InnoDB: Doublewrite buffer not found: creating new
--22T22::55.213558+: [Note] InnoDB: Doublewrite buffer created
--22T22::55.226037+: [Note] InnoDB: redo rollback segment(s) found. redo rollback segment(s) are active.
--22T22::55.226103+: [Note] InnoDB: non-redo rollback segment(s) are active.
--22T22::55.227122+: [Warning] InnoDB: Creating foreign key constraint system tables.
--22T22::55.236668+: [Note] InnoDB: Foreign key constraint system tables created
--22T22::55.236822+: [Note] InnoDB: Creating tablespace and datafile system tables.
--22T22::55.238879+: [Note] InnoDB: Tablespace and datafile system tables created.
--22T22::55.238968+: [Note] InnoDB: Creating sys_virtual system tables.
--22T22::55.240446+: [Note] InnoDB: sys_virtual table created
--22T22::55.240917+: [Note] InnoDB: Waiting for purge to start
--22T22::55.291193+: [Note] InnoDB: 5.7. started; log sequence number
--22T22::55.291233+: [Note] InnoDB: page_cleaner: 1000ms intended loop took 139687ms. The settings might not be optimal. (flushed= and evicted=, during the time.)
--22T22::55.295328+: [Note] Plugin 'FEDERATED' is disabled.
--22T22::55.313526+: [Note] Salting uuid generator variables, current_pid: , server_start_time: , bytes_sent: ,
--22T22::55.315222+: [Note] Generated uuid: 'c42216ad-0d37-11ea-b163-2016d8c96b46', server_start_time: , bytes_sent:
--22T22::55.315283+: [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: c42216ad-0d37-11ea-b163-2016d8c96b46.
--22T22::55.318419+: [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
--22T22::55.323174+: [Note] Creating the system database
--22T22::55.323226+: [Warning] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
--22T22::55.327464+: [Note] Creating the system tables
--22T22::55.730845+: [Note] Filling in the system tables, part
--22T22::55.732873+: [Note] Filling in the system tables, part
--22T22::55.732901+: [Note] Filling in the mysql.help table
--22T22::56.027656+: [Note] Creating user for internal session service
--22T22::56.028500+: [Note] Creating the sys schema
--22T22::56.292510+: [Note] Bootstrapping complete
--22T22::56.293035+: [Note] Giving client threads a chance to die gracefully
--22T22::56.293068+: [Note] Shutting down slave threads
--22T22::56.293081+: [Note] Forcefully disconnecting remaining clients
--22T22::56.296720+: [Note] Binlog end
--22T22::56.298692+: [Note] InnoDB: FTS optimize thread exiting.
--22T22::56.298906+: [Note] InnoDB: Starting shutdown...
--22T22::56.399347+: [Note] InnoDB: Dumping buffer pool(s) to /home/cdrom/work/mysql_3307/data/ib_buffer_pool
--22T22::56.400218+: [Note] InnoDB: Buffer pool(s) dump completed at ::
--22T22::58.298176+: [Note] InnoDB: Shutdown completed; log sequence number
--22T22::58.298282+: [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
修改配置文件并启动,使其免密码登陆
#################启动并登陆修改密码
/home/cdrom/work/mysql_3307/bin/mysqld_safe --defaults-file=/home/cdrom/work/mysql_3307/etc/my.cnf --datadir=/home/cdrom/work/mysql_3307/data --pid-file=/home/cdrom/work/mysql_3307/tmp/mysql.pid
第一次启动详细过程如下:
--22T15::.822348Z mysqld_safe Logging to '/home/cdrom/work/mysql_3307/log/mysql.err'.
--22T15::.852036Z mysqld_safe Starting mysqld daemon with databases from /home/cdrom/work/mysql_3308/data
--22T15::.867928Z [Warning] Could not increase number of max_open_files to more than (request: )
--22T15::.868027Z [Warning] Changed limits: max_connections: (requested )
--22T15::.868031Z [Warning] Changed limits: table_open_cache: (requested )
--22T23::30.037210+: [Warning] option 'general_log': boolean value '/home/cdrom/work/mysql_3307/log/mysql.log' wasn't recognized. Set to OFF.
--22T23::30.037231+: [Warning] option 'general_log': boolean value '/home/cdrom/work/mysql_3307/log/mysql.log' wasn't recognized. Set to OFF.
--22T23::30.037238+: [Warning] The syntax '--log_warnings/-W' is deprecated and will be removed in a future release. Please use '--log_error_verbosity' instead.
--22T23::30.037391+: [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
--22T23::30.037428+: [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
--22T23::30.037463+: [Note] /home/cdrom/work/mysql_3307/bin/mysqld (mysqld 5.7.-log) starting as process ...
--22T23::30.047711+: [Warning] option 'innodb-buffer-pool-chunk-size': unsigned value adjusted to
--22T23::30.048165+: [Warning] InnoDB: innodb_open_files should not be greater than the open_files_limit. --22T23::30.048250+: [Note] InnoDB: PUNCH HOLE support available
--22T23::30.048270+: [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
--22T23::30.048286+: [Note] InnoDB: Uses event mutexes
--22T23::30.048302+: [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
--22T23::30.048313+: [Note] InnoDB: Compressed tables use zlib 1.2.
--22T23::30.048325+: [Note] InnoDB: Using Linux native AIO
--22T23::30.048621+: [Note] InnoDB: Number of pools:
--22T23::30.048770+: [Note] InnoDB: Using CPU crc32 instructions
--22T23::30.050544+: [Note] InnoDB: Initializing buffer pool, total size = 2G, instances = , chunk size = 1M
--22T23::30.188178+: [Note] InnoDB: Completed initialization of buffer pool
--22T23::30.209757+: [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
--22T23::30.227598+: [Note] InnoDB: Highest supported file format is Barracuda.
--22T23::30.327026+: [Note] InnoDB: Creating shared tablespace for temporary tables
--22T23::30.327140+: [Note] InnoDB: Setting file './ibtmp1' size to MB. Physically writing the file full; Please wait ...
--22T23::30.356049+: [Note] InnoDB: File './ibtmp1' size is now MB.
--22T23::30.357702+: [Note] InnoDB: redo rollback segment(s) found. redo rollback segment(s) are active.
--22T23::30.357759+: [Note] InnoDB: non-redo rollback segment(s) are active.
--22T23::30.358223+: [Note] InnoDB: Waiting for purge to start
--22T23::30.408862+: [Note] InnoDB: 5.7. started; log sequence number
--22T23::30.415111+: [Note] InnoDB: Loading buffer pool(s) from /home/cdrom/work/mysql_3307/data/ib_buffer_pool
--22T23::30.415595+: [Note] Plugin 'FEDERATED' is disabled.
--22T23::30.448392+: [Warning] Failed to set up SSL because of the following SSL library error: SSL context is not usable without certificate and private key
--22T23::30.448460+: [Note] Server hostname (bind-address): '*'; port:
--22T23::30.448566+: [Note] IPv6 is available.
--22T23::30.448620+: [Note] - '::' resolves to '::';
--22T23::30.448730+: [Note] Server socket created on IP: '::'.
--22T23::30.450563+: [Warning] Insecure configuration for --pid-file: Location '/home/cdrom/work' in the path is accessible to all OS users. Consider choosing a different directory.
--22T23::30.458231+: [Note] InnoDB: Buffer pool(s) load completed at ::
--22T23::30.459298+: [Note] Failed to start slave threads for channel ''
--22T23::30.470390+: [Note] /home/cdrom/work/mysql_3306/bin/mysqld: ready for connections.
Version: '5.7.27-log' socket: '/home/cdrom/work/mysql_3307/tmp/mysql.sock' port: MySQL Community Server (GPL)
#########
# mysql -uroot
> use mysql;
> update user set authentication_string=password('root') where user='root';
#####################再次将配置文件中的免密码登陆去掉,重启服务即可
centos7.5安装公版mysql5.7.25的更多相关文章
- CentOS7 yum 安装与配置MySQL5.7
安装环境:CentOS7 64位 MINI版,安装MySQL5.7 1.配置YUM源 在MySQL官网中下载YUM源rpm安装包:https://dev.mysql.com/downloads/rep ...
- centos7下安装指定版本mysql5.7.23
现在mysql版本已经到MySQL 8.0(GA)稳定版本了,所以需求是想简单又快速在centos7下安装指定版本例如MySQL 5.7(GA)版本有下面这种方法 首先需要到mysql官网这里下载对应 ...
- CentOS7 YUM安装与配置 MySQL5.7
原文链接:http://blog.csdn.net/xyang81/article/details/51759200 安装环境:CentOS7 64位,MySQL5.7 1.配置YUM源 在MySQL ...
- 【安装mysql】windows安装压缩版mysql5.7.15
160915.1459 综述 中午安装成功,但是启动失败,很可能是压缩包有问题(从别人拷的),解决了近一个小时,没搞定,于是换条方案,重新去官网下载压缩包,这次看准了windows架构,且64-b ...
- Centos7.3安装和配置Mysql5.7
主要转自这篇文章:https://www.cnblogs.com/wishwzp/p/7113403.html 这篇文章已经讲的很详细,亲测可用,对于基本不懂linux的小白应该也能看得懂.只是没有修 ...
- centos7.2安装社区版docker-ce-17.06.1
先yum install安装如下包: container-selinux-2.21-1.el7.noarch libcgroup-0.41-13.el7.x86_64 libtool-ltdl-2.4 ...
- CentOS7.6安装稳定版Nginx
官网地址:http://nginx.org/en/linux_packages.html#RHEL-CentOS 需先安装依赖:sudo yum install -y yum-utils 安装开始: ...
- centos7下安装mysql5.7.24
第一步:下载rpm包 sudo wget http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql57-community-rel ...
- Centos7 安装配置Apache+Mysql5.7+PHP7.0+phpmyadmin
Centos7 下安装配置Apache+Mysql5.7+PHP7.0+phpmyadmin 搭建LAMP =========================================Apach ...
随机推荐
- mkdir: Cannot create directory /file. Name node is in safe mode.
刚刚在hadoop想创建一个目录的时候,发现报错了 具体信息如下: [hadoop@mini1 hadoop-2.6.4]$ hadoop fs -mkdir /file mkdir: Cannot ...
- Windows 设置内网和外网同时使用
想要电脑同时使用内网和外网必须具备两个网卡,一个是无线网卡一个是本地连接,无线网卡用来连接wifi也就是外网,而本地连接需要网线连接内网,外网是不需要做设置的,我们只需要设置内网即可,鼠标右击电脑右下 ...
- Spring Cloud失散多年的哥哥Dubbo学习笔记
Spring Cloud失散多年的哥哥Dubbo 随着互联网项目用户量的急剧增长,访问并发良突然暴增,将一个应用使用多个独立的工程共同实现的系统架构,称为SOA系统架构,各个工程可以允许在不同的机器上 ...
- QT中QString与string的转化,解决中文乱码问题
在QT中,使用QString输出到控件进行显示时,经常会出现中文乱码,网上查了一圈,发现大部分都是针对QT4增加4条语句:</span> [cpp] view plain copy QTe ...
- 实时检测网络状态及是否可以连接Internet
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using Sy ...
- Socket.EndReceive 方法 (IAsyncResult)
.NET Framework (current version) 其他版本 .NET Framework 4 .NET Framework 3.5 .NET Framework 3.0 . ...
- java基础编程题(1)
1. 题目:打印出杨辉三角形(要求打印出10行如下图) 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1...... package com.jzq.test1; ...
- DELPHI指针的使用
DELPHI指针的使用 大家都认为,C语言之所以强大,以及其自由性,很大部分体现在其灵活的指针运用上.因此,说指针是C语言的灵魂,一点都不为过.同时,这种说法也让很多人产生误解,似乎只有C语言的指针才 ...
- 记录一次hexo托管到coding失败,页面总是404,可是相同的代码托管到github是没问题的。
文章目录 问题描述: 问题原因: 问题解决 2019.1.23 问题,coding又挂了. 弃疗 个人博客:https://mmmmmm.me 源码:https://github.com/dataiy ...
- C语言进阶学习第一章
1.在C语言里面使用scanf给某个变量赋值时候,如果成功返回1,失败返回0:测试代码如下: /***假如在键盘输入的不是整形数据,则输出0,否则输出1***/ void main() { int a ...