現在Railsの勉強を進めており、ECサイトの作成をしてみようと思っているのですが
タイトル通りCentOS6.6上でMySQLが実行できない状態に陥っています。
まず試したこと、エラーメッセージ等を記述します。
まだ勉強中の身ですので、不足や見当違いの部分に関してはご容赦ください。
●環境
Mac OS High Sierra
VirtualBox
Vagrant
CentOS 6.6
Linuxbrew
●実行したコマンド
[vagrant@localhost environment]$ brew install mysql@5.7 ==> Installing dependencies for mysql@5.7: ncurses, libedit ==> Installing mysql@5.7 dependency: ncurses . . . We've installed your MySQL database without a root password. To secure it run: mysql_secure_installation MySQL is configured to only allow connections from localhost by default To connect run: mysql -uroot . . .
[vagrant@localhost environment]$ brew tap homebrew/services ==> Tapping homebrew/services . . . Unpacking objects: 100% (14/14), done. Tapped 1 command (42 files, 188.6KB).
●エラー部分
[vagrant@localhost environment]$ brew services start mysql@5.7 sh: list: command not found Error: Failure while executing; `'' load -w /home/vagrant/Library/LaunchAgents/homebrew.mxcl.mysql@5.7.plist` exited with 1.
●試したこと
・環境ごと削除、再インストール
・/home/vagrant/Library/LaunchAgents/homebrew.mxcl.mysql@5.7.plist
を一度削除した上で上記コマンドを実行
現在再インストール直後なので中身はクリーンな状態です。
(GitとLinuxbrewのみインストールしている状態)
●MySQLの状態
[vagrant@localhost environment]$ brew list | grep mysql mysql@5.7
となっていますが
[vagrant@localhost environment]$ mysql -uroot -bash: mysql: command not found
や
[vagrant@localhost environment]$ mysql --version -bash: mysql: command not found
[vagrant@localhost environment]$ brew services restart mysql sh: list: command not found sh: list: command not found sh: list: command not found Error: Formula `mysql` is not installed.
はこのような結果です。
listコマンドがnot foundなのですがこのコマンドが何に属しているのかわからず...
不足部分ございましたら追記いたしますので
何卒よろしくお願いいたします。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/09/11 14:08
2018/09/18 07:56