当前位置:   article > 正文

[linux]ubuntu22安装mysql5.7.40_uabntu22.04安装mysql5.7

uabntu22.04安装mysql5.7

导语:ubuntu22.04 强制安装mysql5.7.40。安装完安装其他apt依赖的时候 可能会造成mysql出问题。最好还是离线环境用。

apt update 
apt-get install zip -y 
cd /var/
rm -rf debs
wget -c http://172.16.40.245:82/debs.zip 
unzip debs.zip  
rm -rf debs.zip 
cat <<-EOF >/etc/apt/sources.list
        deb [trusted=yes] file:///var/ debs/
EOF

cat > /tmp/mysql.preseed <<EOF
mysql-community-server mysql-community-server/root-pass password deepwise
mysql-community-server mysql-community-server/re-root-pass password deepwise
EOF
debconf-set-selections /tmp/mysql.preseed

debconf-show mysql-community-server

apt update 
apt-get install mysql-server -y 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21

对应的debs依赖

链接: https://pan.baidu.com/s/1ZQtlb2q6fUhi23Zb35NFGg?pwd=09s6 提取码: 09s6
–来自百度网盘超级会员v6的分享

http://www.mobange.com/ask/db/66666.html

http://www.isimble.com/2018/03/30/docker-install-mysql-server-no-passwd/

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/507113
推荐阅读
相关标签
  

闽ICP备14008679号