Page 1 of 1

problem with accessing database file

Posted: Mon Jun 28, 2004 7:18 am
by bugthefixer
when i like to write through web to a databse table it says its read only.
my database is on linux server and i have cecked it provides full rights .
error it gives is

1036: Table 'train' is read only

Posted: Mon Jun 28, 2004 7:22 am
by patrikG
moved to "databases"

1. what database are you using?
2. have you checked you're access-rights?

Posted: Mon Jun 28, 2004 8:12 am
by bugthefixer
I m using mysql..
and i have checked it very well..it works fine through phpmyadmin but not through my php code..

Posted: Mon Jun 28, 2004 9:29 am
by patrikG
can phpmyadmin write to the table?

Posted: Tue Jun 29, 2004 1:41 am
by bugthefixer
yes it works fine with phpMyAdmin...my code works fine on one server but it gives error on one server...but when i update it using java servlets then it doesnt give any error..

Posted: Tue Jun 29, 2004 2:53 am
by hairyjim
works fine on one server but it gives error on one server
Are you using one server for serving your MySQL db and a different one that serves your web pages?

Posted: Tue Jun 29, 2004 5:58 am
by bugthefixer
sorry i mean wors fine on one server but not on other actually i tried it on different servers..