Join our Community      Check your private messages       Profile       Search       FAQ       Memberlist       Log in

Missing Database Records

 
Post new topic   Reply to topic    NetHosted Community Index -> FTP/SQL Support
wurzel Reply with quote
 NetHosted Customer

 

 Joined: 20 Jan 2005
 Posts: 112
 Location: Loughborough, Leics

PostPosted: Fri Jun 15, 2007 1:49 pm    Post subject: Missing Database Records
 
Hi all
I have a database which I load every month as a CSV using PHPMyAdmin. The datbase has 10,000 records and I loose anywhere between 10-40 records whilst loading. Is there a way, to find which records have been rejected? I use an auto-number to generate my key index, so it's not a duplicate key problem.
Any thoughts?

_________________
Kev Maggs
Part-time webdesigner - www.cynara.co.uk 
Back to top
View user's profile Send private message Visit poster's website
NetHosted - Andrew Reply with quote
 NetHosted Staff

 

 Joined: 22 Mar 2004
 Posts: 5625
 

PostPosted: Fri Jun 15, 2007 2:01 pm    Post subject:
 
Kev,

There isn't anything server side I can think of to find this out.

Andrew

_________________
| Andrew Bassett
| Managing Director, NetHosted Ltd.
| Resellers, take a look at overselling !
| Members, tell us what you think  of NetHosted!
Back to top
View user's profile Send private message
boughtonp Reply with quote
 NetHosted Customer

 

 Joined: 18 Jul 2005
 Posts: 129
 Location: South Croydon

PostPosted: Fri Jun 15, 2007 6:47 pm    Post subject:
 
Could you re-export to CSV and use a diff tool (ie: Beyond Compare) to identify differences?

Also, since this is a large monthly task, you might consider writing a specialist tool for it, that reads in the CSV and logs any errors as they happen?

_________________
Peter Boughton
Back to top
View user's profile Send private message Visit poster's website
colbec Reply with quote
 NetHosted Customer

 

 Joined: 08 Sep 2006
 Posts: 59
 Location: Desert Lake, Ontario

PostPosted: Sat Jun 16, 2007 10:02 am    Post subject:
 
This reminds me of an issue I had reading raw records from webpage logs. Mostly the records read in fine, but occasionally someone would try to log in with a space in their login name. This would be faithfully recorded in the log but it would mess up my separation character settings and cause no end of problems. I found this by reading the csv into a MS Access database first, which politely isolated the records it could not make sense of, I was able to fix it up and then send it along to mysql.
Back to top
View user's profile Send private message Visit poster's website
Post new topic   Reply to topic    NetHosted Community Index -> FTP/SQL Support
Page 1 of 1

User Permissions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

 
Jump to: