Craft 3 Command setup failing I've installed Craft 3 through composer and I'm attempting to work through the setup process within terminal:

MacBook-Pro:~ jamie$ ~/Documents/repos/__craft-3-beta/craft setup
Which database driver are you using? [mysql,pgsql,?]: mysql
Database server name or IP address: [localhost] 
Database port: [3306] 
Database username: [root] 
Database password: 
Database name: craft-three
Database table prefix: 
Testing database credentials... failed: SQLSTATE[HY000] [2002] No such file or directory
Which database driver are you using? [mysql,pgsql,?]: mysql
Database server name or IP address: [localhost] 127.0.0.1
Database port: [3306] 
Database username: [root] 
Database password: 
Database name: [craft-three] 
Database table prefix: 
Testing database credentials... failed: SQLSTATE[HY000] [2002] Connection refused


Notice that I get 2 different errors when using the IP add and localhost for DB_SERVER

I also cant get it working when manually filling in the .env file.

I'm using MAMP Pro on a Mac. 

Any help on this will be greatly appreciated.
I was just confronted with this too. You most likely need to specify the unixSocket attribute for the MAMP Pro database. Take a look at my problem and solution at Craft CLI RC1 Connectivity Issues with MAMP Pro. Though if you're not able to get it working at all even manually I would definitely suggest resetting your root password in MAMP Pro as well.