link ID failed

topthisfact

Paragon
Joined
Dec 14, 2009
Messages
2,244
Reaction score
0
FP$
636
Hey
I was wondering how do i fixed this?

http://easypromotion.wehostyour.info/

Error shows:
"Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'easyprom_GPT'@'localhost' (using password: YES) in /home/easyprom/public_html/includes/mysql.php on line 33
Database error: Link-ID == false, connect failed
MySQL Error: 0 ()
Session halted."


Here is the line of 33 & near it


var $Link_ID = 0; // Result of mysql_connect().
var $Query_ID = 0; // Result of most recent mysql_query().
var $Record = array(); // current mysql_fetch_array()-result.
var $Row; // current row number.

var $Errno = 0; // error state of query...
var $Error = "";
var $num_queries = 0;


function halt($msg) {
printf("</td></tr></table><b>Database error:</b> %s<br>\n", $msg);
printf("<b>MySQL Error</b>: %s (%s)<br>\n",
$this->Errno,
$this->Error);
die("Session halted.");
}

function connect($thehost, $thedb, $theuser, $thepwd) {
$this->Host=$thehost;
$this->Database=$thedb;
$this->User=$theuser;
$this->Password=$thepwd;

if ( 0 == $this->Link_ID ) {
$this->Link_ID=mysql_connect($this->Host, $this->User, $this->Password);
if (!$this->Link_ID) {
$this->halt("Link-ID == true, connect failed");
 
oh no nothing related to the forum
sorry i didnt desribe

its a "Script" that i downloaded & uploaded on a new host.
after i uploaded all the files , i went to the link & it shows this error

so im curious whats causing it on that file & how to fix it.
 
Are they both on the root?

If so there's files conflicting.
 
Dasher said:
Are they both on the root?

If so there's files conflicting.

oh nono
im using different host for my forum & differnt host for that script.

On that script, nothing else not even a single file is uploaded beside the script needed files.
is there any problem, thru my first post & its error info?

anyway this is the link to the error
http://easypromotion.wehostyour.info/
 
Dasher said:
Access denied for user 'easyprom_GPT'@'localhost' (using password: YES)
I think this means you have the wrong info. :/

yeah i just changed it

i edit both the "config" file in the root folder then inside include/mysql.php file

Right now it has a different error, i wonder if that means that the mysql host server i enter is wrong? im using Chris's host & i entered in "localhost" hope im not wrong

Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'easyprom_GPT' (1) in /home/easyprom/public_html/includes/mysql.php on line 33
Database error: Link-ID == true, connect failed
MySQL Error: 0 ()
Session halted.
 
Hey your right
MYSQL database information is wrong
I've fixed this

but seem like an new error

Database error: Invalid SQL: SELECT id FROM stats WHERE date='17/01/10'
MySQL Error: 1146 (Table 'easyprom_GPT.stats' doesn't exist)
Session halted.
 
Instead of localhost put the url.
Like if fp was on forum.forumpromotion.net you would still put forumpromotion.net with no http://

Even if it was on teh root or not still do the root url.

MySQL Error: 1146 (Table 'easyprom_GPT.stats' doesn't exist)

Go through your database and find easyprom_GPT.stats ro have Chris look for you. :great:
 
I looked thru my database

I notice that there wasn't any table created under "Easyprom_GPT"
do you think you can helpme fix this GPT, ill give full cpanel access.
 
topthisfact said:
Database error: Invalid SQL: SELECT id FROM stats WHERE date='17/01/10'
MySQL Error: 1146 (Table 'easyprom_GPT.stats' doesn't exist)
Session halted.

The table highlighted in bold isn't in your database meaning information can't be pulled from it, make sure you installed all tables to the database by either using the script, or by importing it.
 
topthisfact said:
I looked thru my database

I notice that there wasn't any table created under "Easyprom_GPT"
do you think you can helpme fix this GPT, ill give full cpanel access.
That's just a prefix for the data, I think. I may be wrong. Look in the DB for the stats table.
 
There's nothing in your database at all, what software are you using?
Did anyone threaten to hack you?
 
Dasher said:
There's nothing in your database at all, what software are you using?
Did anyone threaten to hack you?

oh nono
i havent done anything on this script yet
its not a forum btw, its a script that i uploaded with no instruction file

anyway i pmed you info
 
You do realize it's case sensitive? As in your initial post you've:

'easyprom_GPT'@'localhost'

While in your last post you're talking about the Easyprom_GPT database.

Try adjusting that?
 
@posey The script came with no installation file to create the tables in the database, so it's useless.
 
Back
Top Bottom