semanage fcontext -l | grep mysql
told me what I needed to know about the existing context rules. With a
bit of copy and paste,
semanage fcontext -a -t mysqld_db_t "/opt/mysql(/.*)?"
installed the new rule and updated the rules on the /opt/mysql tree.
Finally I found out that I had to put the [client] section
into the /etc/my.cnf file with a socket line to tell it look in
the new path for the socket, and all was well.
restorecon -v -R /opt/mysql
Ironically, the server was starting just fine; it was the 'check that the server is now running' part of the script that was failing. It took me a while to work this out... :-/
Last updated: | path: tech / fedora | permanent link to this entry
All posts licensed under the CC-BY-NC license. Author Paul Wayper.
Main index
/ tbfw/
- © 2004-2023
Paul Wayper
Valid HTML5