|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Jun 2002
Location: france
Posts: 996
|
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 |
|
|
|
|
|
#2 |
|
Confirmed User
Join Date: Nov 2005
Posts: 647
|
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.
__________________
money talks and bullshit walks. |
|
|
|
|
|
#3 |
|
Confirmed User
Join Date: Aug 2003
Location: Portland, Oregon
Posts: 4,541
|
make sure the group setting is correct chown user:group or chgrp
__________________
Real. Professional. Hosting. .:Expect Nothing Less:. 320-078-843 :: www.realprohosting.com :: [email protected] |
|
|
|
|
|
#4 |
|
Confirmed User
Join Date: Dec 2001
Location: Malibu
Posts: 3,817
|
Try to see if the mysql account you're using has enough permissions to write.
|
|
|
|
|
|
#5 |
|
Confirmed User
Join Date: May 2004
Location: South Florida
Posts: 4,134
|
wouldn't it have been better/easier to use mysql dump?
|
|
|
|
|
|
#6 | |
|
Confirmed User
Join Date: Jul 2004
Location: SW Florida
Posts: 916
|
Quote:
__________________
ICQ: 148.167.599 |
|
|
|
|
|
|
#7 |
|
Confirmed User
Industry Role:
Join Date: Jun 2003
Location: My High Horse
Posts: 6,334
|
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.
__________________
Mike South It's No wonder I took up drugs and alcohol, it's the only way I could dumb myself down enough to cope with the morons in this biz. |
|
|
|