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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:29:19+00:00 2026-06-14T00:29:19+00:00

I am creating a simple python program that needs to search a somewhat large

  • 0

I am creating a simple python program that needs to search a somewhat large database ( ~40 tables, 6 Million or so rows all together ).

Currently, I use MySQLdb to query my local MySQL database then I have some other python function that work with the data and returns some statistics and other stuff. I would like to share this with others that do not want to construct their own database. At this point the database is used for queries only.

How best can I share the database and python program as a “package”. Do I have to give up on the SQL method and switch to some sort of text file database or is there an easier way… sqlite maybe?

If the answer is sqlite how do I go about exporting my current SQL database to the sqlite database? Is there any gotchas I should know about?

Currently I use simple SELECT quarries with a few WHERE statements to locate the data I need. I am afraid that if I switched to text based database I would end up having to write a large amount of code to make these queries.

Thank you in advance for any suggestions.

EDIT

So I wrote my little python program with an sqlite3 database and it works perfectly.

I ended up using using a shell script called mysql2sqlite.sh found here to convert my MySQL database to sqlite. It worked flawlessly.

I only had to change 2 lines of python code. Awesome.

My little program runs in osx, windows and linux (ubuntu and redhat) without any changes or hassle. Thanks for the advise!

  • 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-14T00:29:20+00:00Added an answer on June 14, 2026 at 12:29 am

    Converting your database could be as easy as an sql-dump and then an import, depending on the complexity of your db. See this post for strategies and alternatives.

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

Sidebar

Related Questions

A clueless Python newbie needs help. I muddled through creating a simple script that
I am experiencing some performance problems when creating a very simple Python HTTP server.
Possible Duplicate: Creating a simple XML file using python I want to write a
I'm after creating a simple mini-language parser in Python, programming close to the problem
I'm after creating a simple mini-language parser in Python, programming close to the problem
I'm creating a simple GUI app using Tkinter with Python, but I'm having problems
I am creating a simple bash script to download and install a python Nagios
I'm trying to set up a very simple UDP socket server with python that
Possible Duplicate: Bottle-friendly WSGI authentication library/middleware I'm creating a simple web application with Python
I have a simple python script (moo.py) that i am trying to stream though

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.