Permission issue in Centos 7
Hi,
I need to change the MariaDB datadir in Centos 7. The default execution works fine, but when I set the datadir property inside /etc/my.cnf I cannot start the process: Code:
[mariadb@localhost ~]$ sudo systemctl start mariadb Code:
[mariadb@localhost ~]$ ls -lsa Code:
[mariadb@localhost ~]$ getenforce Code:
[mariadb@localhost ~]$ df -h Thanks in advance |
Hi,
Quote:
|
Hi cliffordw, thanks for the help.
I'm running with mariadb user, you are right that is /home/mariadb dir. I tried setting the owner and group both to mariadb (chown mariadb:mariadb) but it didn't work. Elaborating a little more, whenever I set datadir, tmpdir and log_error in /etc/my.cnf I get a permission error, regardless of permission/group. I even tried with root user and some other directory options, but all of them hits the same error. Any other ideas?? Thanks |
Hi,
Have you tried changing the owner of "data" and "tmp" to mariadb? |
Hey cliffordw,
yes I did, same error :/ |
Found the issue, it was mysql related, thanks anyway!
|
All times are GMT -5. The time now is 01:42 PM. |