coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: WebGhost on September 03, 2008, 04:44:23 AM

Title: Fatal Error (Didnt Do Anything Wrong)
Post by: WebGhost on September 03, 2008, 04:44:23 AM
Yesterday my gallery was working fine but today its giving Fatal Error
I didnt do anything with it i mean upgrading, moving or install plugin
So i dont know why its giving error, i have enable the debug mode now getting this error message..

QuoteWhile executing query "delete from `smilkcom_gallery`.cpg148_sessions where time<1220404133 and remember=0;" on Resource id #6

mySQL error: Table './smilkcom_gallery/cpg148_sessions' is marked as crashed and should be repaired

Plz tell me how to repair database and solve the problem ? I wll be very thankfull.
Title: Re: Fatal Error (Didnt Do Anything Wrong)
Post by: WebGhost on September 03, 2008, 04:49:21 AM
Sory i forgot to give gallery link:
http://www.smilepk.com/wallpapers/
Title: Re: Fatal Error (Didnt Do Anything Wrong)
Post by: Nibbler on September 03, 2008, 04:52:05 AM
Go into phpmyadmin and either use the repair button there or run this command manually:

REPAIR TABLE cpg148_sessions
Title: Re: Fatal Error (Didnt Do Anything Wrong)
Post by: WebGhost on September 03, 2008, 05:12:50 AM
Thanks for giving time and suggestion but i am new user with phpmyadmin and database,
can you plz explain it shortly... i wll be very thankfull

How to repair, (first open that database and then click repair button as i also have other databases.)

How to run command ? (First open database then where to past and run comamnd or just open cpanel and where to run comand ?)
Title: Re: Fatal Error (Didnt Do Anything Wrong)
Post by: Nibbler on September 03, 2008, 06:42:12 AM
Click on the 'SQL' tab in phpmyadmin and enter the query in the box.
Title: Re: Fatal Error (Didnt Do Anything Wrong)
Post by: Abbas Ali on September 03, 2008, 06:58:01 AM
Repairing a MySQL Database with phpMyAdmin (http://php.about.com/od/mysqladministration/qt/repair_mysql.htm)
Title: Re: Fatal Error (Didnt Do Anything Wrong)
Post by: WebGhost on September 04, 2008, 12:08:12 AM
Thanks guys for helping, the problem is solved.
Thank you very much.