I have a problem(please help me. It's Urgent)

From: Date: Fri, 29 Dec 2000 16:06:55 +0000
Subject: I have a problem(please help me. It's Urgent)
References: 1  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-3216@lists.php.net to get a copy of this message
Hello! I'm a portuguese boy and I have a problem with php and mysql. I call an archive named entrada5.php where it has instructions to access to MYSQL database and give-me that error: Warning: MySQL Connection Failed: Can't connect to local MySQL server through so cket '/tmp/mysql.sock' (111) in /usr/local/apache/htdocs/TEXTIL/provider/entrada5.php on line 3 can you help me ? this is to an work for an class in my university, and i need put this work to function soon. I have this error because i work in windows, and now i have work in Linux. code of entrada5.php: <?php $ligacao = mysql_connect("localhost:3306","mysql","mysql") or die ("Problema ao conectar a&acute; Base de Dados"); if (!ligacao){ echo "Couldn't make a connection"; exit; } mysql_select_db("BaseDados"); $query = "SELECT * from news;"; ?> please, help me. Thank you, for your attenction! I install the php with following options: ./configure --with-mysql=/usr/lib/mysql --with-apache=../apache --with-pgsql=/usr/lib/ --enable--track-vars make make install --------------------------- ------------------------------------------------- Email Enviado utilizando o serviço MegaMail

« previous php.mirrors (#3216) next »