DB_HOST connection string Error
-
After creating the database and username with password in Cpanel I receive the following PHP connection string:
$dbh=mysql_connect (“localhost”, “netbased_nblog”, “<PASSWORD HERE>”) or die (‘I cannot connect to the database because: ‘ . mysql_error());
mysql_select_db (“netbased_nblog”);
Using only ‘localhost’ resulted in a connection error when running wp-admin/install.php. Now it gets started but I receive this error”
Parse error: parse error in /home/netbased/public_html/nb_weblog/wp-config.php on line 9
Fatal error: Call to a member function on a non-object in /home/netbased/public_html/nb_weblog/wp-admin/install.php on line 52
Line 9 looks like: $loginsql = DB_USER; (if I counted the lines correctly).
I realize I’m that 1% that ‘localhost’ doesn’t work for.
Any suggestions of what to attempt . . . ?
Thanks,
Don
- The topic ‘DB_HOST connection string Error’ is closed to new replies.