Re: I have a problem(please help me. It's Urgent)
| From: | Zak Greant | Date: | Fri, 29 Dec 2000 23:32:32 +0000 |
| Subject: | Re: I have a problem(please help me. It's Urgent) | ||
| References: | 1 2 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-3218@lists.php.net to get a copy of this message | ||
Dear Nelson,
The maintainers of the PHP website cannot help you. Instead, send your
questions to the php-general *or* php-db mailing lists
(http://www.php.net/support.php for instructions on how to sign up to the
mailing list.)
Also, the error that you encounter most likely means that the MySQL server
that you are trying to connect to is not currently running.
--zak
----- Original Message -----
From: "Nelson Miranda Pinto" <nelsonpinto@megamail.pt>
To: <webmaster@php.net>
Sent: Friday, December 29, 2000 9:06 AM
Subject: I have a problem(please help me. It's Urgent)
> 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´ 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