You are here: Load Data InFile fails « PHP Programming Language « IT news, forums, messages
Load Data InFile fails

Posted by Bruce A. Julseth on 08/02/05 04:38

I have three users with access to my test MySQL databases, root plus two
others. The following PHP code only works when the user is root. Otherwise
it fails.

$File = addslashes(getcwd() . "\Address.txt");
$SQL = "Load Data InFile \"" . $File . "\" into table addresses";
$result = mysql_query($SQL) or die("Failed to load data");

Both users were created by root from a cmd prompt:

grant all on * to user@localhost identified by 'mypw' with grant options;

What is wrong so that the created users can execute the above code?

Thanks.

Bruce

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация