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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-01 13:28:531338browse

bitsCN.com


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

 

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

 

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

 

改下权限

 

chown -R mysql:mysql /home/mysql/data/

 

 

可以了

 

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

 

bitsCN.com
Statement:
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