Jump to content

Connect Problems


Kenshin

Recommended Posts

This comes up when I try to view my forums

 

Warning: mysql_connect() [function.mysql-connect]: Access denied for user: \'root@localhost\' (Using password: NO) in /home/divxnnz/public_html/phoenixdown/forums/admin/db_mysql.php3 on line 34

 

And this is the connection part of db_mysql.php3

function connect() {

global $usepconnect;

// connect to db server

 

if ( 0 == $this->link_id ) {

if ($this->password==\\\"\\\") {

if ($usepconnect==1) {

$this->link_id=mysql_pconnect($this->server,$this->user);

} else {

$this->link_id=mysql_connect($this->server,$this->user);

}

} else {

if ($usepconnect==1) {

$this->link_id=mysql_pconnect($this->server,$this->user,$this->password);

} else {

$this->link_id=mysql_connect($this->server,$this->user,$this->password);

}

}

if (!$this->link_id) {

$this->halt(\\\"Link-ID == false, connect failed\\\");

}

if ($this->database!=\\\"\\\") {

if(!mysql_select_db($this->database, $this->link_id)) {

$this->halt(\\\"cannot use database \\\".$this->database);

}

}

}

}

Any ideas?

Link to comment
Share on other sites

is this the line it executes?

 

if ($usepconnect==1) {

$this->link_id=mysql_pconnect($this->server,$this->user);

} else {

$this->link_id=mysql_connect($this->server,$this->user);

}

 

it needs a password, as does the pconnect.

Link to comment
Share on other sites

Warning: mysql_connect() [function.mysql-connect]: Access denied for user: \'root@localhost\' (Using password: NO) in /home/divxnnz/public_html/phoenixdown/forums/admin/db_mysql.php3 on line 34

 

no, his problem is, invalid username/password.... hes getting access denied, not code errors

Link to comment
Share on other sites

  • 3 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.