我尝试使用mysql命令来实现执行后显示警告,但是我的命令似乎不起作用,下面的代码有什么问题,我测试了很多次
mysql -uroot -pbin \W --execute="LOAD DATA LOCAL INFILE '/home/mlzboy/code/mq/model_product.csv' INTO TABLE search.model_product FIELDS TERMINATED BY ',' ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY '\n' (name,price,productid,site,link,smallImage,bigImage,description,createdOn,modifiedOn,size,weight,wrap,material,packagingCount,stock,location,popularity,inStock,categories);"
答案1
尝试使用
mysql -uroot -pbin --show-warnings --execute="..."
答案2
也许这会有所帮助:如何列出“mysqlimport”实用程序的警告?