関連するかも情報 |
MariaDB が入っている Ubuntu 21.04 (Hirsute Hippo) に MySQL をインストールしようとすると、同時に MariaDB のパッケージが削除されそう。 $ sudo apt install mysql-server -s でどうなるか見てみる。
[t] 2022-01-18 08:06:51
|
全文検索に mecab が使えそうな感じ。
以下の追加パッケージがインストールされます: libevent-core-2.1-7 libevent-pthreads-2.1-7 libmecab2 libprotobuf-lite23 mecab-ipadic mecab-ipadic-utf8 mecab-utils mysql-client-8.0 mysql-client-core-8.0 mysql-server-8.0 mysql-server-core-8.0
[t] 2022-01-18 08:07:54
|
MariaDB のパッケージは削除される。
以下のパッケージは「削除」されます: mariadb-client-10.5 mariadb-client-core-10.5 mariadb-plugin-mroonga mariadb-server mariadb-server-10.5 mariadb-server-core-10.5
[t] 2022-01-18 08:08:20
|
MySQL のパッケージ。
以下のパッケージが新たにインストールされます: libevent-core-2.1-7 libevent-pthreads-2.1-7 libmecab2 libprotobuf-lite23 mecab-ipadic mecab-ipadic-utf8 mecab-utils mysql-client-8.0 mysql-client-core-8.0 mysql-server mysql-server-8.0 mysql-server-core-8.0
[t] 2022-01-18 08:08:51
|
MySQL をインストールしたとき MariaDB のデータベースの中身そのまま残るんだろうか。試してみるかな。
[t] 2022-01-18 08:09:33
|
たぶん、これはデータそのものかな。
dpkg: 警告: mariadb-server-core-10.5 の削除中、ディレクトリ '/usr/share/mysql' が空でないため削除できませんでした
[t] 2022-01-18 08:13:34
|
mecab 入るのうれしい。
update-alternatives: /var/lib/mecab/dic/debian (mecab-dictionary) を提供するために自動モードで /var/lib/mecab/dic/ipadic を使います
[t] 2022-01-18 08:13:54
|
mysql-server-8.0 (8.0.27-0ubuntu0.21.04.1) を設定しています ...
[t] 2022-01-18 08:14:29
|
今回の環境では設定はいじっていないのでYかな。
設定ファイル '/etc/init.d/mysql' ==> これはインストールしてから (あなたかスクリプトによって) 変更されています。 ==> パッケージ配布元が更新版を提供しています。
[t] 2022-01-18 08:15:03
|
どうしますか? 以下の選択肢があります: Y か I : パッケージメンテナのバージョンをインストールする N か O : 現在インストールされている自分のバージョンを残す D : 両バージョンの差異を表示する Z : 状況を調査するためにシェルを開始する
[t] 2022-01-18 08:15:13
|
こっちもいじっていないはずなのでYで。
設定ファイル '/etc/logrotate.d/mysql-server' ==> これはインストールしてから (あなたかスクリプトによって) 削除されています。 ==> パッケージ配布元が更新版を提供しています。
[t] 2022-01-18 08:15:32
|
新バージョンの設定ファイル /etc/logrotate.d/mysql-server をインストールしています ... 新バージョンの設定ファイル /etc/mysql/debian-start をインストールしています ...
[t] 2022-01-18 08:15:59
|
あら・・・
MySQL has been frozen to prevent damage to your system. Please see /etc/mysql/FROZEN for help.
mysql-server (8.0.27-0ubuntu0.21.04.1) を設定しています ...
[t] 2022-01-18 08:17:26
|
mariadb のパッケージが残ってる。
$ dpkg -l | egrep "mariadb|mysql" | grep ^i | col | cut -f 1 (中略) ii mariadb-common ii mysql-client-8.0 ii mysql-client-core-8.0 ii mysql-common ii mysql-server ii mysql-server-8.0 ii mysql-server-core-8.0
[t] 2022-01-18 08:26:10
|
/etc/mysql/FROZEN を見ると、
This MySQL or variant installation has entered "frozen mode". Maintainer scripts will avoid making changes or starting the daemon until manually released from this state. See /usr/share/doc/mysql-common/README for general information about this mode.
[t] 2022-01-18 08:28:25
|
MariaDB から MySQL へはダウングレードしたみたいになってる。
In this particular case, an incompatible downgrade attempt has been detected. This can be resolved in one of two ways:
[t] 2022-01-18 08:29:02
|
【話題のキーワード】 1. マンモス 2. 前田大然 3. 285ヘクタール 4. ワクチンパッケージ 5. 松嶋菜々子 6. 雪降ってる 7. サポート詐欺 8. 阪急千里線 https://search.yahoo.co.jp/realtime #buzzbot
[t] 2022-01-18 08:30:56
|
データをなんとかしないと。
1. Change the contents of /var/lib/mysql/ to contain database data that is compatible with the currently installed MySQL or variant daemon version.
[t] 2022-01-18 08:31:31
|
やっぱり、ダンプしておいたデータを入れ直すのが良さそうかな・・・
For example: you could restore from a backup. Alternatively you could do a dump using a future version binary and then a restore using the current version binary.
[t] 2022-01-18 08:32:09
|
MySQL ダウングレードな方法も。
2. Switch to a MySQL or variant daemon version that is compatible with the data currently in /var/lib/mysql/. For example, if you have attempted a downgrade from mysql-server-5.7 to mysql-server-5.6, you could "apt install mysql-server-5.7" again.
[t] 2022-01-18 08:33:39
|