現在Railsの環境構築をしている所です。
WSLのUbuntu 18.04でMySQL 5.7をセットアップしたいのですが、
$ sudo apt install mysql-server mysql-client
を実行してしまうと最新のMySQL8.0がインストールされてしまうみたいです。既存のプロジェクトが5.7なので5.7を使いたいのですがバージョン指定するコマンドの記述方法がわかりません。
調べたのですがでてきませんでした。
どなたかご教授いただければ幸いです。。
よろしくお願い致します。
##試したこと
sudo apt install -v mysql-server 5.7 mysql-client sudo apt-get install mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server-5.7 mysql-server-core-5.7
調べて↑を入力してみましたがダメでした。
二つ目の実行結果は以下のようなエラーが出ました。
Reading package lists... Done Building dependency tree Reading state information... Done Package mysql-client-5.7 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: mariadb-server-core-10.3 mariadb-server-10.3 mariadb-client-10.3 Package mysql-client-core-5.7 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: mariadb-client-core-10.3 Package mysql-server-5.7 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: mariadb-server-10.3 Package mysql-server-core-5.7 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: mariadb-server-core-10.3 E: Package 'mysql-client-5.7' has no installation candidate E: Package 'mysql-client-core-5.7' has no installation candidate E: Package 'mysql-server-5.7' has no installation candidate E: Package 'mysql-server-core-5.7' has no installation candidate
ご返答お待ちしております。
回答1件
あなたの回答
tips
プレビュー