新聞中心
本篇內(nèi)容介紹了“怎么解決mysql中的LOAD DATA LOCAL INFILE問題”的有關(guān)知識,在實際案例的操作過程中,不少人都會遇到這樣的困境,接下來就讓小編帶領(lǐng)大家學(xué)習(xí)一下如何處理這些情況吧!希望大家仔細閱讀,能夠?qū)W有所成!
問題:
load data local infile 報如下錯誤
load locale data infile ERROR 1148 (42000): The used command is not allowed with this MySQL version
解決:
mysql連接時 帶 --local-infile 參數(shù)
即 mysql -hxxx.xxx.xxx.xxx -P3306 -uroot -pmypwd --local-infile
ps:
①5.0之后的版本都是支持load data local inile操作的。
②若出現(xiàn)權(quán)限相關(guān)的錯誤,請不要把待導(dǎo)入文件放在root目錄下?;蛘卟榭凑谑褂玫膍ysql賬戶是否有file權(quán)限。
“怎么解決mysql中的LOAD DATA LOCAL INFILE問題”的內(nèi)容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業(yè)相關(guān)的知識可以關(guān)注創(chuàng)新互聯(lián)-成都網(wǎng)站建設(shè)公司網(wǎng)站,小編將為大家輸出更多高質(zhì)量的實用文章!
網(wǎng)站題目:怎么解決mysql中的LOADDATALOCALINFILE問題-創(chuàng)新互聯(lián)
文章轉(zhuǎn)載:http://fisionsoft.com.cn/article/dhgphd.html