mysql - enable LOCAL INFILE with PHP on Linux -
i'm having issues loading data mysql on linux. i'm using load data local infile. can fine on mac os x, through mysql command line , php script sql query.
the issue arises when i'm on linux, seems load data local disabled per mysql documentation security issues. around problem, give possible workarounds such using --local-infile[=1] on starting mysql, suppose if i'm using php?
specifically, in command line, error:
error 1148 (42000): used command not allowed mysql version i'm using version:
mysql ver 14.14 distrib 5.5.41, debian-linux-gnu (x86_64) using readline 6.3 any appreciated.
you can set sql statement, assuming have correct permissions change global variables;
set global local_infile = 'on'; check see if changes have taken effect;
show global variables 'local_infile';
Comments
Post a Comment