MySQL LOAD DATA INFILE usage with non-printable character delimiters
5 answers
If you are using mysqlimport, the format for hexadecimal values ββin fields ending in and ending with lines, etc:
mysqlimport --local --user = username --password = secret --ignore-lines = 4 --default-character-set = UTF8 -fields-terminated-by = 0x01 -lines-terminated-by = 0x02 --verbose databasename thefiletoimport
+1
source to share
You can try just sending the ascii char directly inside the string literal .. if your connection doesn't have an encoding or encoding then mysql can just accept it as a valid string. You will need to do this over a network connection or transfer data to the mysql client. I don't think you will be able to type this into the console.
0
source to share