Load Data Infile question

This is a discussion on Load Data Infile question within the MySQL Database forums, part of the Database Forums category; I just tried to execuete a Load Data Infile command to import data from a .cvs file into a mysql ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-22-2006
bradfordh@gmail.com
 
Posts: n/a
Default Load Data Infile question

I just tried to execuete a Load Data Infile command to import data from
a .cvs file into a mysql table, but I get the following error. Any help
at all is greatly appreciated. Thanks



#1045 - Access denied for user 'number11'@'localhost' (using password:
YES)

Reply With Quote
  #2 (permalink)  
Old 03-22-2006
Jerry Stuckle
 
Posts: n/a
Default Re: Load Data Infile question

bradfordh@gmail.com wrote:
> I just tried to execuete a Load Data Infile command to import data from
> a .cvs file into a mysql table, but I get the following error. Any help
> at all is greatly appreciated. Thanks
>
>
>
> #1045 - Access denied for user 'number11'@'localhost' (using password:
> YES)
>


My guess would be that number11@localhost doesn't have 'file' authorization for
this database.

Alternatively, it could be if you're using a recent version of MySQL which has
local infile support disabled by default. To change this, you must use:

mysql --local-infile

And BTW - did you try a google search? One on

"LOAD DATA INFILE" mysql 1045

showed several possibilities.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Reply With Quote
  #3 (permalink)  
Old 03-23-2006
bradfordh@gmail.com
 
Posts: n/a
Default Re: Load Data Infile question

If I am using phpMyAdmin, how would I execute the command "mysql
--local-infile" ?

Reply With Quote
  #4 (permalink)  
Old 03-23-2006
Jerry Stuckle
 
Posts: n/a
Default Re: Load Data Infile question

bradfordh@gmail.com wrote:
> If I am using phpMyAdmin, how would I execute the command "mysql
> --local-infile" ?
>


AFAIK, you don't. There may be a SET option, but I'm not sure what it is.

You would have to start mySql with the --local-infile option. Since you're
using phpMyAdmin, you may have to compile PHP against the current version of
MySQL - but not knowing which version of either you're using, I have no idea.

You may be able to get it to work with LOAD DATA LOCAL INFILE ... but I haven't
tried it.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:11 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0