https://end0tknr.hateblo.jp/entry/20230304/1677929167
先程の上記entryで、「yum install mysql」しましたが、 mysql_configが含まれる、mysql-develをyum installできませんでしたので、 mysql80-communityのrepositoryから、改めてinstall
参考url
リポジトリの追加
$ curl -OL https://dev.mysql.com/get/mysql80-community-release-el9-1.noarch.rpm $ sudo yum install ./mysql80-community-release-el9-1.noarch.rpm ==================================================================== Package Architecture Version Repository ==================================================================== Installing: mysql80-community-release noarch el9-1 @commandline ==================================================================== 【略】 Installed: mysql80-community-release-el9-1.noarch $ yum repolist enabled | grep mysql mysql-connectors-community MySQL Connectors Community mysql-tools-community MySQL Tools Community mysql80-community MySQL 8.0 Community Server
install
$ sudo yum install mysql-community-server ================================================================================= Package Arch Version Repository ================================================================================= Installing: mysql-community-server x86_64 8.0.32-1.el9 mysql80-community Installing dependencies: mysql-community-client x86_64 8.0.32-1.el9 mysql80-community mysql-community-client-plugins x86_64 8.0.32-1.el9 mysql80-community mysql-community-common x86_64 8.0.32-1.el9 mysql80-community mysql-community-icu-data-files x86_64 8.0.32-1.el9 mysql80-community mysql-community-libs x86_64 8.0.32-1.el9 mysql80-community net-tools x86_64 2.0-0.62.20160912git.el9 rhel-9-for-x86_64-baseos-rpms ================================================================================= $ sudo yum install mysql-community-devel ======================================================================= Package Architecture Version Repository ======================================================================= Installing: mysql-community-devel x86_64 8.0.32-1.el9 mysql80-community =======================================================================
自動起動
$ sudo systemctl enable mysqld $ sudo systemctl start mysqld
mysqlへの接続
パスワードなしで接続できます
$ mysql -u root Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 11 Server version: 8.0.32 MySQL Community Server - GPL mysql>