I have a console to load the sample.txt file into Table in database but it's failed when the sample.txt file size is more the 4000kb. How to incerase the limit? I think the default limit is 4096kb.
When I run the SQL query in MYSQL its successful insert all the data into Table.
strSql = "LOAD DATA LOCAL INFILE 'D:\\sample.txt'" & _
" INTO TABLE TABLENAME" & _
" FIELDS TERMINATED BY '|'" & _
" LINES TERMINATED BY '\n'" & _
" IGNORE 1 LINES" & _
" (NO,MESSAGE);"
Func: ExecSQL| at MySql.Data.MySqlClient.NativeDriver.SendFileToServer(String filename)
at MySql.Data.MySqlClient.NativeDriver.ReadResult(UInt64& affectedRows, Int64& lastInsertId)
at MySql.Data.MySqlClient.MySqlDataReader.GetResultSet()
at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader()
at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
at MNC.COM.DBConn.ExecSQL(String strSQL)|MySql.Data|Error during LOAD DATA LOCAL INFILE|LOAD DATA LOCAL INFILE 'D:\\sample.txt' INTO TABLE FILE_RECORD_LOG_TEST FIELDS TERMINATED BY '|' LINES TERMINATED BY '\n' IGNORE 1 LINES (NO,MESSAGE);