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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:55:01+00:00 2026-05-28T13:55:01+00:00

I am writing a Python app that runs on my windows machine and I

  • 0

I am writing a Python app that runs on my windows machine and I am trying to connect to my MySQL server on a linux box. I’ve had no trouble writing code locally on my linux box in python and connecting to the MySQL db, but when I try and connect over my local network it fails.

db = MySQLdb.connect(host="192.168.0.100", user="root", passwd="password", db="db")

I get:

_mysql_exceptions.OperationalError: (2003, “Can’t connect to MySQL server on ‘192.168.0.100’ (10061)”)

Any thoughts on how I can achieve this?

  • 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-28T13:55:01+00:00Added an answer on May 28, 2026 at 1:55 pm

    This is likely a MySQL configuration issue.

    Make sure MySQL is listening on 192.168.0.100 (or 0.0.0.0) and not on 127.0.0.1. Do this by setting the bind-address option.

    For security considerations, instead of using root, it is recommended to create a separate user to connect remotely with. Then grant it access from a specific IP(-range): GRANT ... TO username@'192.168.0.%', assuming your local IP is in 192.168.0.0/24.

    One other thing to check is to make sure your firewall allows access to/from port 3306.

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

Sidebar

Related Questions

I'm writing a small app (learning Python and PyQt) that has an About box.
Are there any guidelines to writing Google App Engine Python code that would work
I'm currently writing a small python app that embeds cherrypy and django using py2app.
I am currently writing an app in python that needs to generate large amount
I'm writing an app in Python that automatically moves stuff around. How do I
I am writing an app in Python that must be able to send keys
I'm writing an app that doesn't have a main window (it runs inside a
I'm writing a Python open-source app. My app uses some open source Python libraries.
I'm currently writing an app in Python and need to provide localization for it.
Writing a test app to emulate PIO lines, I have a very simple Python/Tk

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.