Home > Database > Mysql Tutorial > rsync同步mysql文件后的权限问题_MySQL

rsync同步mysql文件后的权限问题_MySQL

WBOY
Release: 2016-06-01 13:28:53
Original
1296 people have browsed it

bitsCN.com


rsync同步mysql文件后的权限问题

 

使用rsync同步mysql数据库文件后出现文件权限问题导致mysql表不能用

 

看了下原来rsync把mysql数据文件权限搞成WWW权限了

 

改下权限

 

chown -R mysql:mysql /home/mysql/data/
Copy after login

 

 

可以了

 

注:正常情况rsync应该不会改变同步过来的权限.不知为啥.先暂时这样解决吧

 

bitsCN.com
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template