Solved

mysql and read-only errors

Posted on 2001-07-10
5
178 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Protect jar file - windows app 2 50
Image decoding from Camera 3 85
hibernate jars 4 26
printf performancy 11 32
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
This video teaches viewers about errors in exception handling.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

813 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now