当前位置:网站首页>Upgrade MySQL 5.1 to 5.66
Upgrade MySQL 5.1 to 5.66
2022-04-23 15:38:00 【franket】
stop it mysql
[[email protected] mysql]# /etc/init.d/mysql stop
Shutting down MySQL. [ OK ]
[[email protected] mysql]#
Create current snapshot
Easy to restore to the current state
[[email protected] ~]# 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
[[email protected] ~]# 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
[[email protected] ~]# vgs
VG #PV #LV #SN Attr VSize VFree
vg_test_for_mysqlupgrade 1 5 0 wz--n- 2.18t 200.00g
[[email protected] ~]# lvcreate -L 150G -s -n lv_s_data /dev/vg_test_for_mysqlupgrade/lv_data
Logical volume "lv_s_data" created.
[[email protected] ~]# 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
[[email protected] ~]#
Check mysql state
[[email protected] 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
[[email protected] src]# /etc/init.d/mysql status
MySQL is not running [FAILED]
[[email protected] src]#
版权声明
本文为[franket]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231406039354.html
边栏推荐
- What if the server is poisoned? How does the server prevent virus intrusion?
- Precautions for use of dispatching system
- What exactly does the distributed core principle analysis that fascinates Alibaba P8? I was surprised after reading it
- Detailed explanation of kubernetes (IX) -- actual combat of creating pod with resource allocation list
- 2022年中国数字科技专题分析
- 通过 PDO ODBC 将 PHP 连接到 MSSQL
- 字节面试 transformer相关问题 整理复盘
- Special analysis of China's digital technology in 2022
- 深度学习——超参数设置
- Go语言条件,循环,函数
猜你喜欢
随机推荐
Detailed explanation of kubernetes (IX) -- actual combat of creating pod with resource allocation list
How to test mobile app?
MySQL InnoDB transaction
The wechat applet optimizes the native request through the promise of ES6
Go并发和通道
【Leetcode-每日一题】安装栅栏
Today's sleep quality record 76 points
Mysql database explanation (10)
php函数
一刷313-剑指 Offer 06. 从尾到头打印链表(e)
使用 Bitnami PostgreSQL Docker 镜像快速设置流复制集群
木木一路走好呀
What are the mobile app software testing tools? Sharing of third-party software evaluation
自动化测试框架常见类型▏自动化测试就交给软件测评机构
PHP PDO ODBC loads files from one folder into the blob column of MySQL database and downloads the blob column to another folder
For examination
What is CNAs certification? What are the software evaluation centers recognized by CNAs?
pgpool-II 4.3 中文手册 - 入门教程
Mysql database explanation (IX)
Go语言条件,循环,函数