On Wed, 23 Sep 2015 12:26:33 PM Peter Ross wrote:
> But I created an empty /var/lib/mysql partition before I wanted to install
> mysql.
> 
> With the result that I could not install mysql successfully.

restorecon -R -v /var/lib/mysql

> I probably have to re-enact it again because I do not remember whether the
> install failed or the server did not start up.

Having just /var/lib/mysql on a separate partition probably isn't the best 
idea, you can't make a backup of that without backing up the logs too so it's 
best to put them on the same filesystem.  For a system that has mysqld as an 
important part of the system functionality (which is most systems that have 
MySQL running) I create a subvol or filesystem named /mysql.

semanage fcontext -a -t mysqld_db_t "/mysql(/.*)?"
restorecon -R -v /mysql

The above commands will give you the correct labeling for /mysql.

-- 
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/
_______________________________________________
luv-main mailing list
[email protected]
http://lists.luv.asn.au/listinfo/luv-main

Reply via email to