Tagged Questions
3
votes
3answers
458 views
Add method to class returned by function
DISCLAIMER: This question is related to homework. I am not expecting a solution, but am hoping for a better understanding of what is being asked and the (possible) utility of this homework exercise.
...
1
vote
1answer
228 views
Accessing one value from MySQL using pymysql in python
I am trying to fetch one value from a database using pymysql. My current solution is 3 lines of code. Is this the best way to handle this?
import pymysql
conn = pymysql.connect(host='localhost', ...
1
vote
2answers
900 views
How to install MySQLdb with python 3.2
I'm trying to connect to mySQL with python. From what I understand you need to have MySQLdb which is some python connector module. My first problem was not having the right version of the mySQLdb. It ...
1
vote
1answer
188 views
Installing PyMySQL on a Windows 7 machine
I am not a python user and though I have used MySQL, I'm not an expert. Also, I'm mainly a Windows user and I don't know much about running command line scripts. So this might be a stupid question ...
0
votes
3answers
398 views
MySQLdb on python3: No module named release
When i tried to connect to database using python code it shows the following error:
TTraceback (most recent call last):
File "C:\Users\Ponmani\Desktop\test.cgi", line 5, in <module>
...
0
votes
3answers
751 views
connecting mysql and python3.3
i'm new to django an usind django 1.5 and python 3.3.
Is there any way to install mysqlDB on python 3.3
(or)Is there any other method to connect them ?
0
votes
0answers
38 views
weakly-referenced object no longer exists error on creating a function
I am working with MySQL connector and Python 3.3. I am creating a script that consists of functions that frequently access database server. So for all the functions I have created, I am trying to ...
0
votes
1answer
228 views
MySQL connection in python 3.X for 64bit [closed]
I've built a large program that runs queries on MySQL dbs via python 3.X scripts. I developed it while working on a 32-bit system, but now am trying to run it on my new 64-bit machine. Thus far I have ...
0
votes
1answer
403 views
Python cgi script inserts only integers into mysql database
I started scripting in Python and I ran a into weird problem.
I am trying to insert some values into mysql database.
Database fields are varchar, utf-8 unicode
Using Python 3.2 and wamp server ...
0
votes
1answer
96 views
Verify the connection with MySQL database
I using MySQLdb for access to mysql database from python. I need to know if connection with database is still alive... are there any attribute or method in order to do this???
thanks!!
-1
votes
1answer
102 views
How can I create and drop the database using Python code?
I'm very new to Python. How can we drop and create the database in Python?
I'm using MySql and Windows server 2003.
Note: I have all the queries, Drop, create and insert records everything in a ...