[Tutor] jenia. cannot install mysqldb

ivlev jenia jenia2009 at yahoo.com
Thu Apr 21 02:29:46 CEST 2011


Hello.

I finally was able to install mysqldb, the python library to interact with mysql 
database.

I'm trying to run the "python manage.py sql hello" command where polls is the 
name of my application.

I'm getting this error:
_mysql_exceptions.OperationalError: (1049, "Unknown database 
'c:\\wamp\\www\\helloworld5\\hello\\mysql.db'")


Here is the setting.py:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 
'postgresql', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': 'mysql.db',                      # Or path to  database file if 
using sqlite3.
        'USER': 'root',                      # Not used with sqlite3.
        'PASSWORD': '',                  # Not used with sqlite3.
        'HOST': '127.0.0.1',                      # Set to empty string for 
localhost. Not used with sqlite3.
        'PORT': '3306',                      # Set to empty string for default. 
Not used with sqlite3.
     }
}


Thank you for your time and kind concern.
Jenia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110420/86addfa3/attachment.html>


More information about the Tutor mailing list