Error: Config owner (mysql:113) and data owner (postgres:112) do not match, and config owner is not root
问题描述
$ sudo service postgresql start
* Starting PostgreSQL 10 database server
* Error: Config owner (mysql:113) and data owner (postgres:112) do not match, and config owner is not root
最近安装mysql以后,在启动postgresql服务时出现此错误,
提示显示:postgres配置文件的所有者错误,并且不属于postgres用户和组。
解决办法
postgresql版本为10,更改相应文件的权限用户和组
$ sudo chown postgres:postgres /etc/postgresql/10/main/postgresql.conf