概要
Ubuntu22.04にphpMyAdminをインストールする方法を解説しています。
パッケージの更新
sudo apt update sudo apt upgrade
インストール
sudo apt install phpmyadmin php-mbstring php-zip php-gd php-json php-curl libapache2-mod-php8.1
Apacheを選択して「OK」を押します。
「スペース」→「Tab」→「Enter」の順で押しましょう

「No」を選択します。

WebブラウザからphpMyAdminにアクセス
https://IPかドメイン/phpmyadmin と入力しアクセスし下記の画像のように出ていたら成功です。
https://your_domain_or_IP/phpmyadmin

ログインユーザー作成(root)
sudo mysql
passwordの部分に任意のパスワードを設定してください。
ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'password';