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 ...
随机推荐
- Codeforces Round #563 (Div. 2) F. Ehab and the Big Finale
后续: 点分治标程 使用father数组 比使用vis数组优秀(不需要对vis初始化) https://codeforces.com/problemset/problem/1174/F https:/ ...
- IDEA快捷键(收集自网络后整理)
快捷键 说明 CTRL+B 快速打开光标处的类或方法 CTRL+C 拷贝 CTRL+D 复制当前行到下一行 CTRL+E 最近打开的文件 CTRL+F 当前文件查找特定内容 CTRL+G 定位行 CT ...
- pycharm中使用配置好的virtualenv环境,自动生成和安装requirements.txt依赖
1.手动建立: 第一步 建立虚拟环境 Windows cmd: pip install virtualenv 创建虚拟环境目录 env 激活虚拟环境 C:\Python27\Scripts\env\S ...
- hdu多校第一场1003 (hdu6580)Milk 背包
题意: 有一个n*m的矩阵,左右可以随便走,但只能在每一行的中点往下走,每走一格花费时间1. 现在这个矩阵里放了k瓶牛奶,第i个牛奶喝下去需要ti时间 起点是(1,1) 对于每个i∈[1,k],问喝掉 ...
- linux操作练习题
linux操作练习题 一.总结 一句话总结: 多练练一下子就会了,很简单的 1.在当前目录下建立文件exam.c,将文件exam.c拷贝到/tmp这个目录下,并改名为 shiyan.c? touch ...
- System.Web.Mvc.JavaScriptResult.cs
ylbtech-System.Web.Mvc.JavaScriptResult.cs 1.程序集 System.Web.Mvc, Version=5.2.3.0, Culture=neutral, P ...
- (3)mysql表和字段的操作
创建表 create table name( id int, student ) ); 查看表结构 ****常用**** describe 表名; 修改表名 老表 rename 新表 ALTER TA ...
- npm使用入门
NPM使用入门 npm 就是node package manager node的包管理工具 我们通过npm install 模块 来安装模块,缩写:npm i 模块,注意,低版本的node可能需要np ...
- HDU-1698-Just a Hook-区间更新+线段树成段更新
In the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes. T ...
- USACO 2007 February Silver The Cow Lexicon /// DP oj24258
题目大意: 输入w,l: w是接下来的字典内的单词个数,l为目标字符串长度 输入目标字符串 接下来w行,输入字典内的各个单词 输出目标字符串最少删除多少个字母就能变成只由字典内的单词组成的字符串 Sa ...