Linux(Red Hat系) に MySQL コマンドを入れる
mysql clientのインストール方法
リポジトリを追加する。
rpm -Uvh https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm
確認
yum repolist enabled | grep mysql mysql-connectors-community/x86_64 MySQL Connectors Community 167+45 mysql-tools-community/x86_64 MySQL Tools Community 132 mysql80-community/x86_64 MySQL 8.0 Community Server 283
mysql clientを検索
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd 45 packages excluded due to repository priority protections =======N/S matched: mysql-community-client ======= mysql-community-client.i686 : MySQL database client applications and tools mysql-community-client.x86_64 : MySQL database client applications and tools mysql-community-client-plugins.i686 : Shared plugins for MySQL client applications mysql-community-client-plugins.x86_64 : Shared plugins for MySQL client applications Name and summary matches only, use "search all" for everything.
MySQL client install
yum install -y mysql-community-client
適当にコマンド
mysql --version mysql Ver 8.0.26 for Linux on x86_64 (MySQL Community Server - GPL)