Thanks. I've spent hours on this silly typo. On Thursday, December 11, 2014 9:53:12 AM UTC-5, François Schiettecatte wrote:
> PASSSWORD => PASSWORD > > > > On Dec 11, 2014, at 9:26 AM, dennis breland <[email protected] > <javascript:>> wrote: > > > > Please help with this problem... > > > > > > I am getting an access denied error when running Django; details follow: > > Currently installed versions: > > Python 2.7.3 > > MySQL-python package 1.2.3 > > Django 1.7 > > > > I previously used the Django tutorial and successfully used the polling > app, using sqlite3. Now I started over with the tutorial and I’m trying to > use mysql instead. I created a database called denmain. > > As stated in the tutorial, when I perform: > > python manage.py migrate > > I get this response: > > … > > File > "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 187, in > __init__ > > super(Connection, self).__init__(*args, **kwargs2) > > django.db.utils.OperationalError: (1045, "Access denied for user > 'dennis'@'localhost' (using password: NO)") > > > > Here is my settings.py: > > … > > DATABASES = { > > 'default': { > > 'ENGINE': 'django.db.backends.mysql', > > 'NAME': 'denmain', > > 'USER': 'dennis', > > 'PASSSWORD': 'mypass', > > 'HOST': '127.0.0.1', > > 'PORT': '3306', > > } > > … > > > > On Friday, February 17, 2012 9:11:11 AM UTC-5, Detectedstealth wrote: > > Hi, > > > > I am just coming back to django development after a while of > > developing with pyramid. I have taking over an application. > > > > For some reason with the newest version of django it is not reading > > the password I set in settings: > > > > DATABASES = { > > 'default': { > > 'ENGINE': 'django.db.backends.mysql', # Add > > 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. > > 'NAME': 'mydatabase', # Or path to > > database file if using sqlite3. > > 'USER': 'root', # Not used with sqlite3. > > 'PASSWORD': 'mypassword', # Not used with > > sqlite3. > > 'HOST': '', # Set to empty string for > > localhost. Not used with sqlite3. > > 'PORT': '', # Set to empty string for > > default. Not used with sqlite3. > > } > > } > > > > When starting the server I get the following error: > > ...MySQL_python-1.2.3-py2.7-linux-x86_64.egg/MySQLdb/connections.py", > > line 187, in > > __init__ > > _mysql_exceptions.OperationalError: (1045, "Access denied for user > > 'root'@'localhost' (using password: NO)") > > > > Not sure why it is saying there was not password. For the newest > > version of django is there a new way to tell python manage.py > > runserver what password/username/database to use? > > > > -- > > You received this message because you are subscribed to the Google > Groups "Django users" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected] <javascript:>. > > To post to this group, send email to [email protected] > <javascript:>. > > Visit this group at http://groups.google.com/group/django-users. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/fd0f8b04-a8ff-41fc-8c77-01bd47abb679%40googlegroups.com. > > > > For more options, visit https://groups.google.com/d/optout. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1710bde5-b671-40e3-bbde-94b0aabb61b1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

