#1290 - The MySQL server is running with the --secure-file-priv
#1
#1290 - The MySQL server is running with the --secure-file-priv
HI Guys,

Trying to issue the following command

Code:
LOAD DATA INFILE '/var/sentora/hostdata/lairdexpertit/public_html/lairdexpertit_com/phonestats/csv/north.csv' INTO TABLE `north` FIELDS TERMINATED BY ',' ENCLOSED BY '\"' IGNORE 1 LINES


get the following error.

Code:
#1290 - The MySQL server is running with the --secure-file-priv option so it cannot execute this statement

I do need this function any fixs please?
Reply
#2
RE: #1290 - The MySQL server is running with the --secure-file-priv
Can you use the LOAD DATA LOCAL INFILE ? Would that work for you?
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora

[Image: vanguardly-logo-micro.png]
Graphic and Web Design. Development.
www.vanguardly.com


Reply
#3
RE: #1290 - The MySQL server is running with the --secure-file-priv
LOCAL looks as though it will work ill have to alter my script to incorporate this
Reply
#4
RE: #1290 - The MySQL server is running with the --secure-file-priv
(06-15-2015, 06:05 PM)txt3rob Wrote: LOCAL looks as though it will work ill have to alter my script to incorporate this

You will have to either change your script or change Sentora.

Personally I would change the script as most web hosting servers are blacklisting the command for security reasons.

It's up to you Smile
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora

[Image: vanguardly-logo-micro.png]
Graphic and Web Design. Development.
www.vanguardly.com


Reply
#5
RE: #1290 - The MySQL server is running with the --secure-file-priv
secure-file privilege is security feature that MySQL need otherwise any mysql user will be able to drop files everywhere and you can then feel the pain.

Don't ever mess up with this feature.

What would preven any user in the server to do the same and grave any file in the server? That would be bad no?

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
#6
RE: #1290 - The MySQL server is running with the --secure-file-priv
my server isnt hosting any one else's data apart my own.

any way i can turn off the secure priv as it's messing with my stats import unless any one has a way to import 20 .csv's each day to a mysqldb
Reply
#7
RE: #1290 - The MySQL server is running with the --secure-file-priv
Why you cant just edit the script?

This is not even a Sentora issue.

Also, if you are just hosting your files why use sentora? :\ I don't get it.
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora

[Image: vanguardly-logo-micro.png]
Graphic and Web Design. Development.
www.vanguardly.com


Reply
#8
RE: #1290 - The MySQL server is running with the --secure-file-priv
(06-17-2015, 10:30 PM)txt3rob Wrote: my server isnt hosting any one else's data apart my own.

any way i can turn off the secure priv as it's messing with my stats import unless any one has a way to import 20 .csv's each day to a mysqldb

In cas of a website hack. It can be used to escalate privilege easily. This is not even about you are the only user.

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Server Crash rsthomas 3 10 ,461 05-18-2022, 09:26 AM
Last Post: Nigel
How to set up File Manger for Sentora? donaldaugust 1 4 ,888 01-11-2022, 05:01 AM
Last Post: Nigel
Server Vs. Workstation zHostingSolutions 4 11 ,707 09-14-2021, 06:30 AM
Last Post: sparkrack

Forum Jump:


Users browsing this thread: 1 Guest(s)