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

  • Home
  • SEARCH
  • 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 5948625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:08:04+00:00 2026-05-22T17:08:04+00:00

I know this is not a particular php question, but it is to do

  • 0

I know this is not a particular php question, but it is to do with accesing php by using mysql when the file is not hosted on the same domain.

For example, im using hyperedit, the php coding tool that allows you to display the results of php in realtime as you code.

However when i try and type my mysql code in, that i know works(i tested it using my servers built in php/html etc creator) i get a error:

Connection refused (trying to connect via tcp://myservername.servername.com

Its definitely not my code, i think instead it is something to do with the fact that the file is not being hosted on the server? I have only tried it in hyperedit but i think the same would occur in other programs too.

I know its not specifically php or coding related, but i thought this is the best place to ask!
If anyone could help me it would be great!

Thanks very much!

  • 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-05-22T17:08:05+00:00Added an answer on May 22, 2026 at 5:08 pm

    This is because your local development machine does not have access to the mysql server in question.

    If this is a shared account, you may be able to grant access to your remote machine’s IP/hostname through cPanel. If you have direct access to the remote box through the cli, you can do it via a sql GRANT command, like so:

    GRANT SELECT ON mydb.* TO myusername@'my_IP' IDENTIFIED BY 'mypassword';
    

    Otherwise, it may be locked down in a shared environment where only machines on the local subnet can access the mysql server (cough, GoDady, cough).

    So there’s no real answer. Either you have the privileges to give your remote machine access, or you don’t. If you don’t, consider using another host that does allow you to do what you need.

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

Sidebar

Related Questions

I know this is not a real programming question. But, it relates to programming
[Yes I have seen this question but I do not know C nor C++,
I know this is not programming directly, but it's regarding a development workstation I'm
I know this is not programming related, but I have a scenario. Each video
Hey. I know this is not a 'refactor my code' site but I made
I know this question is not really important.. however I've been wondering: Which of
I know this probably really simple but Im not sure what im doing wrong...
I know this sort of code is not best practice, but nevertheless in certain
I know this is possible but I'm not really sure where to start. Has
I know this site is written using ASP.Net MVC and I do not see

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.