Zum Inhalt springen

SQL oder PHP Problem

Erstellt am 12. Februar 2006 · 7 Antworten · letzte Antwort am 15. Februar 2006

Tags: Frage

mager85 ·

Hallo,

vor meiner eigentlichen Typo 3 Seite steht folgende Fehlermedlung:

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/virtual/kakage.com/typo3_src-3.8.0/t3lib/class.t3lib_db.php on line 741

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/virtual/kakage.com/typo3_src-3.8.0/t3lib/class.t3lib_db.php on line 741

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/virtual/kakage.com/typo3_src-3.8.0/t3lib/class.t3lib_db.php on line 741

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/virtual/kakage.com/typo3_src-3.8.0/t3lib/class.t3lib_db.php on line 741

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/virtual/kakage.com/typo3_src-3.8.0/t3lib/class.t3lib_db.php on line 741

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/virtual/kakage.com/typo3_src-3.8.0/t3lib/class.t3lib_db.php on line 741

Warning: Cannot modify header information - headers already sent by (output started at /var/www/virtual/kakage.com/typo3_src-3.8.0/t3lib/class.t3lib_db.php:741) in /var/www/virtual/kakage.com/typo3_src-3.8.0/typo3/sysext/cms/tslib/class.tslib_fe.php on line 2612

Was kann dass sein? Es ging bis vor wenigen Tagen optimal. Ohne Fehlermeldung o.ä.

Es gab ein Problem mit dem Server, die HD war voll.
Habe dann Speicherplatz geschaffen. Aber die Fehlermeldung geht nicht weg?

Grüß
mager85

woida ·

Das kann so gut wie alles sein. Von einer kaputten MySQL-Datenbank, bis hin zu ....

Mehr kann man mit deinen Infos nicht sagen.

mager85 ·

Hallo nocheinmal,

habe gerade versucht einen Dump der Datenbank zu erstellen.

Habe folgenden Fehler bekommen:
mysqldump: Can't get CREATE TABLE for table `cache_hash` (Can't open file: 'cache_hash.MYI'. (errno: 145))

Kann das Problem evtl. von dieser tbl herrühren?
Was steht in der cache_hash Tabelle?

Kann ich den Inhalt löschen?
Wie lösche ich den Inhalt am besten?

Grüße
mager85

mager85 ·

Hi,

danke für die Befehle:

Das zeigt es bei mir an:
vserver463:~# mysqlcheck --databases [DB] --user [user] --password [PW] --repair --medium-check
Enter password:
typo3.be_groups OK
typo3.be_sessions OK
typo3.be_users OK
typo3.cache_hash
warning : Table is marked as crashed
warning : 1 client is using or hasn't closed the table properly
warning : Size of datafile is: 364544 Should be: 362796
error : Recordlink that points outside datafile at 362796
error : Corrupt
typo3.cache_imagesizes OK
typo3.cache_md5params OK
typo3.cache_pages OK
typo3.cache_pagesection
warning : Table is marked as crashed
warning : 1 client is using or hasn't closed the table properly
warning : Size of datafile is: 49152 Should be: 47432
error : Recordlink that points outside datafile at 47432
error : Corrupt
typo3.cache_typo3temp_log OK
typo3.fe_groups OK
typo3.fe_session_data OK
typo3.fe_sessions OK
typo3.fe_users OK
typo3.pages OK
typo3.pages_language_overlay OK
typo3.static_template OK
typo3.static_tsconfig_help OK
typo3.sys_be_shortcuts OK
typo3.sys_domain OK
typo3.sys_filemounts OK
typo3.sys_history OK
typo3.sys_language OK
typo3.sys_lockedrecords OK
typo3.sys_log OK
typo3.sys_note OK
typo3.sys_notepad OK
typo3.sys_template OK
typo3.tt_content OK
typo3.tx_dedivbanner_file OK
typo3.tx_impexp_presets OK
typo3.tx_lzgallery_cache_hash OK
typo3.tx_lzgallery_galleries OK
typo3.tx_lzgallery_path_mtimes OK
typo3.tx_photogallery_albums_inf OK
typo3.tx_photogallery_galleries_inf OK
typo3.tx_photogallery_list OK
typo3.tx_photogallery_photos_discussion OK
typo3.tx_photogallery_photos_inf OK
typo3.tx_veguestbook_entries OK
typo3.tx_wsbanner_banner OK
mysqlcheck: Got error: 1049: Unknown database '[PW]' when selecting the database

Was muss ich jetzt genau eingeben um die Fehler zu beheben?

Grüße
mager85

woida ·

warning : 1 client is using or hasn't closed the table properly

Dann würd ich doch erstmal den MySQL-Server runterfahren.

mager85 ·

Wenn ich aber der Server mit
mysql stop herunterfahre dann erhalte ich folgende Fehlermeldung:

mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect

Was nun?

gruß
mager85

woida ·

Dann fahr den Server wieder hoch und verwende anstatt den Optionen
--repair --medium-check
mal
--force --auto-repair