MySQL之表匯入匯出失敗——The MySQL server is running with the --secure-file-priv option

來源:互聯網
上載者:User

標籤:最簡   --   mysql\   搜尋   file   工具   IV   mysq   檔案中   

當你在看這篇文章的時候,估計也在為這個問題而頭疼;

匯入匯出為文字檔時,發現總是報錯,解決方案很多,以下為最簡單徹底的方法,記錄一下。

 

首先,到C:\ProgramData\MySQL\MySQL Server xxx.xxx 目錄下找到my.ini檔案

這裡需要注意的是,ProgramData是隱藏檔案,也許你設定了隱藏檔案不可見,需要暫時設定回來:工具->檔案夾選項->顯示隱藏的檔案

在my.ini檔案中搜尋secure-file-priv找到並將它的值改為

secure-file-priv=‘’ ,也就是賦值為空白。(我是MySQL 8.0版本):

到這裡還沒有結束,需要重新啟動MySQL;

win+R 輸入 services.msc 大家服務介面,找到你的Mysql,重新啟動即可;

 

 如果還不行,那你就重啟電腦試試,還不行就算了,別匯出了哈哈

MySQL之表匯入匯出失敗——The MySQL server is running with the --secure-file-priv option

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.