1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

mysql コマンドを実行できるようにしたいけど出来ないよ〜

Last updated at Posted at 2018-07-25

mysqlコマンドを実行したいので以下を打った。

$sudo export PATH=/usr/local/opt/mysql@5.6/bin:$PATH

確認の
which mysqlを打つと
/usr/local/opt/mysql@5.6/bin/mysql
とは出なかった。。。。

なので以下を参考にhome brewを入れ直した。

入れ直して、以下のコマンドを実行!
$ sudo cp /usr/local/opt/mysql@5.6/bin/mysql /usr/local/bin


結果
/usr/local/opt/mysql@5.6/bin/mysql
が表示された!
やったね

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?