CentOS 安装mysql 5.7.35

一、安装mysql软件

先检查之前是否有安装过MySQL:

如果有的话,要先卸载:

yum remove mysql mysql-server

 

 卸载干净了!

接着我们来安装。


下载并安装MySQL官方的 Yum Repository,Mysql版本5.7.35

wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm


下载后直接yum安装
安装MySQL服务器

yum -y install mysql57-community-release-el7-10.noarch.rpm


yum -y install mysql-community-server 

[root@localhost ~]# yum -y install mysql-community-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-transaction --cleanup-only" and "yum history redo last", first to finish them. If those don't work you'll have to try removing/installing packages by hand (maybe package-cleanup can help).
The program yum-complete-transaction is found in the yum-utils package.
--> Running transaction check
---> Package mysql-community-server.x86_64 0:5.7.35-1.el7 will be installed
--> Processing Dependency: mysql-community-client(x86-64) >= 5.7.9 for package: mysql-community-server-5.7.35-1.el7.x86_64
--> Running transaction check
---> Package mysql-community-client.x86_64 0:5.7.35-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================================================================
 Package                                Arch                   Version                         Repository                         Size
=======================================================================================================================================
Installing:
 mysql-community-server                 x86_64                 5.7.35-1.el7                    mysql57-community                 174 M
Installing for dependencies:
 mysql-community-client                 x86_64                 5.7.35-1.el7                    mysql57-community                  25 M

Transaction Summary
=======================================================================================================================================
Install  1 Package (+1 Dependent package)

Total download size: 199 M
Installed size: 865 M
Downloading packages:
(1/2): mysql-community-client-5.7.35-1.el7.x86_64.rpm                                                           |  25 MB  00:00:03     
mysql-community-server-5.7.35- FAILED                                                                ] 3.5 kB/s |  25 MB  14:14:11 ETA 
http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-server-5.7.35-1.el7.x86_64.rpm: [Errno 12] Timeout on http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-server-5.7.35-1.el7.x86_64.rpm: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
Trying other mirror.
mysql-community-server-5.7.35- FAILED                                                                ]  399 B/s |  26 MB 126:38:35 ETA 
http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-server-5.7.35-1.el7.x86_64.rpm: [Errno 12] Timeout on http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-server-5.7.35-1.el7.x86_64.rpm: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
Trying other mirror.
mysql-community-server-5.7.35- FAILED                                                              ]  2.0 B/s |  26 MB 25688:02:15 ETA 
http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-server-5.7.35-1.el7.x86_64.rpm: [Errno 12] Timeout on http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-server-5.7.35-1.el7.x86_64.rpm: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
Trying other mirror.
(2/2): mysql-community-server-5.7.35-1.el7.x86_64.rpm                                                           | 174 MB  00:00:36     
---------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                  392 kB/s | 199 MB  00:08:39     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : mysql-community-client-5.7.35-1.el7.x86_64                                                                          1/2 
  Installing : mysql-community-server-5.7.35-1.el7.x86_64                                                                          2/2 
  Verifying  : mysql-community-server-5.7.35-1.el7.x86_64                                                                          1/2 
  Verifying  : mysql-community-client-5.7.35-1.el7.x86_64                                                                          2/2 

Installed:
  mysql-community-server.x86_64 0:5.7.35-1.el7                                                                                         

Dependency Installed:
  mysql-community-client.x86_64 0:5.7.35-1.el7                                                                                         

Complete!


 

 

二、配置Mysql数据库

启动MySQL

systemctl start mysqld.service

查看MySQL运行状态

systemctl status mysqld.service


重启服务:
systemctl restart mysqld.service


停止服务:
systemctl stop mysqld.service


启用服务:
systemctl start mysqld.service

找出root初始密码

grep "password" /var/log/mysqld.log

 

 初始密码为:8bgr,OsWe?;G

登录:

mysql -uroot -p

 输入密码(密码是上面查询到的 8bgr,OsWe?;G),此时不能操作数据库,必须修改密码之后才能操作数据库


 

use mysql;

select host,user,password_expired,password_last_changed,password_lifetime from user;

 1.修改密码:

ALTER USER 'root'@'localhost' IDENTIFIED BY 'P17CKSzBp0q2@866';

root 密码就修改为:P17CKSzBp0q2@866  

 2、实现远程连接 

grant all privileges  on *.* to root@'%' identified by "P17CKSzBp0q2@866";

 执行下面的授权命令,让上面的修改生效。

flush privileges;

 

 接着我们使用工具来进行远程连接:

结果连接不上,是不是没有开启3306端口呢?

开通虚拟机的3306端口,查看虚拟机防火墙的状态,命令如下:

service iptables status

 这是因为防火墙没有开启,先重新开启防火墙。

service iptables start

 

 开启了,重新来连接一下:

 看来是3306端口没有启用:

netstat -tunlp

3306端口开启了,看来是需要开启3306端口的防火墙

vim /etc/sysconfig/iptables

 里面增加:

-A INPUT -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT

 保存后,重启防火墙服务!

service iptables restart

 

 接着再来连接,我们可以看到连接成功了!

使用账号 : root / P17CKSzBp0q2@866

 

查看MySQL日志:

tail -f /var/log/mysqld.log
2021-08-04T05:34:29.183204Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2021-08-04T05:34:30.107630Z 0 [Warning] InnoDB: New log files created, LSN=45790
2021-08-04T05:34:30.367037Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2021-08-04T05:34:30.520630Z 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: a43ee6e7-f4e5-11eb-af7f-1c666d901856.
2021-08-04T05:34:30.551076Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2021-08-04T05:34:30.975031Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher.
2021-08-04T05:34:30.975037Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher.
2021-08-04T05:34:30.975508Z 0 [Warning] CA certificate ca.pem is self signed.
2021-08-04T05:34:31.182242Z 1 [Note] A temporary password is generated for root@localhost: 8bgr,OsWe?;G
2021-08-04T05:34:43.703971Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2021-08-04T05:34:43.704916Z 0 [Note] /usr/sbin/mysqld (mysqld 5.7.35) starting as process 18261 ...
2021-08-04T05:34:43.707521Z 0 [Note] InnoDB: PUNCH HOLE support available
2021-08-04T05:34:43.707544Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2021-08-04T05:34:43.707547Z 0 [Note] InnoDB: Uses event mutexes
2021-08-04T05:34:43.707550Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2021-08-04T05:34:43.707552Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-08-04T05:34:43.707554Z 0 [Note] InnoDB: Using Linux native AIO
2021-08-04T05:34:43.707744Z 0 [Note] InnoDB: Number of pools: 1
2021-08-04T05:34:43.707823Z 0 [Note] InnoDB: Using CPU crc32 instructions
2021-08-04T05:34:43.709095Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2021-08-04T05:34:43.714437Z 0 [Note] InnoDB: Completed initialization of buffer pool
2021-08-04T05:34:43.715838Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2021-08-04T05:34:43.727317Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2021-08-04T05:34:43.754223Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-08-04T05:34:43.754309Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-08-04T05:34:43.850481Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2021-08-04T05:34:43.852764Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2021-08-04T05:34:43.852796Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2021-08-04T05:34:43.853623Z 0 [Note] InnoDB: Waiting for purge to start
2021-08-04T05:34:43.904053Z 0 [Note] InnoDB: 5.7.35 started; log sequence number 2749977
2021-08-04T05:34:43.904447Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2021-08-04T05:34:43.904823Z 0 [Note] Plugin 'FEDERATED' is disabled.
2021-08-04T05:34:43.907070Z 0 [Note] InnoDB: Buffer pool(s) load completed at 210804  1:34:43
2021-08-04T05:34:43.917332Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
2021-08-04T05:34:43.917375Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
2021-08-04T05:34:43.917387Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher.
2021-08-04T05:34:43.917395Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher.
2021-08-04T05:34:43.919589Z 0 [Warning] CA certificate ca.pem is self signed.
2021-08-04T05:34:43.919720Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
2021-08-04T05:34:43.931209Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
2021-08-04T05:34:43.931662Z 0 [Note] IPv6 is available.
2021-08-04T05:34:43.931691Z 0 [Note]   - '::' resolves to '::';
2021-08-04T05:34:43.931742Z 0 [Note] Server socket created on IP: '::'.
2021-08-04T05:34:43.979726Z 0 [Note] Event Scheduler: Loaded 0 events
2021-08-04T05:34:43.980712Z 0 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.7.35'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Server (GPL)
2021-08-04T05:55:37.639445Z 5 [Warning] Hostname 'localhost.localdomain' does not resolve to '192.168.0.36'.
2021-08-04T05:55:37.639466Z 5 [Note] Hostname 'localhost.localdomain' has the following IP addresses:
2021-08-04T05:55:37.639470Z 5 [Note]  - ::1
2021-08-04T05:55:37.639474Z 5 [Note]  - 127.0.0.1
[root@localhost lib]# tail -f /var/log/mysqld.log
2021-08-04T05:34:43.931662Z 0 [Note] IPv6 is available.
2021-08-04T05:34:43.931691Z 0 [Note]   - '::' resolves to '::';
2021-08-04T05:34:43.931742Z 0 [Note] Server socket created on IP: '::'.
2021-08-04T05:34:43.979726Z 0 [Note] Event Scheduler: Loaded 0 events
2021-08-04T05:34:43.980712Z 0 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.7.35'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Server (GPL)
2021-08-04T05:55:37.639445Z 5 [Warning] Hostname 'localhost.localdomain' does not resolve to '192.168.0.36'.
2021-08-04T05:55:37.639466Z 5 [Note] Hostname 'localhost.localdomain' has the following IP addresses:
2021-08-04T05:55:37.639470Z 5 [Note]  - ::1
2021-08-04T05:55:37.639474Z 5 [Note]  - 127.0.0.1






2021-08-04T06:02:11.846094Z 6 [Warning] IP address '192.168.0.40' could not be resolved: Name or service not known
2021-08-04T07:32:25.514541Z 0 [Note] Giving 2 client threads a chance to die gracefully
2021-08-04T07:32:25.514568Z 0 [Note] Shutting down slave threads
2021-08-04T07:32:27.514913Z 0 [Note] Forcefully disconnecting 2 remaining clients
2021-08-04T07:32:27.514982Z 0 [Warning] /usr/sbin/mysqld: Forcing close of thread 19  user: 'root'

2021-08-04T07:32:27.515061Z 0 [Warning] /usr/sbin/mysqld: Forcing close of thread 18  user: 'root'

2021-08-04T07:32:27.515106Z 0 [Note] Event Scheduler: Purging the queue. 0 events
2021-08-04T07:32:27.515443Z 0 [Note] Binlog end
2021-08-04T07:32:27.543694Z 0 [Note] Shutting down plugin 'validate_password'
2021-08-04T07:32:27.543742Z 0 [Note] Shutting down plugin 'ngram'
2021-08-04T07:32:27.543754Z 0 [Note] Shutting down plugin 'partition'
2021-08-04T07:32:27.543763Z 0 [Note] Shutting down plugin 'BLACKHOLE'
2021-08-04T07:32:27.543783Z 0 [Note] Shutting down plugin 'ARCHIVE'
2021-08-04T07:32:27.543792Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2021-08-04T07:32:27.543885Z 0 [Note] Shutting down plugin 'MRG_MYISAM'
2021-08-04T07:32:27.543904Z 0 [Note] Shutting down plugin 'MyISAM'
2021-08-04T07:32:27.543922Z 0 [Note] Shutting down plugin 'INNODB_SYS_VIRTUAL'
2021-08-04T07:32:27.543931Z 0 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2021-08-04T07:32:27.543939Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2021-08-04T07:32:27.543947Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2021-08-04T07:32:27.543955Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2021-08-04T07:32:27.543963Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2021-08-04T07:32:27.543970Z 0 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2021-08-04T07:32:27.543978Z 0 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2021-08-04T07:32:27.544002Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2021-08-04T07:32:27.544010Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2021-08-04T07:32:27.544018Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2021-08-04T07:32:27.544026Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2021-08-04T07:32:27.544033Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2021-08-04T07:32:27.544041Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2021-08-04T07:32:27.544049Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2021-08-04T07:32:27.544057Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2021-08-04T07:32:27.544065Z 0 [Note] Shutting down plugin 'INNODB_METRICS'
2021-08-04T07:32:27.544073Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'
2021-08-04T07:32:27.544081Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2021-08-04T07:32:27.544089Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2021-08-04T07:32:27.544097Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2021-08-04T07:32:27.544116Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2021-08-04T07:32:27.544124Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2021-08-04T07:32:27.544132Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2021-08-04T07:32:27.544140Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'
2021-08-04T07:32:27.544169Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2021-08-04T07:32:27.544178Z 0 [Note] Shutting down plugin 'INNODB_CMP'
2021-08-04T07:32:27.544187Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2021-08-04T07:32:27.544195Z 0 [Note] Shutting down plugin 'INNODB_LOCKS'
2021-08-04T07:32:27.544203Z 0 [Note] Shutting down plugin 'INNODB_TRX'
2021-08-04T07:32:27.544224Z 0 [Note] Shutting down plugin 'InnoDB'
2021-08-04T07:32:27.544434Z 0 [Note] InnoDB: FTS optimize thread exiting.
2021-08-04T07:32:27.544632Z 0 [Note] InnoDB: Starting shutdown...
2021-08-04T07:32:27.645099Z 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
2021-08-04T07:32:27.646436Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 210804  3:32:27
2021-08-04T07:32:28.904695Z 0 [Note] InnoDB: Shutdown completed; log sequence number 2750005
2021-08-04T07:32:28.906495Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2021-08-04T07:32:28.906511Z 0 [Note] Shutting down plugin 'MEMORY'
2021-08-04T07:32:28.906516Z 0 [Note] Shutting down plugin 'CSV'
2021-08-04T07:32:28.906520Z 0 [Note] Shutting down plugin 'sha256_password'
2021-08-04T07:32:28.906523Z 0 [Note] Shutting down plugin 'mysql_native_password'
2021-08-04T07:32:28.906678Z 0 [Note] Shutting down plugin 'binlog'
2021-08-04T07:32:28.907465Z 0 [Note] /usr/sbin/mysqld: Shutdown complete

2021-08-04T07:32:29.794058Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2021-08-04T07:32:29.794886Z 0 [Note] /usr/sbin/mysqld (mysqld 5.7.35) starting as process 25165 ...
2021-08-04T07:32:29.797671Z 0 [Note] InnoDB: PUNCH HOLE support available
2021-08-04T07:32:29.797695Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2021-08-04T07:32:29.797699Z 0 [Note] InnoDB: Uses event mutexes
2021-08-04T07:32:29.797701Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2021-08-04T07:32:29.797704Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-08-04T07:32:29.797722Z 0 [Note] InnoDB: Using Linux native AIO
2021-08-04T07:32:29.797990Z 0 [Note] InnoDB: Number of pools: 1
2021-08-04T07:32:29.798154Z 0 [Note] InnoDB: Using CPU crc32 instructions
2021-08-04T07:32:29.799503Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2021-08-04T07:32:29.805022Z 0 [Note] InnoDB: Completed initialization of buffer pool
2021-08-04T07:32:29.806677Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2021-08-04T07:32:29.818125Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2021-08-04T07:32:29.858778Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-08-04T07:32:29.858929Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-08-04T07:32:29.961178Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2021-08-04T07:32:29.963164Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2021-08-04T07:32:29.963197Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2021-08-04T07:32:29.964012Z 0 [Note] InnoDB: Waiting for purge to start
2021-08-04T07:32:30.014433Z 0 [Note] InnoDB: 5.7.35 started; log sequence number 2750005
2021-08-04T07:32:30.015241Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2021-08-04T07:32:30.015629Z 0 [Note] Plugin 'FEDERATED' is disabled.
2021-08-04T07:32:30.018917Z 0 [Note] InnoDB: Buffer pool(s) load completed at 210804  3:32:30
2021-08-04T07:32:30.029640Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
2021-08-04T07:32:30.029690Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
2021-08-04T07:32:30.029703Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher.
2021-08-04T07:32:30.029725Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher.
2021-08-04T07:32:30.031903Z 0 [Warning] CA certificate ca.pem is self signed.
2021-08-04T07:32:30.032041Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
2021-08-04T07:32:30.033493Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
2021-08-04T07:32:30.033987Z 0 [Note] IPv6 is available.
2021-08-04T07:32:30.034022Z 0 [Note]   - '::' resolves to '::';
2021-08-04T07:32:30.034074Z 0 [Note] Server socket created on IP: '::'.
2021-08-04T07:32:30.080042Z 0 [Note] Event Scheduler: Loaded 0 events
2021-08-04T07:32:30.080386Z 0 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.7.35'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Server (GPL)
2021-08-04T07:32:37.772253Z 0 [Note] Giving 0 client threads a chance to die gracefully
2021-08-04T07:32:37.772273Z 0 [Note] Shutting down slave threads
2021-08-04T07:32:37.772284Z 0 [Note] Forcefully disconnecting 0 remaining clients
2021-08-04T07:32:37.772291Z 0 [Note] Event Scheduler: Purging the queue. 0 events
2021-08-04T07:32:37.772335Z 0 [Note] Binlog end
2021-08-04T07:32:37.772769Z 0 [Note] Shutting down plugin 'validate_password'
2021-08-04T07:32:37.772787Z 0 [Note] Shutting down plugin 'ngram'
2021-08-04T07:32:37.772792Z 0 [Note] Shutting down plugin 'partition'
2021-08-04T07:32:37.772796Z 0 [Note] Shutting down plugin 'BLACKHOLE'
2021-08-04T07:32:37.772803Z 0 [Note] Shutting down plugin 'ARCHIVE'
2021-08-04T07:32:37.772807Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2021-08-04T07:32:37.772835Z 0 [Note] Shutting down plugin 'MRG_MYISAM'
2021-08-04T07:32:37.772840Z 0 [Note] Shutting down plugin 'MyISAM'
2021-08-04T07:32:37.772848Z 0 [Note] Shutting down plugin 'INNODB_SYS_VIRTUAL'
2021-08-04T07:32:37.772853Z 0 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2021-08-04T07:32:37.772857Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2021-08-04T07:32:37.772860Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2021-08-04T07:32:37.772864Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2021-08-04T07:32:37.772872Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2021-08-04T07:32:37.772887Z 0 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2021-08-04T07:32:37.772891Z 0 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2021-08-04T07:32:37.772895Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2021-08-04T07:32:37.772898Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2021-08-04T07:32:37.772902Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2021-08-04T07:32:37.772910Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2021-08-04T07:32:37.772913Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2021-08-04T07:32:37.772917Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2021-08-04T07:32:37.772920Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2021-08-04T07:32:37.772924Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2021-08-04T07:32:37.772927Z 0 [Note] Shutting down plugin 'INNODB_METRICS'
2021-08-04T07:32:37.772931Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'
2021-08-04T07:32:37.772935Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2021-08-04T07:32:37.772938Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2021-08-04T07:32:37.772942Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2021-08-04T07:32:37.772948Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2021-08-04T07:32:37.772952Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2021-08-04T07:32:37.772955Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2021-08-04T07:32:37.772959Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'
2021-08-04T07:32:37.772963Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2021-08-04T07:32:37.772966Z 0 [Note] Shutting down plugin 'INNODB_CMP'
2021-08-04T07:32:37.772970Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2021-08-04T07:32:37.772973Z 0 [Note] Shutting down plugin 'INNODB_LOCKS'
2021-08-04T07:32:37.772985Z 0 [Note] Shutting down plugin 'INNODB_TRX'
2021-08-04T07:32:37.772993Z 0 [Note] Shutting down plugin 'InnoDB'
2021-08-04T07:32:37.773037Z 0 [Note] InnoDB: FTS optimize thread exiting.
2021-08-04T07:32:37.773129Z 0 [Note] InnoDB: Starting shutdown...
2021-08-04T07:32:37.873567Z 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
2021-08-04T07:32:37.874718Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 210804  3:32:37
2021-08-04T07:32:38.945114Z 0 [Note] InnoDB: Shutdown completed; log sequence number 2750033
2021-08-04T07:32:38.946920Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2021-08-04T07:32:38.946936Z 0 [Note] Shutting down plugin 'MEMORY'
2021-08-04T07:32:38.946944Z 0 [Note] Shutting down plugin 'CSV'
2021-08-04T07:32:38.946948Z 0 [Note] Shutting down plugin 'sha256_password'
2021-08-04T07:32:38.946951Z 0 [Note] Shutting down plugin 'mysql_native_password'
2021-08-04T07:32:38.947102Z 0 [Note] Shutting down plugin 'binlog'
2021-08-04T07:32:38.947350Z 0 [Note] /usr/sbin/mysqld: Shutdown complete

 

Guess you like

Origin blog.csdn.net/lchmyhua88/article/details/119382776