gpt4 book ai didi

mysql - 无法从 MySQL 8.0.12 降级到更早版本

转载 作者:行者123 更新时间:2023-12-04 15:54:02 24 4
gpt4 key购买 nike

我一直在四处寻找,但没能找到如何降级我的 MySQL 版本的方法。我试过 brew info MySQL 然后 brew switch MySQL 5.7.21 但它说它不在地窖里。

我按照指南运行 brew install mysql@5.7 但是当我检查 -v 时它说它是一个未知命令。

如果我遗漏了任何细节,请告诉我。这是我第一次伸出援手。

最佳答案

使用 APT 存储库

第 1 步:重新配置 MySQL 并选择旧版本:

sudo dpkg-reconfigure mysql-apt-config

第 2 步:运行 apt-get 更新:

sudo apt-get update

第 3 步:删除当前版本:

sudo apt-get remove mysql-community-server mysql-client mysql-common mysql-community-client mysql-community-client-core mysql-community-server mysql-community-server-core -y

sudo apt-get autoremove

第 4 步:安装旧版本(自动选择,因为您已重新配置):

sudo apt-get install -y mysql-server

关于mysql - 无法从 MySQL 8.0.12 降级到更早版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52629996/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com