Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Count records (My SQL)

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
MySQL.
I want to insert 1500 records but it's inserted only 1000 records. Why? I write "load data infile 'file.txt' into table t1" where file.txt consist of more than 1000 records. Why aren't others inserted? I hope somebody find a bit of time to answer me. Sorry for my English. Thanks.
 
I would have to guess tha 500 of your records are badly formatted for one reason or another and MySQL throws them out. ______________________________________________________________________
TANSTAAFL!
 
do your execute your file via WEB? it could be cause the server timeout to execute the page? if so, may be you can extend your Apache server time out.


THnaks
Louis
 
try mysqlimport command to insert the data
the result, if everything goes fine, should be something like this:

dbname.tablename: Records: 1229 Deleted: 0 Skipped: 0 Warnings: 0

if you receive some non-zero values you have an error in your file as sleipnir214 said
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top