| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Oct 2005
4 posts
Gave thanks: 0
Thanked 0 times
|
MySQL question
I'm setting up an oekaki.
there's a install page that's installing it for me, and i went to cpanel to create a db, and this is the error i get. Warning: mysql_connect(): Unknown MySQL server host 'newcast_' (1) in /home/newcast/public_html/pianist/create/oekaki/oekaki/dbconn.php on line 9 Could not connect to the MySQL database. these are the Connection Strings Perl $dbh = DBI->connect("DBI:mysql:newcast_:localhost","newcast_" ,"<PASSWORD HERE>"); PHP $dbh=mysql_connect ("localhost", "newcast_", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error()); mysql_select_db ("newcast_"); and on the setup form, it asks me Database Hostname Database Name Database Username Database Password so what do i put in each box? |
|
|
|
|
|
#2 (permalink) | |
|
is scientific.
Resident.
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7
13,117 posts
Gave thanks: 8
Thanked 34 times
|
http://www.ninehours.com/tutorials/1
That is tailored towards a Xoops install, but the database section is the same for any script you'll be installing. Quote:
|
|
|
|
|