Skip to content

Instantly share code, notes, and snippets.

@chronosceptor
Created February 27, 2019 16:28
Show Gist options
  • Select an option

  • Save chronosceptor/ef847b74ef790e890e41f7c20b3e1d7c to your computer and use it in GitHub Desktop.

Select an option

Save chronosceptor/ef847b74ef790e890e41f7c20b3e1d7c to your computer and use it in GitHub Desktop.
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.- Open Terminal (Applications -> Utilities)
-- 4.- Type in: (one line)
/Applications/MAMP/Library/bin/mysql --host=localhost -uroot -proot
-- select database
mysql> use DATABASE_NAME;
-- select sql
mysql> source path/to/file.sql;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment