Re: php cli and mysql
| From: | Jochem Maas | Date: | Tue, 14 Nov 2006 20:13:36 +0000 |
| Subject: | Re: php cli and mysql | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-244616@lists.php.net to get a copy of this message | ||
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,