I have a csv file and I am using LOAD DATA LOCAL INFILE
command to load it inside mysql, but I've got no idea why it only reads 5 lines of it.
Here is my php code:
<?php
include "../config.php";
$conn = new mysqli( $servername, $username, $password, $dbname );
if ( $conn->connect_error ) {
die( "Connection failed: " . $conn->connect_error );
} //$conn->connect_error
$sql= "LOAD DATA LOCAL INFILE 'uploads/cell.csv'
INTO TABLE table3
CHARACTER SET UTF8
FIELDS TERMINATED BY ','
LINES TERMINATED BY '\r\n'";
$result = $conn->query( $sql );
echo("Error description: " . mysqli_error($conn));
?>
and the csv file is attached in link below.
Mysql after executing the php code looks like this: