Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

transferred my DB files to new comp, but now tables are read only...

Status
Not open for further replies.

spewn

Programmer
May 7, 2001
1,034

here is the code i'm using:

Code:
$dbh9 = DBI->connect('dbi:mysql:gtc','','');
$sth9 = $dbh9->prepare("INSERT INTO orders VALUES(0,'orderDate','no')");
$sth9->execute;
$orderNumber = $dbh9->{'mysql_insertid'};

this was working fine on the original box, and i'm able to access the table data, but i'm unable to insert or alter the table. i went to the actual table in mysqlcc and tried to delete the info in the table, and that's how i found out the files are read only.

i tried checking the permissions for users and found that they both have full permissions and grant option is checked.

still no go.

any ideas?

- g
 
Did you simply copy the database files from one machine to the other? If so, you need to tweak the ownership and permissions of the files. Just compare them to database directories and table files that were created on that system and match them.


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
thanks. late last night i decided to check the actual files that i transferred and that's where i found the 'read-only' status. after unchecking the box, the site worked fine.

thanks for your help!

- g
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top