MySQL ERROR 1290 (HY000) --secure-file-priv option

后端 未结 9 1424
醉话见心
醉话见心 2020-11-30 03:19

I am trying to write the results of MySQL script to a text file using the following code in my script.

SELECT p.title, p.content, c.name FROM post p
LEFT JOI         


        
9条回答
  •  余生分开走
    2020-11-30 03:35

    In my my.ini I only had

    # Secure File Priv.
    

    and I tried to put:

    # Secure File Priv.
    secure-file-priv = ""
    

    and

    # Secure File Priv.
    secure-file-priv = NULL
    

    without making it work.

    I finally deleted the line and left alone:

    secure-file-priv = ""
    

    Working correctly.

提交回复
热议问题