Re: [PHP] php cli and mysql
- From: jochem@xxxxxxxxxxxxx (Jochem Maas)
- Date: Tue, 14 Nov 2006 21:13:36 +0100
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,
.
- References:
- php cli and mysql
- From: James Tu
- Re: [PHP] php cli and mysql
- From: cajbecu
- Re: [PHP] php cli and mysql
- From: James Tu
- Re: [PHP] php cli and mysql
- From: "bluefx13@xxxxxxxxx"
- Re: [PHP] php cli and mysql
- From: James Tu
- php cli and mysql
- Prev by Date: RE: Fwd: [PHP] Highjack?
- Next by Date: Re: [PHP] php cli and mysql
- Previous by thread: Re: [PHP] php cli and mysql
- Next by thread: Re: [PHP] php cli and mysql
- Index(es):
Relevant Pages
|
|