Note that if you created the file on Windows with an editor that uses \r\n as a line terminator, you should use:
mysql> LOAD DATA LOCAL INFILE '/path/pet.txt' INTO TABLE pet
-> LINES TERMINATED BY '\r\n';
note example from mysql help - "Lines Terminated by \r\n" was recomended in Windows