Tagged Questions
13
votes
2answers
7k views
Using PIP in a virtual environment, how do I install MySQL-python
When I'm in my virtual environment, I attempt to run:
pip install MySQL-python
This didn't work, so I tried downloading the package and installing it by running:
python setup.py install
This ...
5
votes
1answer
14k views
MySQLdb for Python 2.7 (Ubuntu)
After I installed MySQLdb by
sudo apt-get install python-mysqldb
I can import and use it when I use Python 2.6, but not 2.7. (ImportError: No module named MySQLdb)
I think that apt-get install ...
4
votes
2answers
4k views
ubuntu mysqldb not installed properly
I'm running the following commands and get the following error:
root# sudo python manage.py syncdb
Traceback (most recent call last):
File "manage.py", line 14, in <module>
...
3
votes
2answers
2k views
Django MySQLdb version doesn't match _mysql version Ubuntu
I'm trying to get a django site deployed from a repository. I was almost there, and then changed something (I'm not sure what!!) and was back to square one.
Now I'm trying to run ./manage.py syncdb ...
2
votes
2answers
14k views
“Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)”)
I am using mysqldb (the python MySQL) module..
But everytime I try to run. it gives me this error.
super(Connection, self).__init__(*args, **kwargs2)
_mysql_exceptions.OperationalError: (2002, ...
2
votes
0answers
160 views
MySql child processes are consuming a lot RAM space
I have a problem with RAM consumption on my server. Where at certain hour of day RAM usage increases to critical limit.
To check the issue I tried to run htop command and found that most of the RAM ...
1
vote
4answers
1k views
python mysqldb import error
on ubuntu i have installed mysql but still i cannot import mysql database. Below are the steps that i followed.Can any one point me to a solution to this
(Other info is ubuntu is installed on a ...
1
vote
3answers
2k views
Python-MySQLdb Error in Ubuntu
I am trying to setup the environment in Ubuntu (making a shift from
MS-Windows).
It has, of course, Python 2.6.
I did setup MySQL 5512 and MySQLdb from 'Ubuntu Software Centre'.
import dabo
...
1
vote
1answer
162 views
Python and MySQL mysterious memory leak
I'm running a python app that's querying (selecting) mysql db, reading ~1k rows at a time, performing calculations with them and repeating that for hours. Table which is read have ~20m readings and ...
0
votes
1answer
224 views
Connecting to MySQL with Python in Ubuntu (Weird Error)
I'm using ubuntu 10.10, and after making the mistake of installing LAMP, (was unable to connect to a database with it), I came here and read how important it is to use apt-get install python-mysqldb ...
0
votes
1answer
20 views
Import MySQLdb not working in python
I have executed the following command to install mysqldb :
apt-get install python-mysqldb
it returned :
Reading package lists... Done
Building dependency tree
Reading state information... ...
0
votes
2answers
551 views
Tried to import _mysql through MySQLdb and get the error
I'm trying to use MySQLdb and when I try to import it I get the following error. Any thoughts? I'm currently using an ubuntu instance on aws.
>>> import MySQLdb
Traceback (most ...
0
votes
0answers
29 views
node.js + python + mysql = Error: /usr/lib/python2.7/dist-packages/_mysql.so: undefined symbol: PyObject_GC_Del
Trying to use Python's MySQL library from node.js debian wheezy. With node module node-python I am able to run Python scripts in node.js. But, MysSQLdb seems to be a special problem
...
0
votes
1answer
47 views
Django mysql error in ubuntu
I have started to learn django and python and also I am new in using ubuntu. for my first program I need mysql so I already have installed it and when I use mysql command I have this result.
...
0
votes
1answer
1k views
MySQL-Python & Django 1.5.0: no module named mysql.base error
I am trying to create database table with Django by python manage.py syncdb and get an error Error was: No module named mysql.base.
I know there are many questions like this on the web but none one of ...