Connection problems - PHP MySQL

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

    Connection problems - PHP MySQL

    Hi all. Probably not an original posting but I have searched high and low
    for a satisfactory resolution to this problem. I am using Windows XP, IIS
    5.1, PHP 5.1.4 and MySQL 5.0.23 and Dreamweaver 8. When I try to create a
    database connection I get the "Your PHP server doesn't have the MySQL module
    loaded or you can't use the mysql_(p)connec t functions" error. I have
    downloaded the latest mysqli and mysql extensions (PHP 5.1.6 and MySQL
    Server 5.0.24a) and copied these into my C:\PHP\ext directory. I believe I
    have already made the required changes to the php.ini file however this may
    not be 100% right. Any further advice and/or assistance would be greatly
    appreciated.


  • Johnny

    #2
    Re: Connection problems - PHP MySQL


    "Schmalz" <gpshea@hotmail .comwrote in message
    news:451be14c$0 $4666$61c65585@ un-2park-reader-01.sydney.pipen etworks.com.au.
    ...
    Hi all. Probably not an original posting but I have searched high and low
    for a satisfactory resolution to this problem. I am using Windows XP, IIS
    5.1, PHP 5.1.4 and MySQL 5.0.23 and Dreamweaver 8. When I try to create a
    database connection I get the "Your PHP server doesn't have the MySQL
    module
    loaded or you can't use the mysql_(p)connec t functions" error. I have
    downloaded the latest mysqli and mysql extensions (PHP 5.1.6 and MySQL
    Server 5.0.24a) and copied these into my C:\PHP\ext directory. I believe
    I
    have already made the required changes to the php.ini file however this
    may
    not be 100% right. Any further advice and/or assistance would be greatly
    appreciated.
    >
    >
    make yourself a phpinfo.php file that has a call to phpinfo() and run that
    to see what's loaded, what points to where, the dir of your ini file, etc.,
    etc.



    Comment

    • Jerry Stuckle

      #3
      Re: Connection problems - PHP MySQL

      Schmalz wrote:
      Hi all. Probably not an original posting but I have searched high and low
      for a satisfactory resolution to this problem. I am using Windows XP, IIS
      5.1, PHP 5.1.4 and MySQL 5.0.23 and Dreamweaver 8. When I try to create a
      database connection I get the "Your PHP server doesn't have the MySQL module
      loaded or you can't use the mysql_(p)connec t functions" error. I have
      downloaded the latest mysqli and mysql extensions (PHP 5.1.6 and MySQL
      Server 5.0.24a) and copied these into my C:\PHP\ext directory. I believe I
      have already made the required changes to the php.ini file however this may
      not be 100% right. Any further advice and/or assistance would be greatly
      appreciated.
      >
      >
      Did you stop and restart your server?

      For the mysql connections, you need the following in your php.ini file:

      extension=php_m ysql.dll

      If you want to use mysqli, you need:

      extension=php_m ysqli.dll

      (you can specify both).

      And watch for any errors when you start your server. Check your server
      log to see if there are any errors, also.

      --
      =============== ===
      Remove the "x" from my email address
      Jerry Stuckle
      JDS Computer Training Corp.
      jstucklex@attgl obal.net
      =============== ===

      Comment

      • ukiEMAIL@gmail.com

        #4
        Re: Connection problems - PHP MySQL


        Schmalz napisal(a):
        Hi all. Probably not an original posting but I have searched high and low
        for a satisfactory resolution to this problem. I am using Windows XP, IIS
        5.1, PHP 5.1.4 and MySQL 5.0.23 and Dreamweaver 8. When I try to create a
        database connection I get the "Your PHP server doesn't have the MySQL module
        loaded or you can't use the mysql_(p)connec t functions" error. I have
        downloaded the latest mysqli and mysql extensions (PHP 5.1.6 and MySQL
        Server 5.0.24a) and copied these into my C:\PHP\ext directory. I believe I
        have already made the required changes to the php.ini file however this may
        not be 100% right. Any further advice and/or assistance would be greatly
        appreciated.
        On which server are ou configuring it??

        I've got the same problem on IIS if you have so I can help you.

        Comment

        • Schmalz

          #5
          Re: Connection problems - PHP MySQL

          Yes, I am using IIS as well. Any advice would be welcome.

          <ukiEMAIL@gmail .comwrote in message
          news:1159473969 .202569.306850@ d34g2000cwd.goo glegroups.com.. .
          >
          Schmalz napisal(a):
          >Hi all. Probably not an original posting but I have searched high and
          >low
          >for a satisfactory resolution to this problem. I am using Windows XP,
          >IIS
          >5.1, PHP 5.1.4 and MySQL 5.0.23 and Dreamweaver 8. When I try to create
          >a
          >database connection I get the "Your PHP server doesn't have the MySQL
          >module
          >loaded or you can't use the mysql_(p)connec t functions" error. I have
          >downloaded the latest mysqli and mysql extensions (PHP 5.1.6 and MySQL
          >Server 5.0.24a) and copied these into my C:\PHP\ext directory. I believe
          >I
          >have already made the required changes to the php.ini file however this
          >may
          >not be 100% right. Any further advice and/or assistance would be greatly
          >appreciated.
          >
          On which server are ou configuring it??
          >
          I've got the same problem on IIS if you have so I can help you.
          >

          Comment

          • Schmalz

            #6
            Re: Connection problems - PHP MySQL

            Hi,

            I have done that now. What specifically should I be looking for? Let me
            know what particular information I need and I will tell you what it says.

            Thanks.

            "Johnny" <removethis.huu anito@hotmail.c omwrote in message
            news:htTSg.463$ UJ2.162@fed1rea d07...
            >
            "Schmalz" <gpshea@hotmail .comwrote in message
            news:451be14c$0 $4666$61c65585@ un-2park-reader-01.sydney.pipen etworks.com.au.
            ..
            >Hi all. Probably not an original posting but I have searched high and
            >low
            >for a satisfactory resolution to this problem. I am using Windows XP,
            >IIS
            >5.1, PHP 5.1.4 and MySQL 5.0.23 and Dreamweaver 8. When I try to create
            >a
            >database connection I get the "Your PHP server doesn't have the MySQL
            module
            >loaded or you can't use the mysql_(p)connec t functions" error. I have
            >downloaded the latest mysqli and mysql extensions (PHP 5.1.6 and MySQL
            >Server 5.0.24a) and copied these into my C:\PHP\ext directory. I believe
            I
            >have already made the required changes to the php.ini file however this
            may
            >not be 100% right. Any further advice and/or assistance would be greatly
            >appreciated.
            >>
            >>
            make yourself a phpinfo.php file that has a call to phpinfo() and run that
            to see what's loaded, what points to where, the dir of your ini file,
            etc.,
            etc.
            >
            >
            >

            Comment

            • Schmalz

              #7
              Re: Connection problems - PHP MySQL

              Hi and thanks.

              Anything specifically I should be looking for in the log etc?


              "Jerry Stuckle" <jstucklex@attg lobal.netwrote in message
              news:SqmdnfW5h-wVlYHYnZ2dnUVZ_ uWdnZ2d@comcast .com...
              Schmalz wrote:
              >Hi all. Probably not an original posting but I have searched high and
              >low for a satisfactory resolution to this problem. I am using Windows
              >XP, IIS 5.1, PHP 5.1.4 and MySQL 5.0.23 and Dreamweaver 8. When I try to
              >create a database connection I get the "Your PHP server doesn't have the
              >MySQL module loaded or you can't use the mysql_(p)connec t functions"
              >error. I have downloaded the latest mysqli and mysql extensions (PHP
              >5.1.6 and MySQL Server 5.0.24a) and copied these into my C:\PHP\ext
              >directory. I believe I have already made the required changes to the
              >php.ini file however this may not be 100% right. Any further advice
              >and/or assistance would be greatly appreciated.
              >
              Did you stop and restart your server?
              >
              For the mysql connections, you need the following in your php.ini file:
              >
              extension=php_m ysql.dll
              >
              If you want to use mysqli, you need:
              >
              extension=php_m ysqli.dll
              >
              (you can specify both).
              >
              And watch for any errors when you start your server. Check your server
              log to see if there are any errors, also.
              >
              --
              =============== ===
              Remove the "x" from my email address
              Jerry Stuckle
              JDS Computer Training Corp.
              jstucklex@attgl obal.net
              =============== ===

              Comment

              • Jerry Stuckle

                #8
                Re: Connection problems - PHP MySQL

                Schmalz wrote:
                "Jerry Stuckle" <jstucklex@attg lobal.netwrote in message
                news:SqmdnfW5h-wVlYHYnZ2dnUVZ_ uWdnZ2d@comcast .com...
                >
                >>Schmalz wrote:
                >>
                >>>Hi all. Probably not an original posting but I have searched high and
                >>>low for a satisfactory resolution to this problem. I am using Windows
                >>>XP, IIS 5.1, PHP 5.1.4 and MySQL 5.0.23 and Dreamweaver 8. When I try to
                >>>create a database connection I get the "Your PHP server doesn't have the
                >>>MySQL module loaded or you can't use the mysql_(p)connec t functions"
                >>>error. I have downloaded the latest mysqli and mysql extensions (PHP
                >>>5.1.6 and MySQL Server 5.0.24a) and copied these into my C:\PHP\ext
                >>>directory. I believe I have already made the required changes to the
                >>>php.ini file however this may not be 100% right. Any further advice
                >>>and/or assistance would be greatly appreciated.
                >>
                >>Did you stop and restart your server?
                >>
                >>For the mysql connections, you need the following in your php.ini file:
                >>
                > extension=php_m ysql.dll
                >>
                >>If you want to use mysqli, you need:
                >>
                > extension=php_m ysqli.dll
                >>
                >>(you can specify both).
                >>
                >>And watch for any errors when you start your server. Check your server
                >>log to see if there are any errors, also.
                >>
                Hi and thanks.
                >
                Anything specifically I should be looking for in the log etc?
                >
                >
                (top posting fixed)

                Anything unusual, that's all. There are a lot of different warnings or
                errors which may cause a problem like this.

                And BTW - please don't top post. Thanks.



                --
                =============== ===
                Remove the "x" from my email address
                Jerry Stuckle
                JDS Computer Training Corp.
                jstucklex@attgl obal.net
                =============== ===

                Comment

                • Johnny

                  #9
                  Re: Connection problems - PHP MySQL


                  "Schmalz" <gpshea@hotmail .comwrote in message
                  news:451d4489$0 $4666$61c65585@ un-2park-reader-01.sydney.pipen etworks.com.au.
                  ...
                  "Johnny" <removethis.huu anito@hotmail.c omwrote in message
                  news:htTSg.463$ UJ2.162@fed1rea d07...

                  "Schmalz" <gpshea@hotmail .comwrote in message
                  news:451be14c$0 $4666$61c65585@ un-2park-reader-01.sydney.pipen etworks.com.au.
                  ..
                  Hi all. Probably not an original posting but I have searched high and
                  low
                  for a satisfactory resolution to this problem. I am using Windows XP,
                  IIS
                  5.1, PHP 5.1.4 and MySQL 5.0.23 and Dreamweaver 8. When I try to
                  create
                  a
                  database connection I get the "Your PHP server doesn't have the MySQL
                  module
                  loaded or you can't use the mysql_(p)connec t functions" error. I have
                  downloaded the latest mysqli and mysql extensions (PHP 5.1.6 and MySQL
                  Server 5.0.24a) and copied these into my C:\PHP\ext directory. I
                  believe
                  I
                  have already made the required changes to the php.ini file however this
                  may
                  not be 100% right. Any further advice and/or assistance would be
                  greatly
                  appreciated.
                  >
                  >
                  make yourself a phpinfo.php file that has a call to phpinfo() and run
                  that
                  to see what's loaded, what points to where, the dir of your ini file,
                  etc.,
                  etc.
                  Hi,
                  >
                  I have done that now. What specifically should I be looking for? Let me
                  know what particular information I need and I will tell you what it says.
                  >
                  Thanks.
                  >
                  At the top there'll be an entry:
                  Configuration File (php.ini) Path

                  Under php core there'll be an entry:
                  extension_dir

                  check they all point where you think they should, that is that you are using
                  the ini file you think you are and that your extensions are coming from the
                  right directory (you think it's C:\PHP\ext but what does php think it is?),
                  etc.

                  Then scroll down, there are module enries in alphabetical order, see if you
                  can see an entry for MySql.

                  If there's not one there MySql isn't loaded (but you knew that already right
                  ;-) which could be for any one of a number of reasons.

                  If it's the right extensions directory and PHP is reading the correct ini
                  file that you modified then perhaps you haven't done all the things they say
                  here http://us3.php.net/manual/en/ref.mysql.php under PHP 5+

                  I note that it says "The supporting DLLs for the PHP 5 extensions are also
                  not in a seperate directory." in the manual install instructions so you may
                  want to check where php_mysql.dll is and also libmysql.dll (this should be
                  either in the windows system dir [not recommended] or the PATH variable
                  should have an enry that points to where it is).

                  You may also want to set
                  display_startup _errors = On

                  in the ini file until you have finished debugging, so you can see any errors
                  that occur on start up.

                  Good luck.



                  Comment

                  Working...