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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:30:41+00:00 2026-06-09T06:30:41+00:00

-edit- nevermind, it was the bindaddress. But maybe you can explain why my php

  • 0

-edit- nevermind, it was the bindaddress. But maybe you can explain why my php apps were able to connect? Or how to make it so i can connect via IP address OR 127.0.0.1. I certainly didnt configure, tell or update the sites to use my ip address instead of 127.0.0.1

I am using MySql on C# running on debian with mono. My app use to work. Then several things happened. I ran out of diskspace, i changed a configuration so ibdata wasnt one big file. My db got full and ran out of disk space again. I also changed my bind-address from 127.0.0.1 to my machine IP address. My app use 127.0.0.1 but i’m unsure what the php sites use. I have a feeling i made other changes (such as having utf8 as the default) but i dont remember each of them.

I get the exception below. If i use mysql -u user -p I can login as said user. However my app still gets exceptions. I have no idea how i could debug this. What can i check and how might i fix this?

My sites in php seem to access the database. My one C# doesnt and my console app doesn’t. They all use different usernames of course.

MySql.Data.MySqlClient.MySqlException: Unable to connect to any of the specified MySQL hosts.

  • 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-09T06:30:42+00:00Added an answer on June 9, 2026 at 6:30 am

    The error is not user related.
    “Unable to connect to any of the specified MySQL hosts“
    To me it says that you have configured a (number of) MySQL host(s) that your app is trying to connect to – and failing. Most likely that you bind address change created this problem (why did you do it anyway?)
    There may be a number of reasons why:
    1) if your SQL server resides on computer with multiple network cards/connections your new configuration may have allowed connection on one of them but not the others.
    2) AFAIR http clients were treated slightly differently to direct TCP clients, I think it had something to do with the way http servers were interpreting the SQL server address (I may be completely wrong on this one).

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

Sidebar

Related Questions

-edit- nevermind, i made a mistake in my select statement. Update was working correctly.
** EDIT ** Nevermind, just needed to take out the parens... I get this
EDIT : It turned out that this can only be done through an external
-edit- nevermind. I ran the code again and it appears i cant log into
I can construct an array with: array ((0,0),(10,10)) [((x,y),(x)) | x<-[0..10], y<-[0..10]] but I
I know that you can retrieve events for a specified date range, but how
I am totally confused right now. Edit: Okay, nevermind. The Python socket as well
-edit- nevermind i was lucky and didnt need to change much and have this
EDIT: Nevermind, found duplicate after searching for a completely unrelated topic (kinda serendipitous) Probably
$value can = a folder structure to the language file. Example: languages/english.php $value can

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.