PHP & MySQL


Forum: myDSL Extensions (deprecated)
Topic: PHP & MySQL
started by: pablo.mrg

Posted by pablo.mrg on Feb. 04 2005,08:21
Hi all,
 I installed php.tar.gz from the 'My DSL Click & Load GUI', I configured Monkey web server to use php and it seems to be working: I can easily access the "phpinfo();" in a sample page I built for testing...

 In this page I can see that MySQL is installed and I see

Code Sample

MySQL Support = enabled
Active Persistent Links = 0
Active Links = 0
Client API version = 3.23.49
MYSQL_MODULE_TYPE = builtin
MYSQL_SOCKET = /tmp/mysql.sock
MYSQL_INCLUDE  = no value

MYSQL_LIBS = no value

Directive                      Local Value         Master Value
mysql.allow_persistent    On                    On
mysql.connect_timeout   60                     60
mysql.default_host         no value             no value
mysql.default_password  no value             no value
mysql.default_port         no value             no value
mysql.default_socket      no value            no value
mysql.default_user        no value            no value

mysql.max_links             Unlimited           Unlimited
mysql.max_persistent      Unlimited           Unlimited
mysql.trace_mode          Off                   Off


However I installed phpMyAdmin and I can't get it working, I see

Code Sample

MySQL Message: Documention

#2002 - Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)


Any idea to make it working?

Thanks

Posted by Max on Feb. 04 2005,12:33
I might be mistaken, but that PhpInfo() code just tells you that PHP is *able* to connect to MySQL, not that MySQL is actually present on your system.  For all PHP knows, you'll be connecting to a MySQL server on another box.
Posted by pablo.mrg on Feb. 04 2005,15:21
Ok, thanks
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.