Database Error

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
AndrewB
Posts: 171
Joined: Fri Aug 22, 2003 11:15 pm
Contact:

Database Error

Post by AndrewB »

I am trying to edit a record in my FAQ. I get the following error

Unfortunately, a database error occured.Incorrect key file for table: 'faqdata'. Try to repair it

I am able to update other records and insert new entries.

Can this item be corrupt?
Is there a size limit on the data that can go in a TEXT column?
Anything I can try to debug this more?

BTW - the update also fails in phpMyAdmin with this error
tbl_replace.php: Missing db
tbl_replace.php: Missing table
tbl_replace.php: Missing goto


thanks for any help
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

the limit of a TEXT column is at 2 mio characters.

It seems your MySQL database is corrupt and need to rebuild.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
AndrewB
Posts: 171
Joined: Fri Aug 22, 2003 11:15 pm
Contact:

Post by AndrewB »

thanks for replying.

to rebuild it...

do I just drop all the tables and restore from a backup or is just a restore from backup enough?

is it more drastic? Do I have to install phpMyFAQ again?

thanks
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi Andrew,

I would test to restore the whole data. If the error still occurs contact your webhoster because this could be a file problem with the MySQL server, too.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
AndrewB
Posts: 171
Joined: Fri Aug 22, 2003 11:15 pm
Contact:

Post by AndrewB »

thanks :)
AndrewB
Posts: 171
Joined: Fri Aug 22, 2003 11:15 pm
Contact:

Post by AndrewB »

I was unable to work on this all day and then later in the day I got this error

MySQL said: #1016 - Can't open file: 'faqdata.MYI'. (errno: 145)

my whole faqdata table was not available :(

I had a backup from this morning - so I dropped the table and re built it and then did a restore from the backup

Now it is running fine again :)

thank goodness for backups :D
Post Reply