Solved

mysql and read-only errors

Posted on 2001-07-10
5
181 Views
Last Modified: 2010-04-16
i'm trying to do an insert/update on a table and it gives me the error:

table 'mytable' is read only (State:S1000, Native Code: 40C)

i'm running linux and i'm pretty sure i have the permissions set up correctly.  (I've set up my user to have all priviledges on all databases).

anyone have this problem before?

0
Comment
Question by:bobbit31
  • 3
  • 2
5 Comments
 
LVL 92

Expert Comment

by:objects
ID: 6271528
What user are you logging in to the database with?
What are the permissions granted to this user for mytable?
0
 
LVL 18

Author Comment

by:bobbit31
ID: 6273025
a user i set up with all permissions, i've even tried with root.
0
 
LVL 18

Author Comment

by:bobbit31
ID: 6274349
i've figured it out... basically i'm switching from NT to Linux and stupidly i just copied over the database files.  It let me read them ok so i figured that the transfer went ok.  But that's what screwed it up.  Basically to fix i did a mysqldump and then mysqlimport and everything is fine now.  
0
 
LVL 92

Accepted Solution

by:
objects earned 100 total points
ID: 6274935
Your unix perms are seperate from your db perms.
0
 
LVL 18

Author Comment

by:bobbit31
ID: 6277371
i've already figured it out, but since i get eekpro for free the points are yours... thanks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
type mismatch (Object[] to double[] 4 33
eclipse buid path vs tomcat lib path 10 34
CSV file parsing thru Java 13 34
ejb message driven bean mdb creation steps 2 23
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question