• Register
search
Log In
0 votes
70 views

Problem :

I get mysql error help

the mysql server is running with the --secure-file-priv option so it cannot execute this statement

6.9k points
edited by

1 Answer

0 votes

Solution :

I had faced similar mysql database issue in the past.
Here is what worked for me in Windows 7 to disable secure-file-priv 
  • First you must stop the MySQL server service by going into services.msc.
  • Go to path C:\ProgramData\MySQL\MySQL Server 5.6.
  • Now open the my.ini file in Notepad.
  • Please search for 'secure-file-priv'.
  • Make sure you comment the line out by adding '#' at the start of the line. 
  • For MySQL Server 5.7.16 and above, commenting won't work. 
  • You have to set it to an empty string like this one - secure-file-priv=""
  • Please save the file.
  • Now you can start the MySQL server service by going into services.msc.
36.1k points

Related questions

0 votes
1 answer 98 views
98 views
Problem : I am facing a strange MySQL error may be it is related to the database's read-only flag. The Web application that is using the MySQL is running on Debian 7.9. It was running well but suddenly started attempting to access the application powered website ... - SQLSTATE[HY000]: General error: 1290 The MySQL server is running with the --read-only option so it cannot execute this statement
asked Nov 20, 2019 peterlaw 6.9k points
0 votes
1 answer 28 views
28 views
Problem : I am very new to the Linux but want to set up my MySQL databases on the Amazon ec2 instance. I have followed some directions I found about resetting a user login pass by using a --skip-grant-tables option of the MySQL. Now I want to add my user ... HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement How can I turn above option off?
asked Jan 30 jwilliam 3.9k points
0 votes
2 answers 85 views
85 views
Problem : I am trying to load my data into mysql database using below code LOAD DATA LOCAL INFILE A.txt INTO DB LINES TERMINATED BY '|'; A topic of my question is related to response I get. I understand a local data offloading is off by default and I have to enable it using following command local-infile=1 but I do not know how to execute this command.
asked Jan 28 jwilliam 3.9k points
0 votes
1 answer 835 views
835 views
Problem : Following is my issue: I tried to install mysqlclient like below : C:\Users\alecxe>pip install mysqlclient Collecting mysqlclient Using cached https://files.pythonhosted.org/packages/ec/fd/83329b9d3e14f7344d1 cb31f128e6dbba70c5975c9e57896815dbb1988ad/mysqlclient-1.3.13.tar.gz Installed ... beginner to this and would be very happy if any input as to how to go about fixing above error.
asked Dec 27, 2019 alecxe 7.5k points
0 votes
1 answer 31 views
31 views
Problem: I am little bit confused, which statement is true? In sql server, execute the sp_columns command to list all the columns in a table? True False
asked Feb 19 maddi86 5.4k points