Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

NsK

macrumors member
Original poster
Dec 7, 2006
63
0
I have installed the latest version of MAMP to learn php and mysql web development. I am trying to access to the databases from terminal but I am not able to do so. Can anyone tell me how to access to mysql from terminal with MAMP.

thanks
 
Okay I just found teh solution

-Launch MAMP
-Launch Terminal
-In Terminal: /Applications/MAMP/Library/bin/mysql -uroot -p
-Entered password


now I can connect to it...but is there a way to connect to the database remotely from another computer with MAMP?
 
Okay I just found teh solution

-Launch MAMP
-Launch Terminal
-In Terminal: /Applications/MAMP/Library/bin/mysql -uroot -p
-Entered password


now I can connect to it...but is there a way to connect to the database remotely from another computer with MAMP?

Code:
mysql -h <your IP address> -u root -p

Also, try 'man mysql' to learn about how to use the command line client.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.