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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:11:07+00:00 2026-06-17T10:11:07+00:00

Just today I have decided that I wanted to learn python because I personally

  • 0

Just today I have decided that I wanted to learn python because I personally like the syntax and its feel. I am a pretty young developer and I really wanted to learn a new programming language since I am only fluent in JavaScript (especially javascript) and PHP so I decided on Python. Python seems quite like javascript execpt for the fact that they don’t use curly braces to define a new block. And of course its far more powerful.

I’ve learned that you can connect to MySQL databases using MySQLdb .

But I am having an issue, when I use the following code.

db = MySQLdb.connect(host="localhost", user="methodjs_postes", passwd="********", db="methodjs_postes");

I get this large error:

Traceback (most recent call last):
  File "<pyshell#4>", line 1, in <module>
    db = MySQLdb.connect(host="localhost", user="methodjs_postes", passwd="********", db="methodjs_postes");
  File "C:\Python27\lib\site-packages\MySQLdb\__init__.py", line 81, in Connect
    return Connection(*args, **kwargs)
  File "C:\Python27\lib\site-packages\MySQLdb\connections.py", line 187, in __init__
    super(Connection, self).__init__(*args, **kwargs2)
OperationalError: (2003, "Can't connect to MySQL server on 'localhost' (10061)")

The main part that I was really focusing on though was the Can't connect to MySQL server on 'localhost' (10061) part. (But it would be nice if you explain the other parts too)

I don’t see why i’m getting this issue.
I use localhost in my PHP and it works just fine. And I did import the MySQLdb which I don’t think is the error because then it wouldn’t even attempt to connect.

I am using python 2.7, I would be using 3.3 (have it downloaded) but MySQLdb only supports up to 2.7.

When using select User,Host,Password from mysql.user where User like '%methodjs_postes%'; I get the following error:

SELECT command denied to user 'methodjs'@'localhost' for table 'user'

  • 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-17T10:11:09+00:00Added an answer on June 17, 2026 at 10:11 am

    https://chat.stackoverflow.com/rooms/22618/discussion-between-shawn31313-and-suku

    As per out chat, the conclusion is :- "Your mysql host is a remote machine and which is not allowing remote mysql connections"

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

Sidebar

Related Questions

I realized today that I have blindly just followed this requirement for years without
I just learnt XSLT today when I wanted to pretty print the playlist export
I decided to learn LISP today, and have been playing around with it for
Im just starting with localization today and need some information. I have a project
Just today I noticed on our Wordpress blog that the Facebook iframe is showing
So today I just came across the 'live()' function that binds any future and
today I just opened my 1,5 month old project and wanted to add a
I decided to modify some code today, and encountered an error that doesn't make
I am using eclipse to develop a web application. Just today I have updated
So today i decided to read something about jquery plugin development after i have

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.