[英]Mysql import csv with task scheduler or schedule task using command prompt
I could run the following command:我可以运行以下命令:
mysql.exe -u root
use testdb
LOAD DATA INFILE 'C:/Users/user1/test.csv' INTO TABLE demo FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n';
under c:\\xampp\\mysql\\bin
在
c:\\xampp\\mysql\\bin
How could I run the above command as a batch file at task scheduler or schedule task using command prompt ?如何在任务调度程序或使用命令提示符调度任务时将上述命令作为批处理文件运行?
I just need to use mysql -h host -u user < batch-file我只需要使用mysql -h host -u user < 批处理文件
And store every command in batch-file.并将每个命令存储在批处理文件中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.