If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > MYSQL Error When Inserting a New Record...

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-07-04, 09:55
jrennard jrennard is offline
Registered User
 
Join Date: Aug 2004
Posts: 2
MYSQL Error When Inserting a New Record...

I'm getting the following error when inserting a new record on a registration form.

An error occured. -2147467259 : SQLState: S1000 Native Error Code: 1142 [TCX][MyODBC]insert command denied to user: 'cpanelname_username@localhost' for table 'tablename'

I've tried almost everything except for trying to insert into a different table or use a different command. I've tried inserting a single record without populating from the form, but it gives the same error.

My user has full privileges and has been added as full to the database I'm accessing.

Though I haven't tried yet, the only thing that I can think that may be causing this is that I am submitting information to all fields and that includes the Primary Key. However, my PK isn't set to auto increment so it shouldn't matter.

If anyone has any information about this I would greatly appreciate it. Thanks!

Arvida
Reply With Quote
  #2 (permalink)  
Old 12-09-04, 05:45
mythix mythix is offline
Registered User
 
Join Date: Jun 2002
Posts: 63
Surely this has gott to be an 'access' issue. Try explicitly granting rights to the user on the specific database in question.

-> there is one other thing, how r u trying to access the database, I believe that there was a change on the way that MySQL handles passwords, I had problems with PHP and MySQL, becuase PHP didn;t support the new version passwords on MySQL. There is a configuration option in the mysql conf file to endable 'old passwords' I think.
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 On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On