Problem when placed on a web server winxp

Results 1 to 9 of 9
  1. #1
    Member insteadof is offline
    MemberRank
    Dec 2010 Join Date
    55Posts

    Problem when placed on a web server winxp

    when I placed on a web server winxp
    it's ok to link http://192.168.1.33gm/register.php
    but the completion of registration can not connect to mysql
    although I have the IP config in config.php
    with ubuntu server ip is 192.168.1.250
    PHP Code:
    <? //=====For MySQL Datatbase=====//

        
    $DBHost "192.168.1.250";  // localhost or your IP
        
    $DBUser "root";  // Database user
        
    $DBPassword "123456789";  // Database password aringaso
        
    $DBName "dbo";  // Database name
        
    $ServerIP "192.168.1.250"
        
    $ServerPort "29000";
    ?>
    PHP Code:
    Warningmysql_connect() [function.mysql-connect]: [2002No connection could be made because the target machine actively (trying to connect via tcp://192.168.1.250:3306) in D:\desk\Desktop\lung tung\xampp\htdocs\gm\register.php on line 6

    Warningmysql_connect() [function.mysql-connect]: No connection could be made because the target machine actively refused itin D:\desk\Desktop\lung tung\xampp\htdocs\gm\register.php on line 6 
    I use xampp
    Last edited by insteadof; 23-11-11 at 03:06 AM.


  2. #2
    Account Upgraded | Title Enabled! angelmx is offline
    MemberRank
    Sep 2010 Join Date
    216Posts

    Re: Problem when placed on a web server winxp

    Try to change the ip for 127.0.0.1 localhost

  3. #3
    Angelemu founder tbnanubis is offline
    MemberRank
    Mar 2011 Join Date
    Unicorn ForestLocation
    527Posts

    Re: Problem when placed on a web server winxp

    active refuse may mean, it is there but does not allow connections from different places than localhost. lookup your my.cnf or other config and allow connections from the ip of your web server

  4. #4
    Member insteadof is offline
    MemberRank
    Dec 2010 Join Date
    55Posts

    Re: Problem when placed on a web server winxp

    Quote Originally Posted by tbnanubis View Post
    active refuse may mean, it is there but does not allow connections from different places than localhost. lookup your my.cnf or other config and allow connections from the ip of your web server
    You can guide for me, how can such a result

  5. #5
    Angelemu founder tbnanubis is offline
    MemberRank
    Mar 2011 Join Date
    Unicorn ForestLocation
    527Posts

    Re: Problem when placed on a web server winxp

    i try later, as i have no xampp here atm.. try this (taken from debian my.cnf)
    Code:
    #
    # Instead of skip-networking the default is now to listen only on
    # localhost which is more compatible and is not less secure.
    # bind-address		= 127.0.0.1
    #
    # * Fine Tuning
    #
    change it to your network address of winxp and uncomment it.

  6. #6
    Member insteadof is offline
    MemberRank
    Dec 2010 Join Date
    55Posts

    Re: Problem when placed on a web server winxp

    Quote Originally Posted by tbnanubis View Post
    i try later, as i have no xampp here atm.. try this (taken from debian my.cnf)
    Code:
    #
    # Instead of skip-networking the default is now to listen only on
    # localhost which is more compatible and is not less secure.
    # bind-address		= 127.0.0.1
    #
    # * Fine Tuning
    #
    change it to your network address of winxp and uncomment it.
    sorry, but I found the frame my.cnf file in var \ www \
    Where is it?

  7. #7
    Angelemu founder tbnanubis is offline
    MemberRank
    Mar 2011 Join Date
    Unicorn ForestLocation
    527Posts

    Re: Problem when placed on a web server winxp

    look in the mysql config folder on your winxp machine.. it should be somewhere in your xampp folder

  8. #8
    Member insteadof is offline
    MemberRank
    Dec 2010 Join Date
    55Posts

    Re: Problem when placed on a web server winxp

    oh I'm sorry, but it seems you have misunderstood the problem
    I put mysql in ubuntu virtual server, and I just want to use a registration page on xampp running on another server is winxp

    sorry my english is bad so I used google translate

  9. #9
    Member insteadof is offline
    MemberRank
    Dec 2010 Join Date
    55Posts

    Re: Problem when placed on a web server winxp

    why
    change $DBHost = "192.168.1.250"; // localhost or your IP
    ip 192.168.1.250 don't work
    and localhost or 127.0.0.1 good work

    I want to use IP 192.168.1.250 winxp can connect to mysql in ubuntu, I have to do?



Advertisement