日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

mysql infile local,MySQL:启用LOAD DATA LOCAL INFILE

發布時間:2025/3/12 49 豆豆
生活随笔 收集整理的這篇文章主要介紹了 mysql infile local,MySQL:启用LOAD DATA LOCAL INFILE 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

I'm running Mysql 5.5 on Ubuntu 12 LTS. How should I enable LOAD DATA LOCAL INFILE in my.cnf?

I've tried adding local-infile in my config at various places but I'm still getting the "The used command is not allowed with this MySQL version"

解決方案

From the MySQL 5.5 manual page:

LOCAL works only if your server and your client both have been

configured to permit it. For example, if mysqld was started with

--local-infile=0, LOCAL does not work. See Section 6.1.6, “Security Issues with LOAD DATA LOCAL”.

You should set the option:

local-infile=1

into your [mysql] entry of my.cnf file or call mysql client with the --local-infile option:

mysql --local-infile -uroot -pyourpwd yourdbname

You have to be sure that the same parameter is defined into your [mysqld] section too to enable the "local infile" feature server side.

It's a security restriction.

總結

以上是生活随笔為你收集整理的mysql infile local,MySQL:启用LOAD DATA LOCAL INFILE的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。