真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

MySQL5.7.25主備架構(gòu)小版本In-Place升級(jí)思

一、描述
漏掃發(fā)現(xiàn)MySQL有低風(fēng)險(xiǎn)漏洞,自己寫方案、自己做測(cè)試、自己升級(jí)。
版本:MySQL 5.7.25 升級(jí)到MySQL 5.7.28最新版本。
架構(gòu):主從架構(gòu)
二、升級(jí)流程
1、下載最新版數(shù)據(jù)庫(kù)軟件MySQL 5.7.28
2、上傳到指定目錄
3、備份數(shù)據(jù)庫(kù)軟件、數(shù)據(jù)庫(kù)數(shù)據(jù)目錄、my.cnf
4、解壓縮數(shù)據(jù)庫(kù)軟件到指定路徑
5、關(guān)閉備庫(kù)
6、使用新版軟件啟動(dòng)備庫(kù),mysqld_safe &
7、登錄備庫(kù),發(fā)現(xiàn)版本已升級(jí),使用mysql_upgrade命令升級(jí)系統(tǒng)數(shù)據(jù)庫(kù)
8、無報(bào)錯(cuò)的話,重啟備庫(kù)。
9、主庫(kù)按照備庫(kù)流程走一遍
10、最后確認(rèn)主備庫(kù)是否一致
三、部分內(nèi)容
# mysql_upgrade -uroot -p
mysql_upgrade: [Warning] Using a password on the command line interface can be insecure.
Checking if update is needed.
Checking server version.
Running queries to upgrade MySQL server.
Checking system database.
mysql.columns_priv                                 OK
mysql.db                                           OK
mysql.engine_cost                                  OK
mysql.event                                        OK
mysql.func                                         OK
mysql.general_log                                  OK
mysql.gtid_executed                                OK
mysql.help_category                                OK
mysql.help_keyword                                 OK
mysql.help_relation                                OK
mysql.help_topic                                   OK
mysql.innodb_index_stats                           OK
mysql.innodb_table_stats                           OK
mysql.ndb_binlog_index                             OK
mysql.plugin                                       OK
mysql.proc                                         OK
mysql.procs_priv                                   OK
mysql.proxies_priv                                 OK
mysql.server_cost                                  OK
mysql.servers                                      OK
mysql.slave_master_info                            OK
mysql.slave_relay_log_info                         OK
mysql.slave_worker_info                            OK
mysql.slow_log                                     OK
mysql.tables_priv                                  OK
mysql.time_zone                                    OK
mysql.time_zone_leap_second                        OK
mysql.time_zone_name                               OK
mysql.time_zone_transition                         OK
mysql.time_zone_transition_type                    OK
mysql.user                                         OK
Found outdated sys schema version 1.5.1.
Upgrading the sys schema.
Checking databases.
sys.sys_config                                     OK
Upgrade process completed successfully.
Checking if update is needed.

mysql> status
--------------
mysql  Ver 14.14 Distrib 5.7.28, for linux-glibc2.12 (x86_64) using  EditLine wrapper

Connection id:      2
Current database:   
Current user:       root@localhost
SSL:            Not in use
Current pager:      stdout
Using outfile:      ''
Using delimiter:    ;
Server version:     5.7.28-log MySQL Community Server (GPL)
Protocol version:   10
Connection:     Localhost via UNIX socket
Server characterset:    utf8mb4
Db     characterset:    utf8mb4
Client characterset:    utf8mb4
Conn.  characterset:    utf8mb4
UNIX socket:        /tmp/mysql.sock
Uptime:         27 sec

網(wǎng)站標(biāo)題:MySQL5.7.25主備架構(gòu)小版本In-Place升級(jí)思
當(dāng)前網(wǎng)址:http://weahome.cn/article/jciiop.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部