当前位置:网站首页>Upgrade MySQL 5.1 to 5.66
Upgrade MySQL 5.1 to 5.66
2022-04-23 15:38:00 【franket】
stop it mysql
[root@upgrade-slave mysql]# /etc/init.d/mysql stop
Shutting down MySQL. [ OK ]
[root@upgrade-slave mysql]#
Create current snapshot
Easy to restore to the current state
[root@upgrade-slave ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_test_for_mysqlupgrade-lv_root
99G 3.4G 90G 4% /
tmpfs 63G 0 63G 0% /dev/shm
/dev/sda1 477M 62M 390M 14% /boot
/dev/mapper/vg_test_for_mysqlupgrade-lv_data
1.7T 927G 726G 57% /data
/dev/mapper/vg_test_for_mysqlupgrade-lv_home
50G 53M 47G 1% /home
/dev/mapper/vg_test_for_mysqlupgrade-lv_var
99G 302M 94G 1% /var
[root@upgrade-slave ~]# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
lv_data vg_test_for_mysqlupgrade -wi-ao---- 1.73t
lv_home vg_test_for_mysqlupgrade -wi-ao---- 50.00g
lv_root vg_test_for_mysqlupgrade -wi-ao---- 100.00g
lv_swap vg_test_for_mysqlupgrade -wi-ao---- 16.00g
lv_var vg_test_for_mysqlupgrade -wi-ao---- 100.00g
[root@upgrade-slave ~]# vgs
VG #PV #LV #SN Attr VSize VFree
vg_test_for_mysqlupgrade 1 5 0 wz--n- 2.18t 200.00g
[root@upgrade-slave ~]# lvcreate -L 150G -s -n lv_s_data /dev/vg_test_for_mysqlupgrade/lv_data
Logical volume "lv_s_data" created.
[root@upgrade-slave ~]# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
lv_data vg_test_for_mysqlupgrade owi-aos--- 1.73t
lv_home vg_test_for_mysqlupgrade -wi-ao---- 50.00g
lv_root vg_test_for_mysqlupgrade -wi-ao---- 100.00g
lv_s_data vg_test_for_mysqlupgrade swi-a-s--- 150.00g lv_data 0.00
lv_swap vg_test_for_mysqlupgrade -wi-ao---- 16.00g
lv_var vg_test_for_mysqlupgrade -wi-ao---- 100.00g
[root@upgrade-slave ~]#
Check mysql state
[root@upgrade-slave src]# ps faux | grep mysql
root 11270 0.0 0.0 103308 824 pts/1 S+ 21:22 0:00 | \_ grep mysql
root 136775 0.0 0.0 189236 3732 pts/2 S+ 20:58 0:00 | \_ sudo tail -f /var/lib/mysql/upgrade-slave.err
root 136889 0.0 0.0 100944 612 pts/2 S+ 20:58 0:00 | \_ tail -f /var/lib/mysql/upgrade-slave.err
root 137921 0.0 0.0 189236 3736 pts/3 S+ 20:59 0:00 \_ sudo tail -f /var/lib/mysql/upgrade-slave.err
root 137993 0.0 0.0 100944 608 pts/3 S+ 20:59 0:00 \_ tail -f /var/lib/mysql/upgrade-slave.err
[root@upgrade-slave src]# /etc/init.d/mysql status
MySQL is not running [FAILED]
[root@upgrade-slave src]#
版权声明
本文为[franket]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231406039354.html
边栏推荐
- regular expression
- 木木一路走好呀
- Example of time complexity calculation
- 2022年中国数字科技专题分析
- Do keyword search, duplicate keyword search, or do not match
- 字符串最后一个单词的长度
- php类与对象
- MySQL query library size
- Demonstration meeting on startup and implementation scheme of swarm intelligence autonomous operation smart farm project
- 基于 TiDB 的 Apache APISIX 高可用配置中心的最佳实践
猜你喜欢
随机推荐
PHP PDO ODBC将一个文件夹的文件装载到MySQL数据库BLOB列,并将BLOB列下载到另一个文件夹
APISIX jwt-auth 插件存在错误响应中泄露信息的风险公告(CVE-2022-29266)
Educational Codeforces Round 127 A-E题解
如果conda找不到想要安装的库怎么办PackagesNotFoundError: The following packages are not available from current
Knn,Kmeans和GMM
fatal error: torch/extension.h: No such file or directory
网站建设与管理的基本概念
Functions (Part I)
Node. JS ODBC connection PostgreSQL
Mobile finance (for personal use)
T2 iCloud日历无法同步
MultiTimer v2 重构版本 | 一款可无限扩展的软件定时器
s16.基于镜像仓库一键安装containerd脚本
Explanation of redis database (III) redis data type
Special analysis of China's digital technology in 2022
函数(第一部分)
Example of time complexity calculation
Openstack theoretical knowledge
Common interview questions of operating system:
幂等性的处理