Thread:Project:Support desk/importdump.php help (MAMP)

Hello, When trying to use the importdump.php script, I get the error: DB connection error: No such file or directory (localhost) Its resolved by "using specific database credentials". I have no idea how to input the database credentials into terminal. Excuse the newbish question. I am using MAMP to set up my wiki. Thanks