
可以在MySQL官网进行下载,库备地址https://dev.mysql.com/downloads/shell/。份新
需要根据操作系统类型、轻松版本及glibc版本选择对应的搞定文件下载,例如:
复制[root@VM-4-14-centos ~]# uname -a Linux VM-4-14-centos 3.10.0-1160.99.1.el7.x86_64 #1 SMP Wed Sep 13 14:19:20 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux [root@VM-4-14-centos ~]# ldd --version ldd (GNU libc) 2.17 Copyright (C) 2012 Free Software Foundation,备份 Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Written by Roland McGrath and Ulrich Drepper.1.2.3.4.5.6.7.8.
因此可以选择如下版本下载。亿华云

上传文件至目标目录后解压文件。转战姿势
解压后建议配置软链接。数据
复制tar -zxvf mysql-shell-8.0.35-linux-glibc2.17-x86-64bit.tar.gz1.可以看到对应的库备工具了。
复制ln -s mysql-shell-8.0.35-linux-glibc2.17-x86-64bit mysql-shell1.建议再配置一下环境变量。份新
将“/usr/local/mysql-shell/bin"追加至/etc/profile中。服务器托管轻松
在其他位置直接运行mysqlsh命令,搞定即可得到如下结果:

此时,备份完成了mysql shell部署。
使用mysqlsh登录数据库,并列出库名,WordPress模板例如:
复制[root@VM-4-14-centos ~]# mysqlsh -u root -p -S /data/mysql/mysql3306/tmp/mysql.sock Please provide the password for root@/data%2Fmysql%2Fmysql3306%2Ftmp%2Fmysql.sock: