版本信息 和下载地址
下载地址: 链接: https://pan.baidu.com/s/1H7P3uN3dk4poFKAHeik-0Q 提取码: th3g
官方下载地址: https://dev.mysql.com/downloads/mysql/
root@fangxin-test:~# /usr/local/mysql/bin/mysqldump --version
mysqldump Ver 10.13 Distrib 5.7.17, for Linux (x86_64)
root@fangxin-test:~# /usr/local/mysql/bin/mysql --version
mysql Ver 14.14 Distrib 5.7.17, for Linux (x86_64) using EditLine wrapper
mysqldump备份还原
由于今天要升级发布客户的线上环境 线下模拟发布测试,于是吧备份文件导入测试
MYSQL [ops@fangxin-test]>source /data/soft/kerp-2020-07-30-07-30.sql;
ERROR 3105 (HY000) at line 30: The value specified for generated column ’vir_uuid’ in table ‘vr_sources’ is not allowed.
ERROR 3105 (HY000) at line 31: The value specified for generated column ’vir_uuid’ in table ‘vr_sources’ is not allowed.
查看表结构 发现表里面的vr_sourxe_uuid使用的是虚拟咧实现的
然后查询mysqldump版本
root@fangxin-test:~# /usr/local/mysql/bin/mysqldump --version
mysqldump Ver 10.13 Distrib 5.7.17, for Linux (x86_64)
发现mysqldump版本是5.7.17版本
升级mysqldump版本为5.7.31版本
由于mysqldump在3-mysql-community-client依赖包里面 需要下载安装
dpkg安装
链接: https://pan.baidu.com/s/1H7P3uN3dk4poFKAHeik-0Q 提取码: th3g
由于我的mysql是编译安装到/usr/local/mysql下
dpkg -i安装到/usr/bin下 互不影响 备份只需要使用绝对路径即可
由于存在依赖关系,我在网盘里面已经标注了 1-3,只需要顺序安装即可
dpkg -i 1-libmysqlclient20_5.7.31-1debian9_amd64.deb
dpkg -i 2-libmysqlclient-dev_5.7.31-1debian9_amd64.deb
dpkg -i 3-mysql-community-client_5.7.31-1debian9_amd64.deb
安装报错 只需要去官方下载对应的安装包即可
如果报错 需要卸载对应的安装包在下载新的安装台替换即可
选择好自己对应的版本和服务器版本