mysql-php problem on RHL7
| From: | Dragan Dinic | Date: | Sat, 14 Apr 2001 13:50:32 +0000 |
| Subject: | mysql-php problem on RHL7 | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-2780@lists.php.net to get a copy of this message | ||
Hello,
I have installed Red Hat Linux 7 and during the instalation proces I chose
to install php4 and mysql.
After instalation I have added php-mysql support using rpm file.
Both MySQL and PHP seems to work fine (mysqld is running,mysql client work
good and php parse *.php files) but when I try to connect script with
database using mysql_connect(...), I receive following error message:
Warning: MySQL Connection Failed: Can't connect to local MySQL server
through socket '/var/lib/mysql/mysql.sock' (111) ...
I have also tried to put complete path
(localhost:port:/var/lib/mysql/mysql.sock...) in mysql_connect( ) function
but it didn't solve the problem. When I try to edit file mysql.sock I
receive error message.
Please help me.
Dragan Dinic, Serbia