Yes, I checked that "/var/lib/mysql/mysql.sock" exists. It does. I tried
connecting with "/var/lib/mysql/mysql.sock" suffixed after "localhost." Same
error.

I tried substituting "127.0.0.1:3306." Again, no luck.

I very much appreciate all the help I've been getting on this list. Mysql
seems to be working fine. PHP seems to be working fine. Apache too. If only
I could pursuade the three to work together!

By the way, I'm using redhat 7 with a resent install of mysql. I couldn't
rpm uninstall the original redhat mysql, so I simply renamed the old
binaries. Is it possible there's an old config file or an old library
getting in the way?

Thanks again.

And please throw any new ideas my way.

best,

daniel

-----Original Message-----
From: Markus Fischer [mailto:[EMAIL PROTECTED]]
Sent: Sunday, May 06, 2001 12:46 PM
To: [EMAIL PROTECTED]; Mysql (E-mail)
Subject: Re: Newbie on the verge --of connecting mysql/php? --a
breakdown? Please help


Does you /var/lib/mysql/mysql.sock exist ?

If not, try connecting through TCP/IP by removing localhost and writing
"127.0.0.1:3306"

- Markus

----- Original Message -----
From: "Daniel Goldin (E-mail)" <[EMAIL PROTECTED]>
To: "Mysql (E-mail)" <[EMAIL PROTECTED]>
Sent: Sunday, May 06, 2001 9:41 PM
Subject: Newbie on the verge --of connecting mysql/php? --a breakdown?
Please help


> Here's the saga.
>
> 1) I installed php, apache and mysql via redhat seven installation disks.
> 2) problems with mysql
> 3) reinstalled latest mysql from official site. (rpm wouldnt remove
> distributions, so I renamed the old mysql bin files to a .bak extension
> before installing new version on /usr/local.
> 4) Got it going okay, with the execepton that I couldn't change user, host
> and password. (see previous email.)
> 5) Attempted to create a connect interface with php. Here is the code:
>
>
> <?
> $connection = mysql_connect("localhost","desparate", "help") or
> die("Couldn't connect.");
>
> if ($connection) {
>   $msg = "Success!";
> }
> ?>
>
> <HTML>
> <HEAD>
> <TITLE>MySql Connection</TITLE>
> </HEAD>
> </HEAD>
> <BODY>
> <? echo "$msg"; ?>
> </BODY>
> </HTML>
>
> And here is the error message I get:
>
> Warning: Mysql connectoion failed. Can't connect to local mysql server
> through socket '/var/lib/mysql/mysql.sock'(111) in /ver/w
> ww/html/db_connect.php on line 2.
> Couldn't connect.
>
> --------------------------------------------
>
> Daniel Goldin           [EMAIL PROTECTED]
> Creative Director       323.225.1926
>
>              BlueLamp Productions
>                www.blue-lamp.com
>
>
>


----------------------------------------------------------------------------
----


> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail
<[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to