Are we talking about a username and password to use the database? If you set up the mysql daemon, you should know this information.
If it's a matter of telling the aforementioned program the username and password, most programs have you edit a config.php or similar file to specify explicit information like that.
What application are you trying to use, and did you read its README file? 🙂