#########

卸载原来系统安装的包

# 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的更多相关文章

  1. CentOS7 yum 安装与配置MySQL5.7

    安装环境:CentOS7 64位 MINI版,安装MySQL5.7 1.配置YUM源 在MySQL官网中下载YUM源rpm安装包:https://dev.mysql.com/downloads/rep ...

  2. centos7下安装指定版本mysql5.7.23

    现在mysql版本已经到MySQL 8.0(GA)稳定版本了,所以需求是想简单又快速在centos7下安装指定版本例如MySQL 5.7(GA)版本有下面这种方法 首先需要到mysql官网这里下载对应 ...

  3. CentOS7 YUM安装与配置 MySQL5.7

    原文链接:http://blog.csdn.net/xyang81/article/details/51759200 安装环境:CentOS7 64位,MySQL5.7 1.配置YUM源 在MySQL ...

  4. 【安装mysql】windows安装压缩版mysql5.7.15

      160915.1459 综述 中午安装成功,但是启动失败,很可能是压缩包有问题(从别人拷的),解决了近一个小时,没搞定,于是换条方案,重新去官网下载压缩包,这次看准了windows架构,且64-b ...

  5. Centos7.3安装和配置Mysql5.7

    主要转自这篇文章:https://www.cnblogs.com/wishwzp/p/7113403.html 这篇文章已经讲的很详细,亲测可用,对于基本不懂linux的小白应该也能看得懂.只是没有修 ...

  6. 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 ...

  7. CentOS7.6安装稳定版Nginx

    官网地址:http://nginx.org/en/linux_packages.html#RHEL-CentOS 需先安装依赖:sudo yum install -y yum-utils 安装开始: ...

  8. centos7下安装mysql5.7.24

    第一步:下载rpm包 sudo wget http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql57-community-rel ...

  9. Centos7 安装配置Apache+Mysql5.7+PHP7.0+phpmyadmin

    Centos7 下安装配置Apache+Mysql5.7+PHP7.0+phpmyadmin 搭建LAMP =========================================Apach ...

随机推荐

  1. 一张图轻松掌握 Flink on YARN 应用启动全流程(上)

    Flink 支持 Standalone 独立部署和 YARN.Kubernetes.Mesos 等集群部署模式,其中 YARN 集群部署模式在国内的应用越来越广泛.Flink 社区将推出 Flink ...

  2. error LNK2001: unresolved external symbol _main解决办法(zz)

    error LNK2001: unresolved external symbol _main解决办法   解决外部符号错误:_main,_WinMain@16,__beginthreadex -!t ...

  3. IIS服务器不可用

    很恼火,突然发现IIS中的应用程序不能浏览页面了,试了试任何一个aspx页面也打不开.重新用vs.net建立了个新的web应用程序,现象依旧. 电脑环境: win2003 问题现象: 1)当想浏览某个 ...

  4. Vue项目组织规范

    目录 一.项目结构的核心思想 二.项目目录结构 三.资源路径编译规则 四.index.html 五.build目录 和 config目录 六.public目录 七.static 目录 八.src目录结 ...

  5. vue 绑定多个class

    <div :class="[box,shadow]"></div> 或 :后面跟条件,条件成立则添加class,否则不添加 :class="[{' ...

  6. Berlekamp Massey算法求线性递推式

    BM算法求求线性递推式   P5487 线性递推+BM算法   待AC.   Poor God Water   // 题目来源:ACM-ICPC 2018 焦作赛区网络预赛 题意   God Wate ...

  7. ajax跨域请求使用代理

    public class ProxyHandler extends HttpServlet {    private static final long serialVersionUID = 1L;  ...

  8. 深入分析Service启动、绑定过程

    Service是Android中一个重要的组件,它没有用户界面,可以运行在后太做一些耗时操作.Service可以被其他组件启动,甚至当用户切换到其他应用时,它仍然可以在后台保存运行.Service 是 ...

  9. 牛客集训第七场J /// DP

    题目大意: 在矩阵(只有52种字符)中找出所有不包含重复字符的子矩阵个数 #include <bits/stdc++.h> #define ll long long using names ...

  10. HTML中被废弃的标签<b><u><i><s>

    <strong>代替<b>给文字加粗 <ins>代替<u>给文本添加下划线 <em>代替<i>将文本倾斜 <del> ...