簡體   English   中英

無法將 MySQL 從 8.0.3 升級到 8.0.14

[英]Fail to upgrade MySQL from 8.0.3 to 8.0.14

我想將 MySQL 服務器從8.0.3升級到8.0.14 我遵循了以下步驟:

  1. 啟動一個版本為 8.0.3 的 mysql 容器

    $ docker run --rm --name=tmp1 -e MYSQL_ROOT_PASSWORD=root -v $PWD/Desktop/mysql-debug/:/var/lib/mysql mysql:8.0.3
  2. 運行容器后,

     $ docker exec -it tmp1 mysql -uroot -proot -e "select 1;" mysql: [Warning] Using a password on the command line interface can be insecure. +---+ | 1 | +---+ | 1 | +---+ $ docker exec -it tmp1 mysql -uroot -proot -e "show databases;" mysql: [Warning] Using a password on the command line interface can be insecure. +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | | sys | +--------------------+ $ docker exec -it tmp1 mysql -uroot -proot -e "create database abc;" mysql: [Warning] Using a password on the command line interface can be insecure. $ docker exec -it tmp1 mysql -uroot -proot -e "show databases;" mysql: [Warning] Using a password on the command line interface can be insecure. +--------------------+ | Database | +--------------------+ | abc | | information_schema | | mysql | | performance_schema | | sys | +--------------------+
  3. 刪除前一個並運行版本為 8.0.14 的新容器,並使用與 8.0.3 相同的數據目錄( $PWD/Desktop/mysql-debug/:/var/lib/mysql

     $ docker rm -f <mysql_container_id> $ docker run --rm --name=tmp1 -e MYSQL_ROOT_PASSWORD=root -v $PWD/Desktop/mysql-debug/:/var/lib/mysql mysql:8.0.14

但是,我收到以下錯誤:

$ docker run --rm --name=tmp1 -e MYSQL_ROOT_PASSWORD=root -v $PWD/Desktop/mysql-debug/:/var/lib/mysql mysql:8.0.14
2020-01-21T07:38:53.346774Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it' is deprecated and will be removed in a future release.
2020-01-21T07:38:53.346846Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.14) starting as process 1
2020-01-21T07:38:55.793052Z 1 [ERROR] [MY-013326] [Server] Upgrading the server from server version '0' is not supported.
2020-01-21T07:38:55.793067Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine
2020-01-21T07:38:55.793257Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2020-01-21T07:38:55.793504Z 0 [ERROR] [MY-010119] [Server] Aborting
2020-01-21T07:38:56.513813Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.14)  MySQL Community Server - GPL.

我需要做些什么來克服這個問題。 任何幫助將不勝感激。

不支持從 MySQL 8.0.3 升級到 8.0.14。 我從這里找到了有關MySQl升級過程的更多信息

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM