Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9208373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:36:12+00:00 2026-06-18T00:36:12+00:00

i have installed xampp on my windows server 2008 R2. I’m running a script

  • 0

i have installed xampp on my windows server 2008 R2. I’m running a script there that stores me data over the day. Now i want to retrieve the data from my own computer or just external by connecting the database via mysql_connect(“hostname”,”username”,”pw”). after some research i have got told that i have to commend

> [...]
> #bind-address = 127.0.0.1
> #skip-networking 
  [...]

in /etc/mysql/my.cnf

didn’t find the my.cf file in mysql but found one in xampp/mysql/bin/my.ini .
But when i opened the file i found the lines even commented so hadn’t got to change anything….. strange.

then i got told to create a new user with the host setted %. So i did. now i tried to acces the database on my pc (xampp) but when i want to connect the database, i just get the error message, that the connection failured.
Where is the mistake ?

thanks

edit:

thats howi exactly connect

$connection=mysql_connect("hostname","usrname","password")or die(mysql_error());
mysql_select_db("dbname")or die(mysql_error());

and the error message i get is german you can trabslate.

Warning: mysql_connect(): Ein Verbindungsversuch ist fehlgeschlagen, da die Gegenstelle nach einer bestimmten Zeitspanne nicht richtig reagiert hat, oder die hergestellte Verbindung war fehlerhaft, da der verbundene Host nicht reagiert hat. in C:\xampp\htdocs\tickerdata\get.php on line 4

just means as much as connection failured because remote didnt react in certain time period or connection was faulty because host didnt react…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T00:36:14+00:00Added an answer on June 18, 2026 at 12:36 am

    If you can’t connect to the server remotely, but you can connect locally, you either need to open port 3306 in the firewall, or grant the user permissions from the remote IP.

    The port should be opened in the windows firewall, as well as the router firewall. Your router will need to forward the port to the 2008R2 server.

    To open ports in 2008R2 firewall:

    http://www.2x.com/blog/2010/04/tech/configuring-the-windows-server-2008-r2-firewall-to-open-ports-for-2x-solutions/

    To grant user permissions on IP:

    GRANT ALL ON foo.* TO bar@'255.255.255.255' IDENTIFIED BY 'PASSWORD';
    

    Keep in mind that it is possible to have duplicate usernames in MySQL, and if you didn’t create the new user with a UNIQUE username then you may be getting the privileges of the user jailed to localhost

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I installed XAMPP and have an apache server running. My files are located on
I installed XAMPP on Windows server. There are 2 application on my server: First
I have an Apache server installed on my windows machine using XAMPP. Now I'm
I have an apache server installed on my portable windows 7 machine using xampp
I have installed propel in my windows xampp server,but it was not generating orm
I have a problem running PHP in XAMPP 1.7.7 for windows. I've installed XAMPP
I have XAMPP already installed on my Windows and I'm trying to turn it
I recently installed xampp, followed the installation. MySQL/apache. (I have same website running on
I have xampp installed in my windows system and lampp installed in my linux
I have been installed behat in xampp (windows). I used a PEAR to install

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.