GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   need some mysql help here (https://gfy.com/showthread.php?t=578576)

alex79 02-21-2006 10:34 AM

need some mysql help here
 
i've copyed the files of a mysql database from a server to another (server1: /var/lib/mysql/database/files to server2: /var/lib/mysql/database/files)

i can access the database on the new server but all the tables are read only.. i made a chown mysql /var/lib/mysql/database/files and chmod 777 /var/lib/mysql/database/files but all tables are still in readonly format.. what do i have to do so i can have full access on the database on the server2?

thanks

Baker Rd 02-21-2006 11:06 AM

Did you copy the files while mysql was still running? That would be why they are read-only. You should stop the mysql service before copying database files.

You can also try doing a FLUSH TABLES.

com 02-21-2006 11:08 AM

make sure the group setting is correct chown user:group or chgrp

FuqALot 02-21-2006 11:09 AM

Try to see if the mysql account you're using has enough permissions to write.

MickeyG 02-21-2006 11:46 AM

wouldn't it have been better/easier to use mysql dump?

GFX Wiz 02-21-2006 11:51 AM

Quote:

Originally Posted by MickeyG
wouldn't it have been better/easier to use mysql dump?

That's my thought too

mikesouth 02-21-2006 12:03 PM

exactly...why would you copy files?

export and import the database....thats the only reliable way to do it...mysql keeps its system catalogs in tablescopying files is a sure way to get those ginked up.


All times are GMT -7. The time now is 09:50 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123