473,386 Members | 1,796 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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.

Jul 19 '05 #1
2 1649
"Gareth" <ga****@hotmail.com> wrote in message news:<bn**********@sparta.btinternet.com>...
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?


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?
Jul 19 '05 #2
"Gareth" <ga****@hotmail.com> wrote in message news:<bn**********@sparta.btinternet.com>...
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?


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?
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: John | last post by:
Hello. If I want to set up my first database and start using it in Dreamweaver what do I need to do? The book I'm working on has a CD with the database on. It is telling me to put it in the...
6
by: Clay Beatty | last post by:
When you create database diagrams in Enterprise Manager, the details for constructing those diagrams is saved into the dtproperties table. This table includes an image field which contains most of...
6
by: Marvin Libson | last post by:
Hi All: I am running DB2 UDB V7.2 with FP11. Platform is Windows 2000. I have created a java UDF and trigger. When I update my database I get the following error: SQL1224N A database...
1
by: pintur | last post by:
The message is: SQL1036C Errore di I/O durante l' accesso al database. SQLSTATE=58030 what is the proble? what for restore tables? thanks
9
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web...
0
by: Jonathan Wood | last post by:
I seem to be having errors creating and accessing an SQL database. Unfortunatley, I am brand new to SQL setup and administration issues so this really is not my area of expertise. I know I had...
9
by: Jerim79 | last post by:
I am no PHP programmer. At my current job I made it known that I was no PHP programmer during the interview. Still they have given me a script to write with the understanding that it will take me a...
12
by: Steve | last post by:
I have a database that raises an error when you try to open it and it doesn't open. Trying to open the database with the OpenDatabase method raises the same error. Trying to import any objects...
2
by: Scott Jones | last post by:
Hello, In an attempt to save disk space, I went in and gzipped all of the log files for my database running DB2 version 7.2 . This resulted in the database being marked bad because a log file...
221
Atli
by: Atli | last post by:
You may be wondering why you would want to put your files “into” the database, rather than just onto the file-system. Well, most of the time, you wouldn’t. In situations where your PHP application...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.