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 8540375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:35:01+00:00 2026-06-11T11:35:01+00:00

Greetings Stackoverflow. I am currently using 000webhost.com as my MySQL database / server provider.

  • 0

Greetings Stackoverflow.

I am currently using 000webhost.com as my MySQL database / server provider. Using PHP, their service is working brilliant!

I have made a bunch of variables containing the MySQL username, password, host, DB, et cetra.
Looking as follows:

$mysql_host = "mysql3.000webhost.com";
$mysql_database = "a1966938_AtMarke";
$mysql_user = "a1966938_admin";
$mysql_password = "**********";
$mysql_table = "MarketDatas";

and I am using the “mysql_connect($mysql_host, $mysql_user, $mysql_password);” to connect to the server. Again, all of this is working perfect. However, when I am trying to connect to the database via. Client (C#) it will not let me connect, or if I declare the same variables and tries to connect to the server from another IP with PHP using the same variables and procedures, it will not let me connect?

I am confused – What should I do, so it allows all IPs?

  • 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-11T11:35:02+00:00Added an answer on June 11, 2026 at 11:35 am

    The reasons why it does not allow connection from other IPs may be two:

    • the GRANT PRIVILEGES ... TO user@IP has been given to that IP but no other; if you have GRANT privileges on the database you might be able to remedy that (remember to FLUSH PRIVILEGES).
    • the firewall on MySQL hosting may allow connections only from their own Web hosting servers. It is unlikely you can do anything if this is the case, but try asking their support personnel.

    Usually, you can implement a thin REST layer written in PHP (just google ‘MySQL REST PHP interface’ or such) so that you can connect to the Web hosting, and pass through queries from their interfaces (which are of course open – otherwise the Web hosting wouldn’t work). This is what the HeidiSQL did on some setups, and their code might be floating somewhere. Then you won’t be using the C# MySQL library but rather the HTTP library to do the work. More hassle, but more portable (also because not everywhere you can expect the port 3306/tcp to be outbound open: it is on home ADSLs, but many distributed carriers and companies will only allow outbound ports 80, 443, 110, 25 to some IPs, and a dozen others – and 3306 isn’t among them; but this depends on what you’re planning to do with the C# client).

    However, if you get “cannot resolve port”, this might also be caused by the client library and you might have to specify the MySQL connection port value manually; the default value is 3306, and (usually) you can specify it in the host name, such as “myserver.host.com:3306”.

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

Sidebar

Related Questions

Greetings, I'm uploading an image to my server using the following code: http://cocoadev.com/index.pl?HTTPFileUploadSample However,
Greetings! I have a Repeater control that's using an XmlDataSource control. <asp:FormView id=myFormView runat=server
Greetings to all the compiler designers here on Stack Overflow. I am currently working
Greetings Stackoverflow How do I set the php $_GET[] array from Jquery? I have
Greetings stackoverflow. I have been tinkering about with a SOAP client using PHP5's native
Greetings to the stackoverflow community, I am currently following a bioinformatics module as part
Greetings stackoverflow community! I am working on an Android game that uses Box2D for
Greetings StackOverflow, In past projects I've gotten used to using the Settings Designer in
Greetings. I've been using vim for years, and I've recently started toying with XCode.
Greetings. How can I make access to my article or post by their name?

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.