Database Error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gareth

    #1

    Database Error

    One of my MySQL databases has 7 tables in it. By far the largest table had
    nearly 300,000 records in it, but each record was quite small and the
    overall file size for the table's .MYD file was only about 18MB. It is
    running on a Windows 2000 server and the drive is NTFS.

    This morning when I went to do a daily backup, I noticed that the table was
    down to only 1000 odd records, of which 973 were fresh records. But,
    curiously, the first 64 records are actually from the birth of the table, 6
    weeks ago.The really strange this is, the records IDs in mysql should jump
    by about 280,000 between the first 64 records and the last 973, but they
    don't. The IDs don't skip out any at all.

    So, it looks like the whole table was wiped and it started a fresh
    overnight. None of the other tables were harmed at all.

    There are several server applications which access the database, but none of
    them ever delete anything from the database, and only a few people have
    access to the database at all.

    Are there any known bugs that would wipe a table under the circumstances
    described above?

    Thank you for your time,
    Gareth.



  • Benoit St-Jean

    #2
    Re: Database Error

    "Gareth" <gareth@hotmail .com> wrote in message news:<bnlug5$9s q$1@sparta.btin ternet.com>...[color=blue]
    > One of my MySQL databases has 7 tables in it. By far the largest table had
    > nearly 300,000 records in it, but each record was quite small and the
    > overall file size for the table's .MYD file was only about 18MB. It is
    > running on a Windows 2000 server and the drive is NTFS.
    >
    > This morning when I went to do a daily backup, I noticed that the table was
    > down to only 1000 odd records, of which 973 were fresh records. But,
    > curiously, the first 64 records are actually from the birth of the table, 6
    > weeks ago.The really strange this is, the records IDs in mysql should jump
    > by about 280,000 between the first 64 records and the last 973, but they
    > don't. The IDs don't skip out any at all.
    >
    > So, it looks like the whole table was wiped and it started a fresh
    > overnight. None of the other tables were harmed at all.
    >
    > There are several server applications which access the database, but none of
    > them ever delete anything from the database, and only a few people have
    > access to the database at all.
    >
    > Are there any known bugs that would wipe a table under the circumstances
    > described above?[/color]

    Well, are you using replication on that server?

    Did you remove all perms and set up proper security using GRANTS? If
    that's not the case that anyone with a little bit of knowledge about
    where your database is, valid user names and a password, etc can do
    anything with your data... Or even your own app! I tend to be pretty
    paranoiac and crazy about GRANTS but the fun thing is that I never had
    bad surprises... and it saved my day a few times when my own programs
    attempted to delete data inadvertantly.. .

    Anyone else has acces to that database/server?

    Anyother script that might have run and caused that?

    Comment

    • Benoit St-Jean

      #3
      Re: Database Error

      "Gareth" <gareth@hotmail .com> wrote in message news:<bnlug5$9s q$1@sparta.btin ternet.com>...[color=blue]
      > One of my MySQL databases has 7 tables in it. By far the largest table had
      > nearly 300,000 records in it, but each record was quite small and the
      > overall file size for the table's .MYD file was only about 18MB. It is
      > running on a Windows 2000 server and the drive is NTFS.
      >
      > This morning when I went to do a daily backup, I noticed that the table was
      > down to only 1000 odd records, of which 973 were fresh records. But,
      > curiously, the first 64 records are actually from the birth of the table, 6
      > weeks ago.The really strange this is, the records IDs in mysql should jump
      > by about 280,000 between the first 64 records and the last 973, but they
      > don't. The IDs don't skip out any at all.
      >
      > So, it looks like the whole table was wiped and it started a fresh
      > overnight. None of the other tables were harmed at all.
      >
      > There are several server applications which access the database, but none of
      > them ever delete anything from the database, and only a few people have
      > access to the database at all.
      >
      > Are there any known bugs that would wipe a table under the circumstances
      > described above?[/color]

      Well, are you using replication on that server?

      Did you remove all perms and set up proper security using GRANTS? If
      that's not the case that anyone with a little bit of knowledge about
      where your database is, valid user names and a password, etc can do
      anything with your data... Or even your own app! I tend to be pretty
      paranoiac and crazy about GRANTS but the fun thing is that I never had
      bad surprises... and it saved my day a few times when my own programs
      attempted to delete data inadvertantly.. .

      Anyone else has acces to that database/server?

      Anyother script that might have run and caused that?

      Comment

      Working...