当前位置:   article > 正文

Ubuntu下升级Mysql全过程(亲测)_ubuntu mysql从5.7更新到5.0

ubuntu mysql从5.7更新到5.0


0、测试环境状态

环境:
Ubuntu 18.04.1 LTS
mysql 5.7(初次安装,没有数据)

目标:将mysql升级到8.0;不考虑数据问题;


1、下载mysql的apt的源

https://dev.mysql.com/downloads/
在这里插入图片描述
将下载的mysql-apt-config_0.8.15-1_all.deb文件复制到服务器;

2、升级

dpkg -i mysql-apt-config_0.8.15-1_all.deb 
  • 1

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

Configuration file '/etc/mysql/mysql.conf.d/mysqld.cnf'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** mysqld.cnf (Y/I/N/O/D/Z) [default=N] ? Y

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
apt update
apt install mysql-server
  • 1
  • 2

查看版本

mysql -V
mysql  Ver 8.0.25 for Linux on x86_64 (MySQL Community Server - GPL)
  • 1
  • 2

Mysql已成功升级!


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

闽ICP备14008679号