[MDEV-12048] my.cnf datadir config - cannot start database Created: 2017-02-11 Updated: 2017-02-19 Resolved: 2017-02-19 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Configuration |
| Affects Version/s: | 5.5.52-galera |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Sanjay | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Centos 7 |
||
| Description |
|
Defined in the my.cnf 170210 16:30:26 mysqld_safe Starting mysqld daemon with databases from /data/local |
| Comments |
| Comment by Elena Stepanova [ 2017-02-13 ] | |||
|
The error says it's all:
What's your question? | |||
| Comment by Sanjay [ 2017-02-13 ] | |||
|
The directory – datadir is owned by mysql user and the permissions are 777 tried 755 before but same errors, trying to move data to a non default directory. moving the files back to /var/lib/mysql and removing the datadir parameter in my.cnf the database service starts. My goal is to use datadir parameter and separate the data on an new filesystem | |||
| Comment by Elena Stepanova [ 2017-02-13 ] | |||
|
It's CentOS, so please check your SELinux configuration. Try to disable SELinux (or set it to 'Permissive'), if the problem goes away, then it's the culprit. | |||
| Comment by Sanjay [ 2017-02-13 ] | |||
|
Thanks much. Looks like search brings me same results for SElinux issue | |||
| Comment by Daniel Black [ 2017-02-16 ] | |||
|
https://mariadb.com/kb/en/mariadb/what-to-do-if-mariadb-doesnt-start/ under "SELinux and MariaDB Path Changes" shows how to change the datadir and keep SElinux enabled. | |||
| Comment by Sanjay [ 2017-02-17 ] | |||
|
Resolved , Please close the ticket. CentOS 7, SELinux is on, #/etc/fstab entry | |||
| Comment by Daniel Black [ 2017-02-19 ] | |||
|
Glad to hear it. Watch out for latency problems on NFS. |