# [EMAIL PROTECTED] / 2006-11-14 18:56:01 -0500:
Roman Neuhauser wrote:
# [EMAIL PROTECTED] / 2006-11-14 20:17:16 +0200:
On 11/14/06, James Tu [EMAIL PROTECTED] wrote:
I'm running a php script from the command line (I'm on OS X) and I'm
getting ...
Warning: mysql_connect(): Can't
FYI - the problem with mysql.sock has been an support issue at
apple.com before.
http://docs.info.apple.com/article.html?artnum=301457
/frank
15 nov 2006 kl. 11.03 skrev Roman Neuhauser:
# [EMAIL PROTECTED] / 2006-11-14 18:56:01 -0500:
Roman Neuhauser wrote:
# [EMAIL PROTECTED] /
and the connection and query worked.
Do I have to do something special in order for PHP CLI to connect to
MySQL?
-James
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
geo_entities);
$row = mysql_fetch_array($result);
print_r($row);
?
I tested the script from a browser and the connection and query worked.
Do I have to do something special in order for PHP CLI to connect to
MySQL?
-James
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
);
mysql_select_db(DB, $connection);
$result = mysql_query(SELECT COUNT(*) as num_of_countries from
geo_entities);
$row = mysql_fetch_array($result);
print_r($row);
?
I tested the script from a browser and the connection and query
worked.
Do I have to do something special in order for PHP CLI
(*) as num_of_countries from
geo_entities);
$row = mysql_fetch_array($result);
print_r($row);
?
I tested the script from a browser and the connection and query worked.
Do I have to do something special in order for PHP CLI to connect to
MySQL?
-James
--
PHP General Mailing List (http
something special in order for PHP CLI to
connect to
MySQL?
-James
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--PHP General Mailing
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
= mysql_query(SELECT COUNT(*) as num_of_countries from
geo_entities);
$row = mysql_fetch_array($result);
print_r($row);
?
I tested the script from a browser and the connection and query
worked.
Do I have to do something special in order for PHP CLI to connect to
MySQL?
-James
--PHP
CLI to
connect to
MySQL?
-James
--PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--PHP General Mailing List (http://www.php.net
# [EMAIL PROTECTED] / 2006-11-14 20:17:16 +0200:
On 11/14/06, James Tu [EMAIL PROTECTED] wrote:
I'm running a php script from the command line (I'm on OS X) and I'm
getting ...
Warning: mysql_connect(): Can't connect to local MySQL server through
socket '/var/mysql/mysql.sock' (2)
touch
Roman Neuhauser wrote:
# [EMAIL PROTECTED] / 2006-11-14 20:17:16 +0200:
On 11/14/06, James Tu [EMAIL PROTECTED] wrote:
I'm running a php script from the command line (I'm on OS X) and I'm
getting ...
Warning: mysql_connect(): Can't connect to local MySQL server through
socket
Tom Ray [Lists] wrote:
Roman Neuhauser wrote:
# [EMAIL PROTECTED] / 2006-11-14 20:17:16 +0200:
On 11/14/06, James Tu [EMAIL PROTECTED] wrote:
I'm running a php script from the command line (I'm on OS X) and I'm
getting ...
Warning: mysql_connect(): Can't connect to local MySQL server
Chris wrote:
Tom Ray [Lists] wrote:
Roman Neuhauser wrote:
# [EMAIL PROTECTED] / 2006-11-14 20:17:16 +0200:
On 11/14/06, James Tu [EMAIL PROTECTED] wrote:
I'm running a php script from the command line (I'm on OS X) and I'm
getting ...
Warning: mysql_connect(): Can't connect to
Tom Ray [Lists] wrote:
Chris wrote:
Tom Ray [Lists] wrote:
Roman Neuhauser wrote:
# [EMAIL PROTECTED] / 2006-11-14 20:17:16 +0200:
On 11/14/06, James Tu [EMAIL PROTECTED] wrote:
I'm running a php script from the command line (I'm on OS X) and I'm
getting ...
Warning:
15 matches
Mail list logo