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
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor