PHP not recognizing MySQL

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John

    PHP not recognizing MySQL

    All:

    I have PHP 4.2.2 and MySQL 3.23.54 running on a RH9 server. I've been
    using the MySQL database for other things but have now decided to use PHP.
    Currently, I can't get PHP to recognize MySQL. I noticed that there is
    no mysql.so file in the /usr/lib/php4 directory.

    Please let me know what I need to do in order to get this working.

    Thanks!

    John
  • Daniel Tryba

    #2
    Re: PHP not recognizing MySQL

    John <john_tilly@hot mail.com> wrote:[color=blue]
    > I have PHP 4.2.2 and MySQL 3.23.54 running on a RH9 server. I've been
    > using the MySQL database for other things but have now decided to use PHP.
    > Currently, I can't get PHP to recognize MySQL. I noticed that there is
    > no mysql.so file in the /usr/lib/php4 directory.
    >
    > Please let me know what I need to do in order to get this working.[/color]

    First learn how to use you Linux machine!

    Then upgrade to a supported recent version, RH9 is unsupported since a
    few years back.

    After that install the mysql modules, most propably named:
    php-$VERSION-mysql.rpm

    Comment

    • John

      #3
      Re: PHP not recognizing MySQL

      <snip>
      [color=blue]
      > First learn how to use you Linux machine![/color]
      [color=blue][color=green]
      >> Fair enough.[/color][/color]

      <snip>
      [color=blue]
      > Then upgrade to a supported recent version, RH9 is unsupported since a
      > few years back.[/color]
      [color=blue][color=green]
      >> Will likely do FC3 upgrade shortly. But until then...[/color][/color]

      <snip>
      [color=blue]
      > After that install the mysql modules, most propably named:
      > php-$VERSION-mysql.rpm[/color]
      [color=blue][color=green]
      >> Ah, the payload. I figured as much. I may even have to re-install
      >> with this file included. Thanks much.[/color][/color]

      John

      Comment

      • Daniel Tryba

        #4
        Re: PHP not recognizing MySQL

        John <john_tilly@hot mail.com> wrote:[color=blue]
        > <snip>
        >[color=green]
        >> After that install the mysql modules, most propably named:
        >> php-$VERSION-mysql.rpm[/color]
        >[color=green][color=darkred]
        >>> Ah, the payload. I figured as much. I may even have to re-install
        >>> with this file included. Thanks much.[/color][/color][/color]

        No need to, just remember that RH9 is ancient and unsupported.

        BTW please don't prepend a character used for quoting in your response.
        Your reply is totally unreadable unless the reader compares it with the
        original.

        Comment

        • Steve

          #5
          Re: PHP not recognizing MySQL

          Daniel Tryba wrote:
          [snip][color=blue]
          >
          > No need to, just remember that RH9 is ancient and unsupported.
          >[/color]
          Don't tell Godaddy that!

          Comment

          • Tim Roberts

            #6
            Re: PHP not recognizing MySQL

            Steve <ThisOne@Aint.v alid> wrote:
            [color=blue]
            >Daniel Tryba wrote:
            >[snip][color=green]
            >>
            >> No need to, just remember that RH9 is ancient and unsupported.
            >>[/color]
            >Don't tell Godaddy that![/color]

            Don't tell the RedHat 5.2 server in my garage that, either. It's been up
            for 452 consecutive days.
            --
            - Tim Roberts, timr@probo.com
            Providenza & Boekelheide, Inc.

            Comment

            • Daniel Tryba

              #7
              Re: PHP not recognizing MySQL

              Tim Roberts <timr@probo.com > wrote:[color=blue][color=green][color=darkred]
              >>> No need to, just remember that RH9 is ancient and unsupported.
              >>>[/color]
              >>Don't tell Godaddy that![/color]
              >
              > Don't tell the RedHat 5.2 server in my garage that, either. It's been up
              > for 452 consecutive days.[/color]

              That's the spirit: uptime is everything, screw security :)

              Comment

              Working...