in your control panel select mysal databses , there you can see the created databases and in the down htere is an option to create user, Create one and associate it with corresponding database.
Regarding mysql connect use this way.
DEFINE ('DB_HOST', 'localhost');
DEFINE ('DB_NAME'...