Re: php cli and mysql

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



James Tu wrote:
> Please see below
> 

..

you fell foul of the 'there is no php.ini' trap :-)
(please repeat in a homer simpson voice)

> 
> or should I create a symbolic link to the php.ini that Apache is using?

use a seperate php.ini - more flexibility

> 
> 
>> That'll tell you where the php.ini file is for the CLI version.
>>
>> Enjoy.
>>
>>
>>
>> James Tu wrote:
>>> ok.  so the location of mysql.sock is a problem.
>>> I found it at /tmp/mysql.sock
>>>
>>> Why is the CLI looking for it at /var/myslq/mysql.sock?
>>>
>>> Now the question is...
>>> Do I change the mysql settings so that mysql.sock is at
>>> /tmp/mysql.sock?  (If I do, will the PHP module with Apache still be
>>> ok?)
>>> or
>>> Do I change where the CLI is looking for mysql.sock?

pointing the CLI at the actual .sock seems least invasive, no?

rgds,

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux