#########

卸载原来系统安装的包

# 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. maven创建archetyp一直显示runing

    在maven的五分钟入门里面,有这样一个命令: mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -Darc ...

  2. 【JZOJ6376】樱符[完全墨染的樱花]

    description analysis 无向图上任意两点最大流不超过\(2\),说明该图是仙人掌 由于最大流等于最小割,如果一条边在两个环里,断掉两个端点至少需要\(3\)的代价 对于该仙人掌,求两 ...

  3. Perl 变量

    Perl 变量 变量是存储在内存中的数据,创建一个变量即会在内存上开辟一个空间. 解释器会根据变量的类型来决定其在内存中的存储空间,因此你可以为变量分配不同的数据类型,如整型.浮点型.字符串等. 上一 ...

  4. 0922CSP-S模拟测试赛后总结

    连发三篇爆炸实录我的心态竟然还这么好…… 昨天题目的D2.稍难. 这也不是我连续拿倒数第一的理由. T1不会.赛时硬写了一个30分的三次方暴力.还有一个地方写挂了.如果不是数据足够水我就爆零了. 也就 ...

  5. 使用java Graphics 绘图工具生成顺丰快递电子面单

    最近公司需要开发一个公司内部使用的快递下单系统,给我的开发任务中有一个生成电子面单功能,为了下单时更方便,利用此功能使用快递公司给我们的打印机直接打印出电子面单,刚接到这个任务时我想这应该很简单,不就 ...

  6. hdu多校第二场 1005 (hdu6595) Everything Is Generated In Equal Probability

    题意: 给定一个N,随机从[1,N]里产生一个n,然后随机产生一个n个数的全排列,求出n的逆序数对的数量,加到cnt里,然后随机地取出这个全排列中的一个非连续子序列(注意这个子序列可以是原序列),再求 ...

  7. SpringBoot_03_SpringBoot对其他技术的整合

    1.SpringBoot整合Mybatis 1.2 添加Mybatis的起步依赖 <!--mybatis起步依赖--> <dependency> <groupId> ...

  8. 互联网金融ABS为何遭遇急刹车?

    互联网金融ABS为何遭遇急刹车?   今年以来,互联网金融ABS迎来爆发式增长,已逐渐成为平台融资的重要渠道.近期有媒体称,监管方面已叫停审批,原因何在? 本期看点: 互联网金融ABS与传统ABS有何 ...

  9. 9.2 sun.py

    import requests from bs4 import BeautifulSoup url = 'http://wz.sun0769.com/index.php/question/reply? ...

  10. java关键字之instanceof

    首先来看段测试代码 public class TestInstanceof{ public static void main(String[] args){ int a = 1; if(a insta ...