MySQL does not show on php info

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

    MySQL does not show on php info

    I installed Apache, php5 and MySQL 5. The usual <?php phpinfo(); ?gives
    the php info, but there is no sign of MySQL, so something is wrong.
    I installed the latest connectors. Can someone help me getting php and
    MySQL interconnect?

    --
    Groet,
    Adriana
    [ gooi de vuilnis weg als je me wilt mailen ]



  • adlerweb

    #2
    Re: MySQL does not show on php info

    A.Translator schrieb:
    I installed Apache, php5 and MySQL 5. The usual <?php phpinfo(); ?>
    gives the php info, but there is no sign of MySQL, so something is wrong.
    I installed the latest connectors. Can someone help me getting php and
    MySQL interconnect?
    >
    Are the connectors in the binary? If not check if they are loaded in the
    php.ini

    Comment

    • A.Translator

      #3
      Re: MySQL does not show on php info

      adlerweb schreef op 5-2-2007
      Are the connectors in the binary? If not check if they are loaded in the
      php.ini
      Thanks for your prompt reply but sorry, I am new to all this. You mean in
      the MySql bin folder? No, I understood I had to put them in the PHP and
      PHP extensions folders.
      I cannot find anything about them getting loaded in de php.ini either.
      What should I add?

      --
      Groet,
      Adriana
      [ gooi de vuilnis weg als je me wilt mailen ]



      Comment

      • adlerweb

        #4
        Re: MySQL does not show on php info

        Try to add this line to your php.ini

        extension = mysql.so

        then restart apache and try again. This should load the MySQL-Extension.

        A.Translator schrieb:
        Thanks for your prompt reply but sorry, I am new to all this. You mean
        in the MySql bin folder? No, I understood I had to put them in the PHP
        and PHP extensions folders.
        I cannot find anything about them getting loaded in de php.ini either.
        What should I add?
        >

        Comment

        • Ruben van Engelenburg

          #5
          Re: MySQL does not show on php info

          A.Translator wrote:
          Thanks for your prompt reply but sorry, I am new to all this. You mean
          in the MySql bin folder? No, I understood I had to put them in the PHP
          and PHP extensions folders.
          I cannot find anything about them getting loaded in de php.ini either.
          What should I add?
          On Windows you should have a line in php.ini such as:
          extension=php_m ysql.dll (or extension=php_m ysqli.dll when using mysqli).
          On Linux it should be something like: extension=mysql .so
          Also make sure the extension_dir setting is set to the right directory.

          HTH.
          Ruben.

          Comment

          • A.Translator

            #6
            Re: MySQL does not show on php info

            Ruben van Engelenburg schreef op 5-2-2007
            On Windows you should have a line in php.ini such as:
            extension=php_m ysql.dll (or extension=php_m ysqli.dll when using mysqli).
            OK, thanks. (dank je,aan je naam te zien). The dir is pointing to the
            right place, but I had enabled extension_msql.

            --
            Groet,
            Adriana
            [ gooi de vuilnis weg als je me wilt mailen ]



            Comment

            • A.Translator

              #7
              Re: MySQL does not show on php info

              A.Translator schreef op 5-2-2007
              but I had enabled extension_msql.
              No change now that I activated the right extension. I think the problem
              has to do with the path to the php.ini. It is actually in C:\PHP\ but the
              php.info shows it to be in C:\Windows. So I copied it there. The info
              says: C:\WINDOWS not C:\WINDOWS\php. ini as I have seen in several
              examples. Can I fix that?

              --
              Groet,
              Adriana
              [ gooi de vuilnis weg als je me wilt mailen ]



              Comment

              • A.Translator

                #8
                Re: MySQL does not show on php info

                A.Translator schreef op 5-2-2007
                I installed Apache, php5 and MySQL 5. The usual <?php phpinfo(); ?>
                gives the php info, but there is no sign of MySQL, so something is
                wrong.
                Fixed it. The path to windows was messed up.

                --
                Groet,
                Adriana
                [ gooi de vuilnis weg als je me wilt mailen ]



                Comment

                • Carl Pearson

                  #9
                  Re: MySQL does not show on php info

                  A.Translator wrote:
                  A.Translator schreef op 5-2-2007
                  >but I had enabled extension_msql.
                  >
                  No change now that I activated the right extension. I think the problem
                  has to do with the path to the php.ini. It is actually in C:\PHP\ but
                  the php.info shows it to be in C:\Windows. So I copied it there. The
                  info says: C:\WINDOWS not C:\WINDOWS\php. ini as I have seen in several
                  examples. Can I fix that?
                  >
                  Not sure what web server you're using, but Apache "likes" the php.ini to
                  be in apache/bin

                  Comment

                  Working...