This forum is no longer active. Please post your questions to our new community site

DjangoStack and MySQLdb module

Subscribe to DjangoStack and MySQLdb module 5 post(s), 3 voice(s)

Avatar ryz10 2 post(s)

I was under the impression that BitNami stacks were complete, independent AND integrated. The DjangoStack includes MySQL, but is Django integrated with MySQL? It seems like MySQLdb is missing from the stack, or have I missed something?

Avatar ryz10 2 post(s)

As a further note, I meant the DjangoStack for OS X (Mac x86). Thx.

Avatar Beltrán Rueda Administrator 3,714 post(s)


DjangoStack also ships the MySQLdb module. Are you are having any problem? Try the following:

1. Go to your installation_directory from your terminal.
2. Go into the django console: $ ./use_djangostack
3. Then go to your project: $ cd projects/Project
4. Finally run this command: $ python syncdb

If you do not see any error, the MySQLdb module is successfully installed.


Avatar jstoner 2 post(s)

I think I have a related problem. As the original poster says, MySQL says its initial root password is empty. I’m trying to log in at the command line to create databases and stuff, and I get this

[jstoner@erzulie]> ./bin/mysql -u root
ERROR 1045 (28000): Access denied for user ’root’@’localhost’ (using password: NO)

so I suppose you guys set your own default password as part of the install. I tried copying your lines into (which I think is what you meant) and ran like the django instructions say, and got

[jstoner@erzulie]> ../../python/bin/python syncdb
Traceback (most recent call last):
File “”, line 4, in
import settings # Assumed to be in the same directory.
File “/Applications/djangostack-1.1.1-1/projects/mysite/”, line 9, in
NameError: name ‘bitnami_django_root_password’ is not defined

Not sure how to get in and create my databases so I can enjoy the django goodness. Any ideas?

Avatar Beltrán Rueda Administrator 3,714 post(s)

Replied at…