MySQL Forums
Forum List  »  Newbie

Re: secure_file_priv set to NULL
Posted by: Peter Brawley
Date: October 13, 2021 09:57AM

For a reason I've never understood, MySQL OS X installation defaults to no my.cnf. That causes endless problems. You can create one in /etc. There's a sample my.cnf in /usr/local/mysql/support-files/. Or in WorkBench ...

1 Open a connection

2 In the menu choose Instance -> 'Options File'

3 WB will search for it, and on failing to find it, WB will create it.

There are thousands of options. Read about them at https://dev.mysql.com/doc/refman/8.0/en/option-files.html. You'll find secure_file_priv documented there. The value NULL blocks Load Data. Best secure practice is to set it to a custom folder.

If you don't have SUPER priv, is this a shared hosting arrangement? If so, you're not likely to be able to use Load Data.

Options: ReplyQuote


Subject
Written By
Posted
October 12, 2021 11:16PM
Re: secure_file_priv set to NULL
October 13, 2021 09:57AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.