Bluehost.com Web Hosting $6.95

Error 1148 and 1045

This is a discussion on Error 1148 and 1045 within the PHP General forums, part of the PHP Programming Forums category; I have upgraded my mysql version to 3.23.58 and am coming up with a couple of errors using ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-28-2003
Steve Buehler
 
Posts: n/a
Default Error 1148 and 1045

I have upgraded my mysql version to 3.23.58 and am coming up with a couple
of errors using phpmyadmin to "Insert data from a textfile into table" I
didn't get this on the previous versions of mysql. Here are the errors:


SQL-query :

LOAD DATA INFILE '/tmp/phpKFlQ2b' INTO TABLE `annsubscribers` FIELDS
TERMINATED BY ',' ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY '\r\n'(
`email`
)

MySQL said:

#1045 - Access denied for user: 'animalnews@localhost' (Using password: YES)

---------------

SQL-query :

LOAD DATA LOCAL INFILE '/tmp/phpsj1WGM' INTO TABLE `annsubscribers` FIELDS
TERMINATED BY ',' ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY '\r\n'(
`email`
)

MySQL said:

#1148 - The used command is not allowed with this MySQL version

---------------
Can anybody shed some light on how to fix this? I presume the first is a
permission problem that is from the new way that MySQL handles things. The
second is just a mystery to me.

Thanks
Steve
Reply With Quote
  #2 (permalink)  
Old 10-29-2003
Burhan Khalid
 
Posts: n/a
Default Re: [PHP] Error 1148 and 1045

Steve Buehler wrote:
> I have upgraded my mysql version to 3.23.58 and am coming up with a
> couple of errors using phpmyadmin to "Insert data from a textfile into
> table" I didn't get this on the previous versions of mysql. Here are
> the errors:


[ snip ]

> ---------------
> Can anybody shed some light on how to fix this? I presume the first is
> a permission problem that is from the new way that MySQL handles
> things. The second is just a mystery to me.
>


This is a php mailing list. Ask your question on the mysql list.

--
Burhan Khalid
phplist[at]meidomus[dot]com
http://www.meidomus.com
Reply With Quote
  #3 (permalink)  
Old 05-20-2004
bufhal smith
 
Posts: n/a
Default Re: Error 1148 and 1045


Hi Steve,
I found you by putting the same error message into Yahoo--it took me to
your post. Since there was no reply, I was wondering if you could shed
some light if you found a remedy to the upload issue. I get the exact same
errors..Please let me know if you found a solution.
Thank you
gzakes@adelphia.net




Steve Buehler wrote:


> I have upgraded my mysql version to 3.23.58 and am coming up with a
> couple
> of errors using phpmyadmin to "Insert data from a textfile into
> table" I
> didn't get this on the previous versions of mysql. Here are the
> errors:



> SQL-query :


> LOAD DATA INFILE '/tmp/phpKFlQ2b' INTO TABLE `annsubscribers` FIELDS
> TERMINATED BY ',' ENCLOSED BY '"' ESCAPED BY '\' LINES TERMINATED
> BY 'rn'(
> `email`
> )


> MySQL said:


> #1045 - Access denied for user: 'animalnews@localhost' (Using password:
> YES)


> ---------------


> SQL-query :


> LOAD DATA LOCAL INFILE '/tmp/phpsj1WGM' INTO TABLE `annsubscribers`
> FIELDS
> TERMINATED BY ',' ENCLOSED BY '"' ESCAPED BY '\' LINES TERMINATED
> BY 'rn'(
> `email`
> )


> MySQL said:


> #1148 - The used command is not allowed with this MySQL version


> ---------------
> Can anybody shed some light on how to fix this? I presume the first is
> a
> permission problem that is from the new way that MySQL handles things.
> The
> second is just a mystery to me.


> Thanks
> Steve






##-----------------------------------------------#
Article posted from PHP Freaks NewsGroup
http://www.phpfreaks.com/newsgroup
Get Addicted: php.genera
##-----------------------------------------------##
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 02:52 AM.


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