1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

php doesn`t connect with mysql in windows server help me I will pay you

Discussion in 'Other Languages' started by stenva, Mar 7, 2009.

  1. stenva

    stenva Registered Member Premium Member

    Joined:
    Oct 30, 2008
    Messages:
    50
    Likes Received:
    6
    hi,
    php doesn't connect with mysql in windows server with IIS our website is build in both php and .net applications so we have to host it in windows server.

    All my tech people unable find out the issue.


    please help me I will pay you.

    Thanks
     
  2. superstar143

    superstar143 BANNED BANNED

    Joined:
    Apr 2, 2009
    Messages:
    8
    Likes Received:
    1
    check the path or extension
     
  3. sikx

    sikx Registered Member

    Joined:
    Jan 4, 2009
    Messages:
    65
    Likes Received:
    166
    Location:
    Germany
    Home Page:
    It depends which library you are using (PDO or just the procedural mysql commands or mysqli). Make sure the extension is uncommented in php.ini. If it still not works, do a phpinfo(); and post it here.
     
  4. tascam

    tascam Newbie

    Joined:
    Oct 11, 2009
    Messages:
    10
    Likes Received:
    0
    php runs only in linux server not with windows server that is the reason why you can't connect

    pagangka[dot]com
     
  5. jcooper66

    jcooper66 Newbie

    Joined:
    Mar 15, 2007
    Messages:
    20
    Likes Received:
    0
    1. Install Xampp
    http://www.apachefriends.org/en/xampp-windows.html#641
    2. Start Apache, Start MySql
    3. In a web browser find out where
    http://localhost/xampp/
    4. Click on the phpinfo() and note the php.ini location incase you need in future
    5. Look at the MySql by clicking phpMyAdmin

    If your connecting to this machine from another ensure
    a.) Firewall allows mysql port
    b.) copy from xampp files the correct version of libmysql.dll to the system32 directory of the machine running the .net app
     
    Last edited: Dec 18, 2009
  6. portuguese

    portuguese Newbie

    Joined:
    Jan 17, 2010
    Messages:
    10
    Likes Received:
    0
    Probably is a firewall issue. Or Mysql not running. XAMPP is the best way to go. It will install all for you and will be listning. Make sure to turn off IIS to free port 80. Later you can change apache port (to 8080 or whatever)

    @tascam
    Of course it runs. Do you know that Microsoft is one of the major PHP sponsor? PHP install directly and work in IIS. Of course it runs better on Apache and Linux/Debian/whatever flavor. Even the Azure platform has PHP extentions.