Bug 143957
Summary: | can't connect to /var/lib/mysql/mysql.sock from apache/php | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Glenn Henshaw <thraxisp> |
Component: | selinux-policy-targeted | Assignee: | Daniel Walsh <dwalsh> |
Status: | CLOSED ERRATA | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | RHBA-2005-251 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-04-12 21:56:28 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Glenn Henshaw
2005-01-02 17:30:02 UTC
The problem here is that your mysql is labeled incorrectly. You need to relabel your system or at least the mysql rpm -q -l mysql mysql-server | restorecon -R -v -f - That seems to have been it: [root@voltaic thraxisp]# rpm -q -l mysql mysql-server | /sbin/restorecon -R -v -f - /sbin/restorecon reset context /usr/libexec/mysqld->system_u:object_r:mysqld_exec_t /sbin/restorecon reset context /var/run/mysqld->system_u:object_r:mysqld_var_run_t /sbin/restorecon reset context /var/run/mysqld/mysqld.pid->system_u:object_r: mysqld_var_run_t It seems that you need to relabel mysql-server after bringing it up for the first time. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2005-251.html |