Not signed in (Sign In)
Welcome, Guest

Did you know that there is a whole world of functionality you're not seeing? If you have an account, sign in now.

If you don't have an account, apply for one now.

Bottom of Page
General: MySQL database corruption
  1.  
1 to 4 of 4
Mar 22nd 2006
I've been using phpFlickr for a month or two and it's been great.

But twice in the past couple of weeks something has gone wrong with my flickr_cache table, and requests from phpFlickr have generated an error:

"1016 ** Can't open file: 'flickr_cache.MYI' (errno: 144)"

Doing 'REPAIR TABLE flickr_cache' fixes the problem.

So I have two questions:

1) Is this a common problem with the phpFlickr cache? I haven't had it with any of my other web applications using the same database.

2) Should phpFlickr generate some kind of noticeable error when this happens? Or is there some way I can test for an error in my application? At the moment I just get empty arrays back (from photos_getCounts()).

MySQL version 4.1.15.
Mar 26th 2006
I've never run into this on my server and you're the first to report it, so I don't think it's terribly common. Sometimes something goes wrong with the write in mysql and it just messes up. It can also happen if the hard drive is full and you try to write to a database.

If you look up the PEAR::DB documentation on http://pear.php.net, you can find out how to look for errors using the class.
Mar 27th 2006
Thanks Dan - I'll look into that.
Jul 14th 2006
we publish our wesite using ez-publish from a MySQL.db.
this problem occures twice a year with one of the tables.

easy to fiks, impossible to predict, difficult to understand...
gives me a minor heartattac every time.
  1.  
1 to 4 of 4
Top of PageBack to discussions