N NsK macrumors member Original poster Dec 7, 2006 63 0 Sep 27, 2009 #1 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
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
N NsK macrumors member Original poster Dec 7, 2006 63 0 Sep 27, 2009 #2 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?
savar macrumors 68000 Jun 6, 2003 1,950 0 District of Columbia Sep 27, 2009 #3 NsK said: 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? Click to expand... Code: mysql -h <your IP address> -u root -p Also, try 'man mysql' to learn about how to use the command line client.
NsK said: 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? Click to expand... Code: mysql -h <your IP address> -u root -p Also, try 'man mysql' to learn about how to use the command line client.