Bug 61619 - PHP should have mysql.default_socket configured in php.ini
Summary: PHP should have mysql.default_socket configured in php.ini
Keywords:
Status: CLOSED DUPLICATE of bug 60515
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: php
Version: 7.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Phil Copeland
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-03-22 06:37 UTC by Oliver Schulze L.
Modified: 2007-04-18 16:41 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2002-03-22 06:38:02 UTC
Embargoed:


Attachments (Terms of Use)

Description Oliver Schulze L. 2002-03-22 06:37:58 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.9) Gecko/20020311

Description of problem:
PHP should have this line:
  mysql.default_socket = /var/lib/mysql/mysql.sock
in the file:
  /etc/php.ini

Beacuse MySQL use by default the file socket /tmp/mysql.sock which one does not
exists

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. connect from a .php file to mysql
2. use localhost as the default host
3. you can't and get an error
	

Actual Results:  You can't connect to MySQL from PHP if you do not configure
/etc/php.ini

Expected Results:  you should be able to connect from PHP to MySQL using the
file socket /var/lib/mysql/mysql.sock

If you have a clean instalation of RedHat 7.2, you should be able to use MySQL
and PHP without the need to edit /etc/php.ini
This was the normal behavior in RH 7.1


Additional info:

Comment 1 Phil Copeland 2002-03-22 07:29:27 UTC

*** This bug has been marked as a duplicate of 60515 ***


Note You need to log in before you can comment on or make changes to this bug.