Help - Search - Members - Calendar
Full Version: Why Cant I Find My Database?
Zymic Webmaster Forums > Zymic Free Web Hosting > Databases & MySQL
AArkwell
Im using this code for my php script:

$DBhost = "http://www.uuuq.com"; // Database Server
$DBuser = "arkwellgames_arkwell"; // Database User
$DBpass = "---"; // Database Pass
$DBName = "arkwellgames_guestbook"; // Database Name
$table = "Guestbook"; // Database Table
$numComments = 10; // Number of Comments per page

But for some reason it cant find it..the code isnt working sad.gif Do I have the server and user names all correct? Should the Database table name be * instead?
Mortalis9
$DBhost = "http://www.uuuq.com"; // Database Server


Change that to "localhost" and it should work smile.gif
Sugarblossoms
yes, and if that still didn't work.. shorten your database name and database username. Use only 16 characters.
NaRzY
Do both of the above and it will work.

Jacob.
IamShipon1988
$DBhost should be localhost
CODE
$DBhost = "localhost"; // Database Server


Database info should be written somewhat link this:
CODE
define('DB_HOST', 'localhost');
define('DB_USER', 'siteurl_myuser');
define('DB_PASS', 'password');
define('DB_NAME', 'siteurl_mydb');


*** Edited by swordz. Incorrect connection data - vndv and uuuq use a different format to the other server***
swordz
QUOTE(IamShipon1988 @ Dec 5 2008, 09:07 PM) *
Database info should be written somewhat link this:
CODE
define('DB_HOST', 'localhost');
define('DB_USER', 'siteurl_myuser');
define('DB_PASS', 'password');
define('DB_NAME', 'siteurl_mydb');


This would work, but so would his current method.

swordz
IamShipon1988
His current method will not work because he never put his site url in the user and db name slot.
Andrew
He's talking about not using define.
And considering how he put the http://uuuq.com in for server, it's probably a script he downloaded, not made. Therefore changing stuff probably isn't the best idea.
swordz
QUOTE(AArkwell @ Dec 5 2008, 03:02 AM) *
Im using this code for my php script:

$DBhost = "http://www.uuuq.com"; // Database Server
$DBuser = "arkwellgames_arkwell"; // Database User
$DBpass = "---"; // Database Pass
$DBName = "arkwellgames_guestbook"; // Database Name
$table = "Guestbook"; // Database Table
$numComments = 10; // Number of Comments per page

But for some reason it cant find it..the code isnt working sad.gif Do I have the server and user names all correct? Should the Database table name be * instead?


His site URL is arkwellgames.uuuq.com. The arkwellgames_ is equivalent to sitename_zxq_net_ on the old server.

swordz
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.