1. Percona Serverのインストール
sudo apt-get -y install debsums libaio1 libcurl4 libmecab2 psmisc
wget https://www.percona.com/downloads/Percona-Server-LATEST/Percona-Server-8.0.19-10/binary/debian/buster/x86_64/percona-server-common_8.0.19-10-1.buster_amd64.deb
sudo dpkg -i percona-server-common_8.0.19-10-1.buster_amd64.deb
wget https://www.percona.com/downloads/Percona-Server-LATEST/Percona-Server-8.0.19-10/binary/debian/buster/x86_64/percona-server-client_8.0.19-10-1.buster_amd64.deb
sudo dpkg -i percona-server-client_8.0.19-10-1.buster_amd64.deb
wget https://www.percona.com/downloads/Percona-Server-LATEST/Percona-Server-8.0.19-10/binary/debian/buster/x86_64/percona-server-server_8.0.19-10-1.buster_amd64.deb
sudo dpkg -i percona-server-server_8.0.19-10-1.buster_amd64.deb
データディレクトリの確認:「了解」を選択します。

rootパスワードを入力します

rootパスワードを再入力します

パスワード認証方式の確認:「了解」を選択します。

パスワード認証方式を選択します。

2. (Optional)必要に応じて以下のようにデータベースやユーザを作成します。
mysql -uroot -proot -e "CREATE DATABASE test DEFAULT CHARACTER SET utf8mb4;"
mysql -uroot -proot -e "CREATE USER test@localhost IDENTIFIED BY 'test';"
mysql -uroot -proot -e "GRANT ALL PRIVILEGES ON test.* TO 'test'@'localhost';"
mysql -uroot -proot -e "FLUSH PRIVILEGES;"
mysql -utest -ptest -e "select version();"
0 件のコメント:
コメントを投稿