0
votes
1answer
371 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 ...
1
vote
0answers
87 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 ...
0
votes
2answers
319 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 ...
1
vote
4answers
583 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 ...
3
votes
2answers
2k 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> ...
2
votes
2answers
668 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 ...
1
vote
1answer
3k 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 ...
0
votes
2answers
4k 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, ...
0
votes
1answer
159 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 ...
1
vote
2answers
939 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 ...
8
votes
1answer
3k 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 ...