Edited by snlildude87, 09 April 2005 - 07:01 PM.
| |
|
Welcome to KnowledgeSutra - Dear Guest | |
Mysql Database Help
#1
Posted 03 April 2005 - 09:40 PM
#2
Posted 04 April 2005 - 02:12 PM
#3
Posted 04 April 2005 - 09:47 PM
1 you have not pointed your "DNS Record" nameservers to trap17 name servers yet. Until you do that I don't know how any of your data would be accessible. Your cpanel is accessible using the IP address only.
Quote
ns.kornet.net. [211.216.50.150] [TTL=172800] [KR]
ns2.kornet.net. [211.216.50.160] [TTL=172800] [KR]
[These were obtained from m.gtld-servers.net]
So until you update your NS record everything you do are in vain.
Nils
#6
Posted 08 April 2005 - 09:57 PM
Next, your batabase name is USERNAME_ then the database name, er, at least I Think it is...
Also make sure that the index page is changed to be your index page not the index page that was on when you first got your account...
#7
Posted 09 April 2005 - 01:10 AM
Argoth, on Apr 8 2005, 04:57 PM, said:
Er, I uploaded the files to seperate files. There are about 50 of 'em. I still dont know what the database name is, would it be USERNAME_trap17 (so really it would be dayzed_trap17?)
How do you change the index page?
#8
Posted 09 April 2005 - 04:12 PM
Make sure that the files you uploaded are in the public_http folder or you won't be able to access them.
You need to make a database before you can access it. To make a database go to cpanel, click on MySQL Databases, type whatever you want to call the database in the textbox and click "Create MySQL database". Then create a new user to access the database. Click on "go back", scroll down to where it says "Existing MySQL Users", type a name for the new user there and a password. Click "Create MySQL user".
Now allow the user to change the database. Click "go back", scroll to where it says " Grant permissions on a MySQL database to a MySQL user" and choose the user you made and the database you made. make sure "ALL" is clicked under privileges then click "Grant Permissions".
The database name is then the "YOURUSERNAME_YOURDATABASENAME" and then your username is "YOURCPANELUSERNAME_YOURDATABASEUSERNAME"
#10
Posted 09 April 2005 - 05:13 PM
Answer me this...what is the name of the first webpage people will see when they go to yoursite? If it's not index.htm, index.html, or index.php, then rename it to any one of those three, and delete the existing index.html in your public_html folder in your cpanel.
Edited by snlildude87, 09 April 2005 - 05:17 PM.
#13
Posted 09 April 2005 - 05:36 PM
#16
Posted 09 April 2005 - 05:46 PM
But, there is a couple more problems, where do I upload the rest of my site script? In a seperate file? I have about 30 more files I need to upload, all of which are needed. Do I do it in a seperate file than index.php or in the same one? There is a footer that is needed on all pages and none of the site works without it.
And uh, since your helping, you still want an admin position correct? Or are you doing this out of the kindness of your heart?
#22
Posted 09 April 2005 - 06:21 PM
<?php
include("http://blah.trap17.com/sql.sql");
?>
^ That's an example of an absolute call in PHP
<?php
include("sql.sql");
?>
^ That's relative, and it will work ONLY if the calling file is in the same directory or folder as the sql.sql file.
#23
Posted 09 April 2005 - 06:28 PM
I tried moving it around, all over the place, and an error message comes up. Go to here to figure out what I'm talking about:
www.gigapass.trap17.com
I dont know what is wrong. I triple checked everything, and it seems to be correct....
#25
Posted 09 April 2005 - 06:37 PM
<?php
$_CONFIG['mbname'] = ''; // Giga Pass
$_CONFIG['mbsurl'] = ''; // [url=http://gigapass.trap17.com]http://gigapass.trap17.com[/url]
$_CONFIG['dbhost'] = ''; // trap17.com
$_CONFIG['homepage'] = ''; // [url=http://gigapass.trap17.com]http://gigapass.trap17.com[/url]
$_CONFIG['legal_tags'] = 'b|i'; // HTML tags allowed in messages. You can only add tags that have no attributes.
$_MYSQL['dbhost'] = ''; // localhost
$_MYSQL['dbuser'] = ''; // dayzed_ejashby
$_MYSQL['dbpass'] = ''; // (I put the password for dayzed_ejashby here)
$_MYSQL['dbname'] = ''; // dayzed_SQLdatabase
//
// User level definitions
//
define('Inactive', 0);
define('Warned', 1);
define('Mutie', 12);
define('Rookie', 15);
define('Veteran', 18);
define('Idol', 30);
define('Moderator', 52);
define('Administrator', 60);
//
// Include money (Coins) configuration. Go edit that file.
//
require 'mny_config.php';
$db = @mysql_connect($_MYSQL['localhost'], $_MYSQL['dayzed_ejashby'], $_MYSQL['(password for dayzed_ejashby)'])
or die("<b>Error:</b> Failed to connect to database host: {$_MYSQL['localhost']}<br />
<b>Possible Solution:</b> Check if the database host name, user name and password are defined
correctly in the config.inc.php file.<br />
<b>MySQL says:</b> ". mysql_error());
@mysql_select_db($_MYSQL['dayzed_sqldatabase'], $db)
or die("<b>Error:</b> Failed to select database: {$_MYSQL['dayzed_sqldatabase']}<br />
<b>Possible Solution:</b> Check if the database is set up and the database name
defined in the config.inc.php file is correct.<br />
<b>MySQL says:</b> ". mysql_error());
?>
Where my password is supposed to be, I have my password, not the text.Edited by snlildude87, 09 April 2005 - 06:43 PM.
Reply to this topic

1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users















