Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 10.0.7
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Fedora 20
Description
I stopped the server, installed with yum, moved /var/lib/mysql to /data/mysql, created a softlink
cd /var/lib
ln -s /data/mysql .
the I did the usual chown -R mysql:mysql mysql
but I still keep getting this error. This is a valid and common operation y regular mysql, to reload the data directory to another drive.
[ERROR] mysqld: Can't create/write to file '/var/lib/mysql/aria_log_control' (Errcode: 13 "Permission denied")
[ERROR] mysqld: Got error 'Can't create file' when trying to use aria control file '/var/lib/mysql/aria_log_control'
[ERROR] Plugin 'Aria' init function returned error.
[ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
Gliffy Diagrams
Attachments
Issue Links
- relates to
-
MDEV-5378 mysql init script sets a wrong default value for datadir
-
- Closed
-
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
Actually, for me it fails even earlier, on mysqld_safe level.
In my case, the problem is related to SELinux – if I setenforce Permissive, it works all right (it's not an excuse for what's happening, but an observation).
Could you please check if it solves your variation of the problem as well, so that we know it's the same thing?
Thanks.