Install issue wity MySQL on Windows

177 views
Skip to first unread message

edelberry

unread,
Dec 5, 2006, 7:12:45 PM12/5/06
to Django developers
I'm trying to get MySQL to work with Django. (I'm new to Django.) My
installation runs successfully until I attach a database connector.

PROBLEM:
An error occurs when running *Python manage.py syncdb* after setting
DATABASE_ENGINE = 'mysql' in settings.py.
(I've omitted the other settings here for brevity).

The error is "Error loading MySQLdb module: No module named MySQLdb"
(I've omitted the rest of the error stack.)

ENVIRONMENT:
Windows XP Pro
Python 2.4
Apache 2.2
mod-python 3.2.10
MySQL 5.0

ANAYLYSIS
The Python code in django\db\backends\mysql\base.py appears to be
looking for a DB connector in the django/db/backends/mysql folder named
MySQLdb. There is no Python file (.py) of this name in either the
MySQL or the Django installations. Nor is there a DLL or PYD file in
the DLLs folder that looks MySQLish.

Any suggestions?
Thanks, Ed

Julio Nobrega

unread,
Dec 5, 2006, 7:25:31 PM12/5/06
to django-d...@googlegroups.com
On 12/5/06, edelberry <eslin...@gmail.com> wrote:
>
> ENVIRONMENT:
> Windows XP Pro
> Python 2.4
> Apache 2.2
> mod-python 3.2.10
> MySQL 5.0

Did you install a Python Mysql module? I use this one:

http://sourceforge.net/projects/mysql-python


--
Julio Nobrega - http://www.inerciasensorial.com.br

edelberry

unread,
Dec 5, 2006, 7:33:18 PM12/5/06
to Django developers
No I didn't. I'll take a look, Thanks.

Reply all
Reply to author
Forward
0 new messages