php/mysql

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • s a n j a y

    php/mysql

    Hi All,

    Sorry this is not directly related to PHP. But I know everybody here has
    done this before.

    I recently installed Red Hat Linux 9.0 server. It installed Apache with PHP
    and Mysql by default. I can connect to mysql, create databases, tables fine.

    I can also program php and access it through Apache.

    Problem is when I try to connect to MySql it gives me the error
    "Call to undefined function: mysql_connect() "

    I ran phpinfo and found "--with-mysql=shared".

    I checked and all the deamons are running (httpd, mysqld)

    Do anybody know what is missing?

    I usually love to troubleshoot these things, but right now too tired to do
    this.

    thanks in advance

    sanjay






  • s a n j a y

    #2
    Re: php/mysql

    Please don't bother. I found it out.

    Thanks anyways for reading.

    sanjay


    "s a n j a y" <someone@somewh ere.com> wrote in message
    news:%yMgb.2583 6$ev2.6699625@n ewssrv26.news.p rodigy.com...[color=blue]
    > Hi All,
    >
    > Sorry this is not directly related to PHP. But I know everybody here has
    > done this before.
    >
    > I recently installed Red Hat Linux 9.0 server. It installed Apache with[/color]
    PHP[color=blue]
    > and Mysql by default. I can connect to mysql, create databases, tables[/color]
    fine.[color=blue]
    >
    > I can also program php and access it through Apache.
    >
    > Problem is when I try to connect to MySql it gives me the error
    > "Call to undefined function: mysql_connect() "
    >
    > I ran phpinfo and found "--with-mysql=shared".
    >
    > I checked and all the deamons are running (httpd, mysqld)
    >
    > Do anybody know what is missing?
    >
    > I usually love to troubleshoot these things, but right now too tired to do
    > this.
    >
    > thanks in advance
    >
    > sanjay
    >
    >
    >
    >
    >
    >[/color]


    Comment

    • Andy Jeffries

      #3
      Re: php/mysql

      On Wed, 08 Oct 2003 05:15:36 +0000, s a n j a y hammered his head on the
      keyboard and somehow managed to type:[color=blue]
      > Please don't bother. I found it out.
      >
      > Thanks anyways for reading.[/color]

      And in case anyone searches Google Groups at a later point and can't find
      the answer you should always post the answer you found.

      In this case it's likely to you didn't have the php-mysql RPM installed
      (the MySQL module for PHP).

      Cheers,


      Andy

      Comment

      • s a n j a y

        #4
        Re: php/mysql

        Exactly.


        "Andy Jeffries" <news@andyjeffr ies.remove.co.u k> wrote in message
        news:pan.2003.1 0.08.09.08.37.8 70153@andyjeffr ies.remove.co.u k...[color=blue]
        > On Wed, 08 Oct 2003 05:15:36 +0000, s a n j a y hammered his head on the
        > keyboard and somehow managed to type:[color=green]
        > > Please don't bother. I found it out.
        > >
        > > Thanks anyways for reading.[/color]
        >
        > And in case anyone searches Google Groups at a later point and can't find
        > the answer you should always post the answer you found.
        >
        > In this case it's likely to you didn't have the php-mysql RPM installed
        > (the MySQL module for PHP).
        >
        > Cheers,
        >
        >
        > Andy
        >[/color]


        Comment

        Working...