IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
 
Reply to this topicStart new topic

Probs With Mysql


Too_Hot
no avatar
Super Member
*********
Group: Members
Posts: 270
Joined: 15-August 04
Member No.: 815



Post #1 post Sep 15 2004, 09:27 PM
$dbhost = "69.50.188.18";
$dbuname = "nuke";
$dbpass = "****";
$dbname = "nuke1";
$prefix = "dlclan_";
$user_prefix = "dlclan_";
$dbtype = "MySQL";
$sitekey = "SdFk*fa28367-dm56w69.3a2fDS+e9";
$gfx_chk = 0;
$subscription_url = "";

this is my current setup for my database.

the database is called nuke 1 and the user is dlclan_nuke what am i doing wrong as my site says that php nuke database probs


also on my upload of 7.3 there is no install folder or install.php wtf is goin on :S
Go to the top of the page
+Quote Post
NeXDesigns
no avatar
Super Member
*********
Group: Members
Posts: 260
Joined: 12-August 04
From: Hurricane Alley, Florida
Member No.: 770



Post #2 post Sep 16 2004, 04:00 PM
is that for the php code to connect? if so you got too much for it.
for connecting you only need

$dbhost = "localhost"; (if on trap17 use localhost)
$dbuname = "username";
$dbpass = "****";
$dbname = "dbname";
(correct me if im wrong)

hope this helps if i understand right.
Go to the top of the page
+Quote Post
serverph
no avatar
Ancient Enigma
Group Icon
Group: [MODERATOR]
Posts: 1,852
Joined: 11-July 04
From: under the stars
Member No.: 76
myCENT:62.79



Post #3 post Sep 16 2004, 05:25 PM
it might be helpful if you include your site so we can
check the errors first hand smile.gif

anyway, try double-checking on your user permission
settings at cpanel. if you created a db with the correct
user permission settings, you will be presented with the
correct connection strings to follow in your configuration
(most specifically, for the $dbuname & $dbname you must
use). i'm using uni.cc so my mysql connection string
automatically prefixes my uni.cc subdomain (serverph)
to the $dbuname & $dbname. (i don't know if it works the
same way for those with trap17 subdomains.)

a sample connection string (generated from my own cpanel):
QUOTE
$dbh=mysql_connect ("localhost", "serverph_dbuser", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("serverph_db");


sample config (which i used for my site) following the sample
connection string generated in my cpanel:
QUOTE
$dbhostname = "localhost";  //hostname dbserver
$database = "serverph_db";    //database name
$mysqluser = "serverph_dbuser";  //mysql username
$mysqlpassword = "********";  //mysql password


if i were to set my config following your coding variables, it would
appear as:
------
$dbhost = "localhost";
$dbuname = "serverph_nuke";
$dbpass = "********";
$dbname = "serverph_nuke1";
------
(note: the serverph_ is prefixed in the values for the
$dbuname and $dbname variables, because serverph is my
uni.cc subdomain. if your subdomain is toohot for example,
toohot_ will be prefixed. just change your configuration
accordingly.)

most mysql problems arise with incorrect user permission
settings, so you might want to check that first. be sure you
have a nuke user with permission to use your nuke1
db in your cpanel. after that, reconfigure the values in your
variables to reflect the correct $dbuname and $dbname.

and if you're still having problems after that, you might want
to play around first in setting up your mysql db with a simpler
php script. after you successfully set it up on a simpler script,
you can then go into setting up phpnuke more confidently. smile.gif
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts 3 chalawanonline 361 2nd August 2004 - 02:34 PM
Last post by: Spectre
No New Posts   7 Raptrex 431 27th August 2004 - 11:16 PM
Last post by: Spectre
No New Posts 4 NuHoaXuLa 411 29th August 2004 - 03:12 AM
Last post by: NuHoaXuLa
No New Posts   11 Triple X 720 5th September 2004 - 02:33 AM
Last post by: Triple X
No New Posts   4 Schweden 284 8th September 2004 - 09:40 AM
Last post by: Schweden
No New Posts   2 BoSZ 405 17th September 2004 - 09:09 PM
Last post by: BoSZ
No New Posts   6 XtremeGamer99 268 10th October 2004 - 07:54 PM
Last post by: moscower
No New Posts   8 guangdian 292 2nd October 2004 - 05:03 AM
Last post by: football123213
No New Posts   3 JaVe 297 2nd October 2004 - 04:14 PM
Last post by: JaVe
No New Posts   3 outwarsecrets 616 10th October 2004 - 08:04 AM
Last post by: whatknows
No New Posts   0 farsiscript 442 10th June 2006 - 07:01 PM
Last post by: farsiscript
No New Posts   8 Becca 689 16th October 2004 - 10:22 PM
Last post by: Becca
No New Posts 3 pbrugge 473 18th October 2004 - 11:41 PM
Last post by: pbrugge
No New Posts   2 dundun2007 268 23rd October 2004 - 07:27 AM
Last post by: twoq
No New Posts   1 Afrog2 403 23rd October 2004 - 02:04 PM
Last post by: zip_mc


 



RSS Lo-Fi Version Time is now: 5th December 2008 - 04:10 AM