MySQL Forums
Forum List  »  Japanese

Re: MySQL5.5からMySQL8.0への移行
Posted by: Ryusuke Kajiyama
Date: June 19, 2022 11:35AM

MySQLサーバーのユーザー情報を格納しているmysql.userテーブルが5.5のテーブル定義に書き換えられてしまっているため、8.0側のMySQLサーバーを停止後に--upgrade=FORCEオプションを付けて起動することで非互換のテーブル定義やメタデータの更新などを行った上で起動させることが必要です。
https://dev.mysql.com/doc/refman/8.0/ja/server-options.html#option_mysqld_upgrade

> ・MySQL8.0側にユーザ情報を除いて移行する方法はあるか
mysqldumpの--ignore-tableオプションを用いることで特定のテーブルをダンプの対象から除外できます。このオプションの値としてmysql.userをご指定いただくことでユーザー情報を除いて移行可能です。

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: MySQL5.5からMySQL8.0への移行
640
June 19, 2022 11:35AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.