0
1

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 3 years have passed since last update.

MAMP の MySQL をコマンドラインから触りたい

Posted at

PHP の学習で作った MAMP 環境の MySQL に phpadmin ではなく CLI からアクセスする方法を後で見返すために書きます。
環境
macOS10.14.6 Mojave
MAMP5.6(394)

MySQL の場所

/Applications/MAMP/Library/bin

.bash.profile などにPATH通せばいいんですが、個人的都合で homebrew で入れた MySQLの方を優先したい。
なので、 /Applications/MAMP/Library/bin に移動してから

./mysql -u ユーザー名 -p

または

/Applications/MAMP/Library/bin/mysql -u ユーザー名 -p
0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?