How should I tackle --secure-file-priv in MySQL?

前端 未结 21 1539
攒了一身酷
攒了一身酷 2020-11-22 06:04

I am learning MySQL and tried using a LOAD DATA clause. When I used it as below:

LOAD DATA INFILE \"text.txt\" INTO table mytable;
21条回答
  •  余生分开走
    2020-11-22 06:25

    I had this problem on windows 10. "--secure-file-priv in MySQL" To solve this I did the following.

    1. In windows search (bottom left) I typed "powershell".
    2. Right clicked on powershell and ran as admin.
    3. Navigated to the server bin file. (C:\Program Files\MySQL\MySQL Server 5.6\bin);
    4. Typed ./mysqld
    5. Hit "enter"

    The server started up as expected.

提交回复
热议问题