居众装饰,永州网站建设优化,怎样做网站教程,seo顾问是啥一、概述
mysql8.0.33 存在如下高危漏洞#xff0c;需要通过升级版本修复漏洞
Oracle MySQL Cluster 安全漏洞(CVE-2023-0361) mysql/8.0.33 Apache Skywalking 8.3 SQL注入漏洞 二、查看mysql版本及安装包信息
[rootlocalhost mysql]# mysql -V
mysql Ver 8.0.33 fo…一、概述
mysql8.0.33 存在如下高危漏洞需要通过升级版本修复漏洞
Oracle MySQL Cluster 安全漏洞(CVE-2023-0361) mysql/8.0.33 Apache Skywalking 8.3 SQL注入漏洞 二、查看mysql版本及安装包信息
[rootlocalhost mysql]# mysql -V
mysql Ver 8.0.33 for Linux on x86_64 (MySQL Community Server - GPL)
[rootlocalhost mysql]#
[rootlocalhost mysql]# rpm -qa|grep mysql
[rootlocalhost mysql]# ps -ef|grep mysql
mysql 290614 1 0 7月11 ? 00:00:00 /bin/sh /opt/mysql/mysql_base/bin/mysqld_safe --defaults-file/etc/my.cnf
mysql 291491 290614 2 7月11 ? 14:48:00 /opt/mysql/mysql_base/bin/mysqld --defaults-file/etc/my.cnf --basedir/opt/mysql/mysql_base --datadir/opt/mysql/data --plugin-dir/opt/mysql/mysql_base/lib/plugin --log-errorerr.log --open-files-limit65535 --pid-filelocalhost.localdomain.pid --socket/opt/mysql/data/mysql.sock --port3306
root 3002932 2950183 0 11:09 pts/0 00:00:00 grep --colorauto mysql
[rootlocalhost mysql]# 三、下载升级包
复制如下浏览器
https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.34-linux-glibc2.12-x86_64.tar.xz
下载这个安装包
mysql-8.0.34-linux-glibc2.12-x86_64.tar.xz
四、升级mysql版本
##mysqldump备份数据库
省略##关闭数据库
[mysqllocalhost mysql]$ mysqladmin -uroot -p密码 shutdown
mysqladmin: [Warning] Using a password on the command line interface can be insecure.
[mysqllocalhost mysql]$ ps -ef|grep mysql
root 3003230 2950183 0 11:12 pts/0 00:00:00 su - mysql
mysql 3003231 3003230 0 11:12 pts/0 00:00:00 -bash
mysql 3003305 3003231 0 11:13 pts/0 00:00:00 ps -ef
mysql 3003306 3003231 0 11:13 pts/0 00:00:00 grep --colorauto mysql
[mysqllocalhost mysql]$ ##解压安装包
[rootlocalhost mysql]# xz -d mysql-8.0.34-linux-glibc2.12-x86_64.tar.xz
[rootlocalhost mysql]# tar -xf mysql-8.0.34-linux-glibc2.12-x86_64.tar
[rootlocalhost mysql]# chown -R mysql.mysql mysql-8.0.34-linux-glibc2.12-x86_64
[rootlocalhost mysql]# su - mysql##替换前
[mysqllocalhost mysql]$ ls -lrt mysql_base
lrwxrwxrwx 1 mysql mysql 35 5月 10 19:54 mysql_base - mysql-8.0.33-linux-glibc2.12-x86_64
[mysqllocalhost mysql]$ ##删除软链接
[mysqllocalhost mysql]$ rm -rf mysql_base##使用新版本创建软链接
[mysqllocalhost mysql]$ ln -sf mysql-8.0.34-linux-glibc2.12-x86_64 mysql_base
[mysqllocalhost mysql]$ ls -lrt mysql_base
lrwxrwxrwx 1 mysql mysql 35 8月 6 11:20 mysql_base - mysql-8.0.34-linux-glibc2.12-x86_64
[mysqllocalhost mysql]$ ##启动数据库
[mysqllocalhost mysql]$ /opt/mysql/mysql_base/bin/mysqld_safe --datadir/opt/mysql/data ##查看进程
[mysqllocalhost mysql]$ ps -ef|grep mysql
root 3004011 2950183 0 11:20 pts/0 00:00:00 su - mysql
mysql 3004012 3004011 0 11:20 pts/0 00:00:00 -bash
mysql 3004164 3004012 0 11:21 pts/0 00:00:00 /bin/sh /opt/mysql/mysql_base/bin/mysqld_safe --datadir/opt/mysql/data
mysql 3005043 3004164 48 11:21 pts/0 00:00:15 /opt/mysql/mysql_base/bin/mysqld --basedir/opt/mysql/mysql_base --datadir/opt/mysql/data --plugin-dir/opt/mysql/mysql_base/lib/plugin --log-errorerr.log --open-files-limit65535 --pid-filelocalhost.localdomain.pid --socket/opt/mysql/data/mysql.sock --port3306
mysql 3005366 3004012 0 11:22 pts/0 00:00:00 ps -ef
mysql 3005367 3004012 0 11:22 pts/0 00:00:00 grep --colorauto mysql
[mysqllocalhost mysql]$ ##查看数据库版本
[mysqllocalhost mysql]$ mysql -V
mysql Ver 8.0.34 for Linux on x86_64 (MySQL Community Server - GPL)
[mysqllocalhost mysql]$