Bug #18338: LOAD DATA LOCAL problem leads to "...command is not allowed..."
| From: | manuel at manitu dot de | Date: | Sun, 14 Jul 2002 16:11:05 +0000 |
| Subject: | Bug #18338: LOAD DATA LOCAL problem leads to "...command is not allowed..." | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-14141@lists.php.net to get a copy of this message | ||
From: manuel@manitu.de
Operating system: Linux / RedHat 7.3
PHP version: 4.2.1
PHP Bug Type: MySQL related
Bug description: LOAD DATA LOCAL problem leads to "...command is not allowed..."
When upgrading to MySQL 3.23.49 or higher, many people did encounter a
problem when using "LOAD DATA LOCAL" with MySQL and PHP. This was caused
because MySQL authors did alter some configuration of MySQL. Starting with
MySQL 3.23.49 there is another option ("local-infile") which has to be
passed to the MySQL server and clients in order to have LOAD DATA LOCAL to
work again.
The problem: Passing this ("local-infile[=1]") does not affect PHP. Many
people still have problems to get LOAD DATA LOCAL to work.
Background: If you have passed the parameter to MySQL (in my.cnf or via
the startup script) and the command LOAD DATA LOCAL still leads to
"...command not allowed..." then your PHP was not compiled correctly.
When compiling PHP with "--enable-safe-mode" the problem still occurs
independent on what your MySQL server settings or what php.ini says
(attentions: even if you deactivate safe mode in php.ini the error is
there).
The solutions: The only way to solve the problem is not to use
"--enable-safe-mode" when configuring PHP and then set it manually in
php.ini. Then LOAD DATA LOCAL works again.
--
Edit bug report at http://bugs.php.net/?id=18338&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18338&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18338&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18338&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18338&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18338&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18338&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18338&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18338&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18338&r=globals