MAMP の MySQL をコマンドラインで操作する方法を解説します。 まずは、MAMPを起動します。 Finderを起動し、「アプリケーション」→「ユーティリティ」にアクセスし、「ターミナル」を起動します。 MAMPのコマンド群は「/Applications/MAMP/Library/bin/」に格納されているので、「cdコマンド」で作業ディレクトリを移動します。 $ cd /Applications/MAMP/Library/bin/ mysqlコマンドを実行します。 $ ./mysql -u root -p Enter password: ← パスワードを入力します。 Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 Server version: 5.5.29
![MAMPのMySQLをコマンドラインで操作 - Macターミナル - MAMPの使い方 - MySQL入門 - Webkaru](https://cdn-ak-scissors.b.st-hatena.com/image/square/e3424a683156d78b83be816a7e924670ff2b254d/height=288;version=1;width=512/https%3A%2F%2Fwebkaru.net%2Fmysql%2Fwp-content%2Fuploads%2F2014%2F02%2Fmamp-mysql-command-line.png)