mySQL-Fehler nach Backup
Verfasst: 07.02.2006 21:56
Hallo zusammen,
lange Geschichte mal kurz zusammen gefasst.
Habe nen Verdacht auf einen Hacker und habe erstmal Updates gemacht.
Ein Update über das Board selbst und ein zweites über PHPmyAdmin.
Erstes Update lief glatt durch, zweites scheiterte erst an etwas wenig Speicherplatz *g* ging beim zweiten Anlauf auch.
Aber jetzt bei Aufrufen des Forums kommen nur noch folgende
Fehlermeldungen:
----
Warning: mysql_connect(): Access denied for user: 'web95@localhost' (Using password: YES) in /srv/www/htdocs/web95/html/forum/db/mysql4.php on line 48
Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /srv/www/htdocs/web95/html/forum/db/mysql4.php on line 330
Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /srv/www/htdocs/web95/html/forum/db/mysql4.php on line 331
phpBB : Kritischer Fehler
Could not connect to the database
----
mysql4.php-Inhalt:
###
function sql_db($sqlserver, $sqluser, $sqlpassword, $database, $persistency = true)
{
$this->persistency = $persistency;
$this->user = $sqluser;
$this->password = $sqlpassword;
$this->server = $sqlserver;
$this->dbname = $database;
$this->db_connect_id = ($this->persistency) ? mysql_pconnect($this->server, $this->user, $this->password) : mysql_connect($this->server, $this->user, $this->password);
if( $this->db_connect_id )
{
if( $database != "" )
{
$this->dbname = $database;
$dbselect = mysql_select_db($this->dbname);
if( !$dbselect )
{
mysql_close($this->db_connect_id);
$this->db_connect_id = $dbselect;
}
}
return $this->db_connect_id;
}
else
{
return false;
}
}
function sql_freeresult($query_id = 0)
{
if( !$query_id )
{
$query_id = $this->query_result;
}
if ( $query_id )
{
unset($this->row[$query_id]);
unset($this->rowset[$query_id]);
mysql_free_result($query_id);
return true;
}
else
{
return false;
}
}
function sql_error()
{
$result['message'] = mysql_error($this->db_connect_id);
$result['code'] = mysql_errno($this->db_connect_id);
return $result;
}
###
Komplette function rauskopiert, die nötigen Zeilen markiert.
Danke schonmal für eure Hilfe.
lange Geschichte mal kurz zusammen gefasst.
Habe nen Verdacht auf einen Hacker und habe erstmal Updates gemacht.
Ein Update über das Board selbst und ein zweites über PHPmyAdmin.
Erstes Update lief glatt durch, zweites scheiterte erst an etwas wenig Speicherplatz *g* ging beim zweiten Anlauf auch.
Aber jetzt bei Aufrufen des Forums kommen nur noch folgende
Fehlermeldungen:
----
Warning: mysql_connect(): Access denied for user: 'web95@localhost' (Using password: YES) in /srv/www/htdocs/web95/html/forum/db/mysql4.php on line 48
Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /srv/www/htdocs/web95/html/forum/db/mysql4.php on line 330
Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /srv/www/htdocs/web95/html/forum/db/mysql4.php on line 331
phpBB : Kritischer Fehler
Could not connect to the database
----
mysql4.php-Inhalt:
###
function sql_db($sqlserver, $sqluser, $sqlpassword, $database, $persistency = true)
{
$this->persistency = $persistency;
$this->user = $sqluser;
$this->password = $sqlpassword;
$this->server = $sqlserver;
$this->dbname = $database;
$this->db_connect_id = ($this->persistency) ? mysql_pconnect($this->server, $this->user, $this->password) : mysql_connect($this->server, $this->user, $this->password);
if( $this->db_connect_id )
{
if( $database != "" )
{
$this->dbname = $database;
$dbselect = mysql_select_db($this->dbname);
if( !$dbselect )
{
mysql_close($this->db_connect_id);
$this->db_connect_id = $dbselect;
}
}
return $this->db_connect_id;
}
else
{
return false;
}
}
function sql_freeresult($query_id = 0)
{
if( !$query_id )
{
$query_id = $this->query_result;
}
if ( $query_id )
{
unset($this->row[$query_id]);
unset($this->rowset[$query_id]);
mysql_free_result($query_id);
return true;
}
else
{
return false;
}
}
function sql_error()
{
$result['message'] = mysql_error($this->db_connect_id);
$result['code'] = mysql_errno($this->db_connect_id);
return $result;
}
###
Komplette function rauskopiert, die nötigen Zeilen markiert.
Danke schonmal für eure Hilfe.