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

后端 未结 9 1395
醉话见心
醉话见心 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:42

    This is the example of my SQL that worked perfectly in WAMP SERVER (windows):

    SELECT display_name,user_email,user_registered FROM test_wp_users
    ORDER BY user_registered ASC
    INTO OUTFILE 'C:/wamp64/tmp/usersbyemail.csv'
    FIELDS TERMINATED BY ','
    ENCLOSED BY '"'
    LINES TERMINATED BY '\n';
    

    PS: Note that bars in path should be left-to-right to work perfectly in MYSQL.

提交回复
热议问题