91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

mysql升級(物理升級)

發布時間:2020-08-07 05:17:04 來源:ITPUB博客 閱讀:339 作者:shuangseqiu1 欄目:MySQL數據庫
mysql升級是經常要做的工作,整理下升級步驟(物理升級)
1,關閉mysql服務
2,高版本軟件覆蓋低版本軟件(替換掉basedir)
3,賦予新的高版本軟件mysql權限
4,使用新的軟件開啟數據庫
5,執行mysql_upgrade升級
實驗:
5.6.23升級到5.7.12
1,關閉正在運行的mysql5.6.23的服務
2,刪除低版本的mysql軟件(basedir)
[root@mysqlupgrade mysql]# rm -rf mysql/
3,解壓高版本的mysql軟件包,覆蓋到原來的位置
[root@mysqlupgrade soft]# tar xzvf mysql-5.7.12-linux-glibc2.5-x86_64.tar.gz -C /data/mysql/
[root@mysqlupgrade mysql]# mv mysql-5.7.12-linux-glibc2.5-x86_64 mysql
4,賦予權限
[root@mysqlupgrade mysql]# chown -R mysql:mysql mysql/
5,開啟數據庫
[root@mysqlupgrade mysql]# bin/mysqld_safe --ledir=/data/mysql/mysql/bin --user=mysql &
6,進入數據庫,查看當前版本
mysql> select version();
+-----------+
| version() |
+-----------+
| 5.7.12    |
+-----------+
1 row in set (0.00 sec)
6,mysql_upgrade升級
[root@mysqlupgrade mysql]# bin/mysql_upgrade  -udbauser -p123456 -h292.168.56.99 -P3306
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
Upgrading the sys schema.
Checking databases.
sys.sys_config                                     OK
Upgrade process completed successfully.
Checking if update is needed.
[root@mysqlupgrade mysql]#

備注:
升級的時候報錯
[root@mysqlupgrade mysql]# /data/mysql/mysql/bin/mysql_upgrade -udbauser -p123456
Warning: Using a password on the command line interface can be insecure.
Looking for 'mysql' as: /data/mysql/mysql/bin/mysql
Looking for 'mysqlcheck' as: /data/mysql/mysql/bin/mysqlcheck
Error: Failed while fetching Server version! Could be due to unauthorized access.
FATAL ERROR: Upgrade failed

mysql -udbauser -p123abc456 -h292.168.56.99 -P3306
測試下這樣 是否可以連上,必須要能連上才可以。
向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

玉环县| 区。| 秦安县| 车致| 牡丹江市| 磴口县| 和田县| 德化县| 罗城| 平乡县| 鸡西市| 木里| 新晃| 满城县| 大埔区| 巍山| 鹿泉市| 太和县| 喀喇沁旗| 平定县| 石河子市| 泊头市| 台南市| 炉霍县| 阿拉善右旗| 游戏| 晴隆县| 崇仁县| 保德县| 九龙县| 五莲县| 固镇县| 海阳市| 内乡县| 江阴市| 集安市| 新昌县| 德兴市| 中牟县| 安图县| 桂阳县|