mysql-python
ImportError: No module named mysql.base, in django project on Ubuntu 11.04 server
I am following the steps in the Django Book and got to the part where the authors explain hot wo set up a django project to use a database. I chose mysql.[详细]
2023-03-08 05:33 分类:问答WSGI: _mysql.so Image not found
Environment: MacBook Pro, OSX 10.6, Python 2.6.1 64 bit, MySQL 5.X 64 bit I am having problems installing MySQLdb for use with Django. After installing everything I am able to open the python interpr[详细]
2023-03-06 17:18 分类:问答Does the MySQLdb module in python returns utf8 encoding or unicode in this case?
Using MySQLdb I connect to a database where everything is stored in the utf8 encoding. If I do cursor.execute(\"SET NAMES utf8\")[详细]
2023-03-06 02:14 分类:问答MySQLdb is extremely slow with large result sets
I executed the following query both in phpMyAdmin & MySQLdb (python). SELECT *, (SELECT CONCAT(`id`, \'|\', `name`, \'|\', `image_code`)[详细]
2023-03-05 23:43 分类:问答how to insert to a mysql table using mysaldb, where the table name is in a python variable?
I\'m using python-mysql db api to insert some values to a table where the table name is in a python variable. So I wrote the below code[详细]
2023-03-04 11:54 分类:问答a really strange bug when my python program working with mysqll
here is the code sql=\"SELECT node_id FROM %s WHERE domain=\'%s\';\"%(config.nodetable,url) r=getBySql(sql)[详细]
2023-03-03 18:24 分类:问答How to use Executemany in my situation?
How can I get these sequence of SQL statements? to 开发者_Go百科work? I have previously only dealt with single select statements and cursor.execute worked fine for that. I\'m not sure what to do in th[详细]
2023-03-03 17:36 分类:问答Better way to write this SQL in Python
Is there anyway I can reduce the duplication of my arguments? For example, timepattern is repeated 4 times and it gets hard to keep track of queries that are big.[详细]
2023-03-03 17:10 分类:问答MySQLdb installed from pypm doesn't work with 32-bit python on Mac OSX
Before proceeding further, here are some details of my Mac and the installed python (ActivePython) and wxpython versions:[详细]
2023-03-03 15:51 分类:问答mysqldb doesn't write on db
I\'m trying to execute a query in a Magento database, the problem is that the Python API doesn\'t write to my database. It seems that the query is never executed.[详细]
2023-03-02 15:34 分类:问答