Bug 61401
| Summary: | php failed to connect to mysql from web site | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Kenny Fordham <kennyfordham> |
| Component: | php | Assignee: | Phil Copeland <copeland> |
| Status: | CLOSED DUPLICATE | QA Contact: | David Lawrence <dkl> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.2 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i686 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2002-03-27 08:56:04 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
Kenny Fordham
2002-03-19 04:28:57 UTC
My experience: if you look to PHP info page, there you find: MYSQL_SOCKET /tmp/mysql.sock but in /etc/my.cnf is: socket=/var/lib/mysql/mysql.sock and in /etc/php.ini is default setting: mysql.default_socket = My "non correct" solution (because changing of mysql.default_socket in php.ini doesn't have efect): If you make a link: ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock connection to MySQL will established. |