mariaDBのアップグレード
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*mariaDBのアップグレード [#zee08b7d]
# mysql -V
mysql Ver 15.1 Distrib 10.5.29-MariaDB, for FreeBSD13.5...
このmariaDB 10.5 がEOLとのことなので、ports で、バージョ...
パッケージの入れ替え記事は、ある。
https://www.xenos.jp/~zen/blog2/index.php/2022/02/06/post...
現状で動いている、こちらのmariaDBをアップグレードしてみる...
# mysql -V
mysql Ver 15.1 Distrib 10.6.23-MariaDB, for FreeBSD13.5...
# ps aux | grep mysql
mysql 43339 0.0 0.0 13544 2740 - Is 10:36 ...
mysql 43460 0.0 1.0 574760 80256 - I 10:36 ...
root 43488 0.0 0.0 12788 2140 1 S+ 10:50 ...
# /usr/local/etc/rc.d/mysql-server stop
Stopping mysql.
Waiting for PIDS: 43460.
ports だと、最新は、mariadb118-server の様なので、これと...
# pkg delete mariadb106-server-10.6.23
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 pa...
Installed packages to be REMOVED:
mariadb106-server: 10.6.23
Number of packages to be removed: 1
The operation will free 247 MiB.
Proceed with deinstalling packages? [y/N]: y
# pkg delete mariadb106-client-10.6.23
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 pa...
Installed packages to be REMOVED:
mariadb106-client: 10.6.23
Number of packages to be removed: 1
The operation will free 52 MiB.
Proceed with deinstalling packages? [y/N]: y
[1/1] Deinstalling mariadb106-client-10.6.23...
[1/1] Deleting files for mariadb106-client-10.6.23: 100%
==> You should manually remove the "mysql" user
==> You should manually remove the "mysql" group
mariaDB 118 がインストールされたら、起動するかどうか確認。
/usr/local/etc/rc.d/mysql-server start
起動プロセスの確認
ps aux | grep mysql
ここで、システム再起動
/etc/rc.conf で、mysql_enable="YES"
となっていることを確認
正常起動すれば、
/var/run/mysql に、
mysql.sock
mysqld.pid
などが現れている。ここで、
mariadb-upgrade -u root -p
Enter password:
Phase 1/8: Checking and upgrading mysql database
Processing databases
mysql
mysql.column_stats OK
mysql.columns_priv OK
mysql.db OK
: :
: :
: :
sys.x$waits_by_host_by_latency OK
sys.x$waits_by_user_by_latency OK
sys.x$waits_global_by_latency OK
Phase 5/8: Fixing table and database names
Phase 6/8: Checking and upgrading tables
Processing databases
information_schema
performance_schema
sys
sys.sys_config OK
Phase 7/8: uninstalling plugins
Phase 8/8: Running 'FLUSH PRIVILEGES'
OK
となった。
# mariadb-upgrade -u root -p
Enter password:
This installation of MariaDB is already upgraded to 11.8...
There is no need to run mariadb-upgrade again.
You can use --force if you still want to run mariadb-upg...
**参考URLなど [#m35979d6]
CentOS7でMariaDBのバージョンを5.5から最新(11.2)にアップデ...
https://sbatlabo.sweetsblast.net/technology/web/2023/12/4...
2.8. MariaDB 10.5 から MariaDB 10.11 へのアップグレード
https://docs.redhat.com/ja/documentation/red_hat_enterpri...
MariaDB 10.6 から MariaDB 10.11 へのアップグレード方法
https://qiita.com/blue_islands/items/9e16cf18452569a30149
最後に、mariadb-upgrade を実行します。
sudo mariadb-upgrade -u root -p
----
Total access &counter(total);:本日 &counter(today);:昨...
#counter([total|today|yesterday]);
終了行:
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*mariaDBのアップグレード [#zee08b7d]
# mysql -V
mysql Ver 15.1 Distrib 10.5.29-MariaDB, for FreeBSD13.5...
このmariaDB 10.5 がEOLとのことなので、ports で、バージョ...
パッケージの入れ替え記事は、ある。
https://www.xenos.jp/~zen/blog2/index.php/2022/02/06/post...
現状で動いている、こちらのmariaDBをアップグレードしてみる...
# mysql -V
mysql Ver 15.1 Distrib 10.6.23-MariaDB, for FreeBSD13.5...
# ps aux | grep mysql
mysql 43339 0.0 0.0 13544 2740 - Is 10:36 ...
mysql 43460 0.0 1.0 574760 80256 - I 10:36 ...
root 43488 0.0 0.0 12788 2140 1 S+ 10:50 ...
# /usr/local/etc/rc.d/mysql-server stop
Stopping mysql.
Waiting for PIDS: 43460.
ports だと、最新は、mariadb118-server の様なので、これと...
# pkg delete mariadb106-server-10.6.23
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 pa...
Installed packages to be REMOVED:
mariadb106-server: 10.6.23
Number of packages to be removed: 1
The operation will free 247 MiB.
Proceed with deinstalling packages? [y/N]: y
# pkg delete mariadb106-client-10.6.23
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 pa...
Installed packages to be REMOVED:
mariadb106-client: 10.6.23
Number of packages to be removed: 1
The operation will free 52 MiB.
Proceed with deinstalling packages? [y/N]: y
[1/1] Deinstalling mariadb106-client-10.6.23...
[1/1] Deleting files for mariadb106-client-10.6.23: 100%
==> You should manually remove the "mysql" user
==> You should manually remove the "mysql" group
mariaDB 118 がインストールされたら、起動するかどうか確認。
/usr/local/etc/rc.d/mysql-server start
起動プロセスの確認
ps aux | grep mysql
ここで、システム再起動
/etc/rc.conf で、mysql_enable="YES"
となっていることを確認
正常起動すれば、
/var/run/mysql に、
mysql.sock
mysqld.pid
などが現れている。ここで、
mariadb-upgrade -u root -p
Enter password:
Phase 1/8: Checking and upgrading mysql database
Processing databases
mysql
mysql.column_stats OK
mysql.columns_priv OK
mysql.db OK
: :
: :
: :
sys.x$waits_by_host_by_latency OK
sys.x$waits_by_user_by_latency OK
sys.x$waits_global_by_latency OK
Phase 5/8: Fixing table and database names
Phase 6/8: Checking and upgrading tables
Processing databases
information_schema
performance_schema
sys
sys.sys_config OK
Phase 7/8: uninstalling plugins
Phase 8/8: Running 'FLUSH PRIVILEGES'
OK
となった。
# mariadb-upgrade -u root -p
Enter password:
This installation of MariaDB is already upgraded to 11.8...
There is no need to run mariadb-upgrade again.
You can use --force if you still want to run mariadb-upg...
**参考URLなど [#m35979d6]
CentOS7でMariaDBのバージョンを5.5から最新(11.2)にアップデ...
https://sbatlabo.sweetsblast.net/technology/web/2023/12/4...
2.8. MariaDB 10.5 から MariaDB 10.11 へのアップグレード
https://docs.redhat.com/ja/documentation/red_hat_enterpri...
MariaDB 10.6 から MariaDB 10.11 へのアップグレード方法
https://qiita.com/blue_islands/items/9e16cf18452569a30149
最後に、mariadb-upgrade を実行します。
sudo mariadb-upgrade -u root -p
----
Total access &counter(total);:本日 &counter(today);:昨...
#counter([total|today|yesterday]);
ページ名: