Linked Questions

3 votes
2 answers
1k views

Connect to mysql [duplicate]

Possible Duplicate: How do I connect to a MySQL Database in Python? There is a way to connect python with a mysql db? I found something, but seems to is only for windows and I'm working with linux....
pythonFoo's user avatar
  • 2,194
1 vote
1 answer
1k views

Is it possible to hook up a MySQL database with python [duplicate]

Is it possible to hook up a MySQL database with python program if the MySQL database is made in PhpMyAdmin?
user avatar
0 votes
3 answers
1k views

inserting into a database (mysql) via a python program [duplicate]

i am familiar with python and also familiar with mysql and SQL. I am also clear on con, cur and commit, but my problem here is that im trying to make a small program in python (no need for a gui) to ...
Dr. MaxCox's user avatar
3 votes
0 answers
115 views

connecting sql server using amazon web services to python [duplicate]

I want to access the sql server using the amazon web services. How do I do it? I have tried this using mysql.connecter in python. import mysql.connecter conn=mysql.connector.connect(host="hostname",...
abhinayak's user avatar
  • 143
180 votes
18 answers
457k views

How to convert SQL Query result to PANDAS Data Structure?

Any help on this problem will be greatly appreciated. So basically I want to run a query to my SQL database and store the returned data as Pandas data structure. I have attached code for query. I am ...
user1613017's user avatar
  • 1,813
100 votes
14 answers
202k views

How to install MySQLdb (Python data access library to MySQL) on Mac OS X?

How do I get MySQLdb working on Mac OS X?
mblackwell8's user avatar
  • 3,075
10 votes
4 answers
72k views

Connect to MySQL db from Jupyter notebook

I am using Jupyter Notebooks to learn Python. I would like to connect to a MySQL db hosted locally hosted through MAMP. How would I approach this?
coderatlarge's user avatar
4 votes
2 answers
11k views

Create a MySQL database in python

I am looking to a create a MySQL database from within Python. I can find instructions for how to connect to an existing database, but not how to initialize a new one. For example, when i run the ...
kyrenia's user avatar
  • 5,615
2 votes
2 answers
33k views

How to store MQTT Mosquitto publish events into MySQL? [duplicate]

I've connected a device that communicates to my mosquitto MQTT server (RPi) and is sending out publications to a specified topic. What I want to do now is to store the messages published on that topic ...
Ansjovis86's user avatar
  • 1,565
0 votes
1 answer
13k views

python TypeError: execute() missing 1 required positional argument: 'args'

i'm new at python i tried to run the following from distutils.util import execute from gi.repository import Gtk import mysql.connector class MyWindow(Gtk.Window): con = mysql.connector.connect(user=...
Hussain Ali's user avatar
3 votes
2 answers
4k views

python issue with popen and mysql

I'm new to Python, and haven't used Linux in years, so I'm not sure where I'm getting tangled up. I'm trying to use Popen to run sql files in MySQL on Ubuntu. Here is the relevant code: command = ['...
Craig L's user avatar
  • 63
2 votes
1 answer
8k views

Access to a MySQL database via Jupyter Notebook w/ Python3

I needed access a MySQL database via Jupyter Notebook, on which I run Python 3.6 (Anaconda install). It's a linear workflow, extracting data from the DB and manipulating it in Python/Pandas. No need ...
tim-oh's user avatar
  • 718
11 votes
1 answer
8k views

Flask CRUD programming without SQLAlchemy or other ORM

I am learning Python / Flask. Now I am at the point where I am learning Flask with MySQL Database. I read lots of posts about using Flask with databases and most of them suggest to use SQLAlchemy. I ...
user20072008's user avatar
0 votes
4 answers
13k views

Python connect to MySQL error

Why do I keep getting this error TypeError: __init__() takes 1 positional argument but 2 were given when I want to connect Python with MySQL? The exact error code is: Traceback (most recent call last)...
reposter's user avatar
1 vote
3 answers
3k views

How to parse MySQL built-code from within Python?

I've exported my MySQL database to a .txt/.sql file (link) and want to use this to rebuilt the database on other computers. While running the script in HeidiSQL works perfectly fine, I want to make ...
Ivo Flipse's user avatar
  • 10.3k

15 30 50 per page
1
2 3 4 5
7