mySql server host error
-
Hie everyone I have the below code on my console to import data from an excel sheet to a mySql database but unfortunately I am having an error which reads: NO CONNECTION TRYING TO RECONNECT.... ERROR 2005 (HY000): UNKNOWN MYSQL SERVER HOST '(ID,NAME):' (11001) ERROR: Can't connect to the server My command is as follows: LOAD DATA LOCAL INFILE `C:\\temp\\test.csv' INTO TABLE bd_george.test FIELDS TERMINATED BY `;' LINES TERMINATED BY `\r\n' (id,name);
Regards George Tsiga STUDENT
-
Hie everyone I have the below code on my console to import data from an excel sheet to a mySql database but unfortunately I am having an error which reads: NO CONNECTION TRYING TO RECONNECT.... ERROR 2005 (HY000): UNKNOWN MYSQL SERVER HOST '(ID,NAME):' (11001) ERROR: Can't connect to the server My command is as follows: LOAD DATA LOCAL INFILE `C:\\temp\\test.csv' INTO TABLE bd_george.test FIELDS TERMINATED BY `;' LINES TERMINATED BY `\r\n' (id,name);
Regards George Tsiga STUDENT
-
Thanks a lot its now working I was using a backtick on rapping \r\n. The correct command is as follows. LOAD DATA LOCAL INFILE 'C:\\temp\\test.csv' INTO TABLE bd_george.test FIELDS TERMINATED BY ';' LINES TERMINATED BY '\r\n' (id,name);
Regards George Tsiga STUDENT