Solved

mysql and read-only errors

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

863 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

22 Experts available now in Live!

Get 1:1 Help Now