look at
http://www.php.net/manual/en/function.mysql-connect.php if you have not already
if this won't help go to the shell and type
> mysql
if you would get "can't connect", than answer is simple - you do not have mysql server installed or you have it down. have a look at
www.mysql.com for more details about installation.
try one of the following to get it up:
> service mysqld start
> mysqld start
> /etc/rc.d/init.d/mysqld start
should work
pretty strange yo do not have it started on boot - you've done something wrong during the installation probably.
if
> mysql
would say you "access denied" or connect you to the server, than check mysql hostname your script uses and the host php's mysql api linked to as localhost. unlikely but possible.