In the example text in your first post, you are missing the double-quote mark at the end of your username. If your PHP script is the same way, this would likely cause it to fail.
Looks like in SUSE that Apache runs as the wwwrun user, which presumably is the username that PHP tries to use for the MySQL connection if a username isn't provided.
Try putting the following before the line with mysql_connect():
Code:
error_log( "Connecting to MySQL with username: " . var_dump($username) . " , password: " . var_dump($password) . " , database: " . var_dump($database) );
and check your error log to see what you get for the variables.