Hi All,
Thanks for the welcome. Basically, I understood what the cPanel stuff was. My setup looks exactly like what Rob had explained. I assumed that the reference to cPanel was similar to "you_name_here" otherwise it looks exactly the same.
My issue is even though I've created the db and added the user
username_rad (Privileges: ALL PRIVILEGES)
Connection Strings
Perl $dbh = DBI->connect("DBI:mysql:username_rad:localhost","username_rad","<PASSWORD HERE>");
PHP $dbh=mysql_connect ("localhost", "username_rad", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("username_rad");
I still get this error:
Warning: mysql_connect(): Access denied for user: 'username_rad@localhost' (Using password: YES) in /home/username/public_html/mytest/inc/config.php on line 5 I cannot connect to the database because: Access denied for user: 'username_rad@localhost' (Using password: YES)
This is what is on line 5 of the config file mentioned above:
mysql_connect ("localhost", "username_rad", "username_rad1") or die ('I cannot connect to the database because: ' . mysql_error());
No matter what I do. While I build sites all the time and have worked with established db's this is the first time I've tried to set one up on my own. With that said I'm wondering if it has anything to do with the location of the mySQL db or the placement of the files (which I don't think it does).
Thanks to all of you for helping. I really appreciate it.