- - - - -

config.php


  • Please log in to reply
3 replies to this topic

#1 trunkx

trunkx

    Small Orange

  • Members
  • PipPip
  • 19 posts

Posted 23 February 2005 - 08:27 PM

iv done this a few times but i cant get it to work what am i putting wrong


$dbhost = "localhost";
$dbuname = "portal";
$dbpass = "mypassword";
$dbname = "portal";
$prefix = "portal";
$user_prefix = "trunkx_portal";
$dbtype = "MySQL";
$sitekey = "SdFk*fa22777-dm99w69.3a2FTS+e9";
$gfx_chk = 0;
$subscription_url = "";




#2 Groffy77

Groffy77

    Moderately Sized Orange

  • Members
  • PipPipPip
  • 65 posts

Posted 23 February 2005 - 08:36 PM

$dbhost = "localhost";
$dbuname = "{username}_portal";
$dbpass = "mypassword";
$dbname = "{username}_portal";
$prefix = "portal";
$user_prefix = "trunkx_portal";
$dbtype = "MySQL";
$sitekey = "SdFk*fa22777-dm99w69.3a2FTS+e9";
$gfx_chk = 0;
$subscription_url = "";

NOTHING can have capitols in the db info.  smile.gif

user posted image


#3 trunkx

trunkx

    Small Orange

  • Members
  • PipPip
  • 19 posts

Posted 23 February 2005 - 08:44 PM

now im getting this

Databases: trunkx_portal  
Users in portal
trunkx_ray (Privileges: ALL PRIVILEGES)

Connection Strings
Perl $dbh = DBI->connect("DBI:mysql:trunkx_portal:localhost","trunkx_ray","<PASSWORD HERE>");
PHP $dbh=mysql_connect ("localhost", "trunkx_ray", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("trunkx_portal");  



#4 Seth Kinast

Seth Kinast

    Whee

  • Members
  • PipPipPipPipPipPipPip
  • 1,818 posts

Posted 23 February 2005 - 09:04 PM

That's just an example connection string. Not an error.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users