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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:15:29+00:00 2026-05-25T01:15:29+00:00

I want to query my XAMPP mysql database with python. However, it seems like

  • 0

I want to query my XAMPP mysql database with python. However, it seems like that I cannot install MySQL-python without having a “real” mysql database installed on my machine.
When I install it with easy install I get the following error output

File "setup.py", line 15, in <module>
File "/tmp/easy_install-qQJSHH/MySQL-python-1.2.3/setup_posix.py", line 43, in get_config
File "/tmp/easy_install-qQJSHH/MySQL-python-1.2.3/setup_posix.py", line 24, in mysql_config
EnvironmentError: mysql_config not found

I get a similar error when I install the lib from source. So my guess is that during the installing process it tries to locate my mysql database.
However, I don’t want to install mysql, but use the mysql from XAMPP.
Does anyone have an idea how do you have to install the lib to use it with mysql XAMPP?
Thanks for any help in advance!!

P.S.
I’m using OS X.

  • 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-25T01:15:29+00:00Added an answer on May 25, 2026 at 1:15 am

    After extracting the MySQL-python-X.X.X tar ball, edit the file site.cfg.
    Look for the line:

    # mysql_config = /usr/local/bin/mysql_config
    

    uncomment the line and replace with:

    mysql_config = /opt/lampp/bin/mysql_config
    

    This is assuming you installed XAMPP in /opt/lampp.

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

Sidebar

Related Questions

I want a query that returns a list of all the (user) stored procedures
I want to query a table so that it´s ordered the following way: 1)
I have a DataGridView that I want to query using Linq (C# WinForm). I
I want to query database two from database 1. Easy, right? SELECT * FROM
I want to query a list of names from one table that appear in
I want to query a database and return specific row numbers eg 1, 10
I want a query to select more than 4 AccountId repetitions from table2 having
I want to insert a result in mysql, i use this query: $sql= INSERT
I want my query result to look like this: Person1 Person2 Person3 Person4 Total
I want to query everything, Like: SELECT * FROM but I want to exclude

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.