I have phpMyAdmin running with MAMP, and I am finding it impossible to use mysql_connect().
$_db_connect = mysql_connect("root", "localhost");
mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user
'root'@'localhost' (using password: NO) in /....../common.lib.php on line 19
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY PASSWORD '*81F5E21E35407D884A6CD4A731AEBFB6AF209E1B' WITH GRANT OPTION
using password: NO
$_db_connect = mysql_connect(MYSQL_HOST, MYSQL_USERNAME, MYSQL_PASSWORD);
You are missing the password in the function. Also, the function call is wrong. Do it like this:
$_db_connect = mysql_connect("localhost", "root", "password");
password is the password for your root account. It might be different.