1290 – The MySQL server is running with the –secure-file-priv option so it cannot execute this statement
創(chuàng)新互聯(lián)網(wǎng)站建設公司,提供網(wǎng)站設計制作、網(wǎng)站設計,網(wǎng)頁設計,建網(wǎng)站,PHP網(wǎng)站建設等專業(yè)做網(wǎng)站服務;可快速的進行網(wǎng)站開發(fā)網(wǎng)頁制作和功能擴展;專業(yè)做搜索引擎喜愛的網(wǎng)站,是專業(yè)的做網(wǎng)站團隊,希望更多企業(yè)前來合作!
secure-file-priv特性
secure-file-priv參數(shù)是用來限制LOAD DATA, SELECT … OUTFILE, and LOAD_FILE()傳到哪個指定目錄的。
show global variables like '%secure%';
mysql> show global variables like '%secure%';
+------------------+-------+
| Variable_name | Value |
+------------------+-------+
| secure_auth | OFF |
| secure_file_priv | |
+------------------+-------+
2 rows in set (0.00 sec)
有導出權限,導出路徑需在/var/lib/mysql-files/下:
mysql> show global variables like '%secure%';
+--------------------------+-----------------------+
| Variable_name | Value |
+--------------------------+-----------------------+
| require_secure_transport | OFF |
| secure_auth | ON |
| secure_file_priv | /var/lib/mysql-files/ |
+--------------------------+-----------------------+
3 rows in set (0.09 sec)
MYSQL新特性secure_file_priv對讀寫文件的影響
此開關默認為NULL,即不允許導入導出。
解決問題:
windows下:
修改my.ini 在[mysqld]內加入secure_file_priv=
linux下:
修改my.cnf 在[mysqld]內加入secure_file_priv=
MYSQL新特性secure_file_priv對讀寫文件的影響
然后重啟mysql,再查詢secure_file_priv
分享題目:MYSQL新特性secure_file_priv讀寫文件o
網(wǎng)址分享:http://chinadenli.net/article28/giojjp.html
成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供App開發(fā)、品牌網(wǎng)站設計、網(wǎng)站內鏈、網(wǎng)站排名、ChatGPT、商城網(wǎng)站
聲明:本網(wǎng)站發(fā)布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經(jīng)允許不得轉載,或轉載時需注明來源: 創(chuàng)新互聯(lián)