B bihuidc New member Joined Dec 11, 2013 Messages 2 Dec 11, 2013 #1 My server's hard drive was broke, and I reinstall DA in a new hard drive,same centos5 same DA. I restored my files form the old drive: /usr/local/directadmin /var/lib/mysql /etc/httpd/conf /home Now mysql is ok,DA:2222 is ok. Thanks.
My server's hard drive was broke, and I reinstall DA in a new hard drive,same centos5 same DA. I restored my files form the old drive: /usr/local/directadmin /var/lib/mysql /etc/httpd/conf /home Now mysql is ok,DA:2222 is ok. Thanks.
SeLLeRoNe Super Moderator Joined Oct 9, 2004 Messages 6,632 Location A Coruña, Spain Dec 11, 2013 #2 Did you use backup/restore function inside directadmin or did you just copied the files manually? If you did copied files manually, did you create all the user one-by-one? Did you restore the permissions? Regards
Did you use backup/restore function inside directadmin or did you just copied the files manually? If you did copied files manually, did you create all the user one-by-one? Did you restore the permissions? Regards
B bihuidc New member Joined Dec 11, 2013 Messages 2 Dec 11, 2013 #3 SeLLeRoNe said: Did you use backup/restore function inside directadmin or did you just copied the files manually? If you did copied files manually, did you create all the user one-by-one? Did you restore the permissions? Regards Click to expand... Thank you, I did it like this: cp -a -r /mnt/hda2/var/lib/mysql/mysql/ /var/lib/mysql/ I dont restore the permissions, and how to do the permissions?
SeLLeRoNe said: Did you use backup/restore function inside directadmin or did you just copied the files manually? If you did copied files manually, did you create all the user one-by-one? Did you restore the permissions? Regards Click to expand... Thank you, I did it like this: cp -a -r /mnt/hda2/var/lib/mysql/mysql/ /var/lib/mysql/ I dont restore the permissions, and how to do the permissions?
SeLLeRoNe Super Moderator Joined Oct 9, 2004 Messages 6,632 Location A Coruña, Spain Dec 11, 2013 #4 So that restored mysql data in an actually not suggested way.. no the users aswell. What about the /home ? For restore file premissions and owners you should try this: /usr/local/directadmin/scripts/set_permissions.sh all But im not sure how much well should work cause actually i dont know how did you restore... Regards
So that restored mysql data in an actually not suggested way.. no the users aswell. What about the /home ? For restore file premissions and owners you should try this: /usr/local/directadmin/scripts/set_permissions.sh all But im not sure how much well should work cause actually i dont know how did you restore... Regards