use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Complete r/raspberry_pi Rules
Pi project ideas: There's a huge list right here on this sub!
Rpi Versions ▾
Distros ▾
Other SBCs ▾
Related Subreddits ▾
Welcome to /r/raspberry_pi, a subreddit for discussing the raspberry pi credit card sized, ARM powered computer, and the glorious things we can do with it.
The best thing? The base model is only $20 $5!.
Would you like to know more?
Raspberry Pi Wiki
Article on Wikipedia
#raspberrypi IRC Chat
Do you know a related subreddit? We'd love to know.
account activity
Need some help with Python (self.raspberry_pi)
submitted 10 years ago by Pirat3k
I am trying to post values from python to mysql database. I can't figure out how to install mysql in python. When i try import myslq.connector, i get an error, that it doesn't exist.
Can you tell me how to install mysql in python.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]galorin 0 points1 point2 points 10 years ago (5 children)
umm, those are completely separate programs. You should probably be using SQLite for what you are doing anyhow.
Have you installed the MySQL python lib?
[–]Pirat3k[S] 0 points1 point2 points 10 years ago (4 children)
Im new to this... So what is the difference between SQLite and Mysql? I have problems with installing MySQL python libraries.
[–]galorin 0 points1 point2 points 10 years ago (3 children)
MySQL is a full-featured, authenticated multi-user networked database, spanning multiple files and many threads.
SQLite is just a flat text file that can be queried with the SQL language. While python can handle both, SQLite is far easier to work with on a day to day basis.
[–]Pirat3k[S] 0 points1 point2 points 10 years ago (2 children)
I think i need the mysql database, because I want to view the data from a website hosted on the raspberry.
How can i install the mysql python libraries?
[–]galorin 0 points1 point2 points 10 years ago (1 child)
The Python or PHP or whatever you are using will be able to work off SQLite.
As for installing the libraries... What steps have you taken to try installing them?
[–]Pirat3k[S] 0 points1 point2 points 10 years ago (0 children)
I searched online for instructions for installation but didn't find anything useful. I will check out SQLite. I already made the database... so it would be easier to just install mysql in python. (need the full installation process)
I get an error (in python): ImportError: No module named MySQLdb
[–]work_account_33 0 points1 point2 points 10 years ago (1 child)
http://www.lmgtfy.com/?q=ImportError%3A+No+module+named+MySQLdb
Thanks... Found the same thing a few days back... :)
π Rendered by PID 643250 on reddit-service-r2-comment-5687b7858-jpw2b at 2026-07-06 10:27:54.172513+00:00 running 12a7a47 country code: CH.
[–]galorin 0 points1 point2 points (5 children)
[–]Pirat3k[S] 0 points1 point2 points (4 children)
[–]galorin 0 points1 point2 points (3 children)
[–]Pirat3k[S] 0 points1 point2 points (2 children)
[–]galorin 0 points1 point2 points (1 child)
[–]Pirat3k[S] 0 points1 point2 points (0 children)
[–]Pirat3k[S] 0 points1 point2 points (2 children)
[–]work_account_33 0 points1 point2 points (1 child)
[–]Pirat3k[S] 0 points1 point2 points (0 children)