Try mysql from the command line, make sure the service is running. Sometimes the install does not set it up to start on a reboot.
Make sure you did not specify the port (socket) either when you installed or in django -- usually it's 3306 on a pc, don't know about mac. -----Original Message----- From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Rosemarie Sent: Sunday, April 10, 2011 7:54 PM To: Django users Subject: [Suspected Spam] mysql problems after upgrading to django 1.3 hi :) I'm fairly new to django. I'm using it on mac os 10.5.8. I installed django 1.2.4 and created a small project that communicated with a mysql database. Everything was good. Then I upgraded to 1.3, followed uninstall instructions, installed the new version, everything seemed good. Except now I can't run my old app because I get a mysql error: (it's lengthy, sorry!) python manage.py runserver Validating models... Unhandled exception in thread started by <bound method Command.inner_run of <django.contrib.staticfiles.management.commands.runserver.Command object at 0x51cd50>> Traceback (most recent call last): File "/Library/Python/2.5/site-packages/django/core/management/ commands/runserver.py", line 88, in inner_run self.validate(display_num_errors=True) File "/Library/Python/2.5/site-packages/django/core/management/ base.py", line 249, in validate num_errors = get_validation_errors(s, app) File "/Library/Python/2.5/site-packages/django/core/management/ validation.py", line 103, in get_validation_errors connection.validation.validate_field(e, opts, f) File "/Library/Python/2.5/site-packages/django/db/backends/mysql/ validation.py", line 14, in validate_field db_version = self.connection.get_server_version() File "/Library/Python/2.5/site-packages/django/db/backends/mysql/ base.py", line 338, in get_server_version self.cursor() File "/Library/Python/2.5/site-packages/django/db/backends/ __init__.py", line 250, in cursor cursor = self.make_debug_cursor(self._cursor()) File "/Library/Python/2.5/site-packages/django/db/backends/mysql/ base.py", line 322, in _cursor self.connection = Database.connect(**kwargs) File "/Users/Rose/Downloads/Django-1.3/newSite/__init__.py", line 81, in Connect File "/Library/Python/2.5/site-packages/MySQL_python-1.2.3-py2.5- macosx-10.5-i386.egg/MySQLdb/connections.py", line 187, in __init__ _mysql_exceptions.OperationalError: (2002, "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)") --------------------- Things I have tried: -uninstalling django again and re-installing -uninstalling the python's mysqldb and reinstalling Any ideas on what I can do to fix this? -- 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. -- 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.