本文主要是介绍mysql导入.csv格式文件,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
mysql -uriskinfo -priskinfo -Driskinfo -e "load data local infile '/home/text/1.csv' into table text2 fields terminated by ',' lines terminated by '\r\n';"
-u用户名
-p密码
-d数据库
-e执行的意思
如何提示这个错误:The used command is not allowed with this MySQL version
mysql -umadfrog -pmadfrog -Dblacklist --local-infile=1 -e "load data local infile '/tmp/customers.csv' into table customers fields terminated by ',' lines terminated by '\r\n';"
这篇关于mysql导入.csv格式文件的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!