Re: Apache and PHP

From: Brian Richardson (brian_at_cubik.ca)
Date: 11/27/04

  • Next message: HaJo Schatz: "Re: FC3 Freezes Every Day"
    Date: Fri, 26 Nov 2004 22:57:49 -0700
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    
    

    Danesh Daroui wrote:

    > MySQL works perfect on my system and it has no problem. It is a small
    > LAN (With 6 systems and one server) and MySQL has been installed on
    > server and works fine both remotely and locally. Also, yes, I connect
    > throught port 3306 and from localhost. In fact, I didn't define them
    > in PHP.ini because they will be retrieved from built-in MySQL
    > variables which are default if I do not set them to any specific valus.

    Which defaults to the UNIX domain socket, and therein lies the problem.
    Use the mysql_pconnect with all parameters. eg. $link =
    mysql_pconnect('localhost', DBUSER, DBPASS) and you'll solve your problem.

    Brian

    -- 
    Brian Richardson
    Software Developer
    Public Key available at http://www.cubik.ca/
    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: HaJo Schatz: "Re: FC3 Freezes Every Day"