2016年2月28日 星期日

Using MySQL command line with MAMP

To use the MySQL command line with MAMP or MAMP PRO, perform the following steps
  1. Start MAMP or MAMP PRO
  2. Start the server
  3. echo $PATH
  4. Open Terminal (Applications -> Utilities)
    Type in: (one line)
    /Applications/MAMP/Library/bin/mysql --host=localhost -uroot -proot
Now you can use the MySQL command line. For exmaple to show all your databases with show databases;.

沒有留言:

張貼留言