On Sun, Aug 2, 2009 at 9:16 PM, mdsmoker <mdsmo...@hotmail.com> wrote:

>
> when running python manage.py syncdb I got the following errors...
>
> C:\DJANGO~1\mysite>python manage.py syncdb
> Traceback (most recent call last):
> [snip]

  super(Connection, self).__init__(*args, **kwargs2)
> _mysql_exceptions.OperationalError: (2003, "Can't connect to MySQL
> server on 'lo
> calhost' (10061)")
>

10061 is Winsock connection refused.  There is no program listening on the
port/host you are trying to connect to.


>
> I have mysqldb 1.2.2 installed w/out errors.  I think I'm just missing
> something pretty simple.  If it helps, this is what my settings.py
> looks like...
>
> DATABASE_ENGINE = 'mysql'           # 'postgresql_psycopg2',
> 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
> DATABASE_NAME = 'mysitedb'             # Or path to database file if
> using sqlite3.
> DATABASE_USER = 'root'             # Not used with sqlite3.
> DATABASE_PASSWORD = 'blue33'         # Not used with sqlite3.
> DATABASE_HOST = ''             # Set to empty string for localhost.
> Not used with sqlite3.
> DATABASE_PORT = '3036'             # Set to empty string for default.
> Not used with sqlite3.
>

Why have you specified port 3036?  The default MySQL port is 3306, so unless
you have configured your server to use this other port, that DATABASE_PORT
setting explains the failure to connect.  Assuming you have not specially
configured your MySQL server to listen on a non-standard port, it's best to
just leave DATABASE_PORT empty and let the default one be used
automatically.

Karen





>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to