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 = "";
config.php
Started by
trunkx
, Feb 23 2005 08:27 PM
3 replies to this topic
#1
Posted 23 February 2005 - 08:27 PM
#2
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.
$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.
#3
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");
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
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
Sign In
Create Account










