Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NIE) in /home/golab/domains/bou.linuxpl.com/public_html/acp/lib/class_db_mysql.php on line 30
SQL-DATABASE ERROR
Database error in WoltLab Burning Board: Link-ID == false, connect failed
mysql error: Access denied for user 'root'@'localhost' (using password: NIE)
mysql error number: 1045
Date: 26.12.2007 @ 12:21
Script: /
Referer:
-------------------------------------
<?php class db { var $link_id = 0; var $query_id = 0; var $errdesc = ""; var $errno = 0; var $show_error = 1; var $phpversion = 1; var $server = ""; var $user = ""; var $password = ""; var $database = ""; var $appname = "WoltLab Burning Board"; function db($server,$user,$password,$database,$phpversion=4) { $this->server=$server; $this->user=$user; $this->password=$password; $this->database=$database; $this->phpversion=$phpversion; $this->connect(); } function connect() { if (!$this->link_id) $this->error("Link-ID == false, connect failed"); if ($this->database!="") $this->select_db($this->database); } function geterrdesc() { return $this->error; } function geterrno() { return $this->errno; } function select_db($database="") { if ($database!="") $this->database=$database; if(!@mysql_select_db($this->database, $this->link_id)) $this->error("cannot use database ".$this->database); } function query($query_string,$limit=0,$offset=0) { if($limit!=0) $query_string.=" LIMIT $offset, $limit"; $this->queries[]="$query_string"; if (!$this->query_id) $this->error("Invalid SQL: ".$query_string); return $this->query_id; } function unbuffered_query($query_string,$LOW_PRIORITY=0) { if($this->phpversion<406) return $this->query($query_string); else { $this->queries[]="unbuffered: $query_string"; if (!$this->query_id) $this->error("Invalid SQL: ".$query_string); return $this->query_id; } } function fetch_array($query_id=-1) { if ($query_id!=-1) $this->query_id=$query_id; return $this->record; } function fetch_row($query_id=-1) { if ($query_id!=-1) $this->query_id=$query_id; return $this->record; } function free_result($query_id=-1) { if ($query_id!=-1) $this->query_id=$query_id; } function query_first($query_string,$limit=0,$offset=0) { $this->query($query_string,$limit,$offset); $returnarray=$this->fetch_array($this->query_id); $this->free_result($this->query_id); return $returnarray; } function num_rows($query_id=-1) { if ($query_id!=-1) $this->query_id=$query_id; } function affected_rows() { } function insert_id() { } function error($errormsg) { $errormsg="<b>Database error in $this->appname:</b> $errormsg\n<br>"; $errormsg.="<b>mysql error:</b> $this->errdesc\n<br>"; $errormsg.="<b>mysql error number:</b> $this->errno\n<br>"; if($this->show_error) $errormsg = "$errormsg"; else $errormsg = "\n<!-- $errormsg -->\n"; } } ?>
Mozecie mi jakos zaznaczyc lub powiedziec gdzie mam wpisac dane do bazy lub powiedziec jak przeprowadzic instalacje ?