You need to make sure MySQL is up and running, and that the database settings in your settings file are correct - I've seen this error when I've simply forgotten to start MySQL.
On Mar 5, 1:25 pm, "Nicola Greco di Notsecurity.com" <[EMAIL PROTECTED]> wrote: > I'm using debian, with apache (not apache2), when i launch this > command: python manage.py syncdb it appear: > > server:/home/admin/djbongo/aggregatore# python manage.py syncdb > Traceback (most recent call last): > File "manage.py", line 11, in ? > execute_manager(settings) > File "/usr/lib/python2.4/site-packages/django/core/management.py", > line 1672, in execute_manager > execute_from_command_line(action_mapping, argv) > File "/usr/lib/python2.4/site-packages/django/core/management.py", > line 1571, in execute_from_command_line > action_mapping[action](int(options.verbosity), > options.interactive) > File "/usr/lib/python2.4/site-packages/django/core/management.py", > line 492, in syncdb > _check_for_validation_errors() > File "/usr/lib/python2.4/site-packages/django/core/management.py", > line 1167, in _check_for_validation_errors > num_errors = get_validation_errors(s, app) > File "/usr/lib/python2.4/site-packages/django/core/management.py", > line 990, in get_validation_errors > db_version = connection.get_server_version() > File "/usr/lib/python2.4/site-packages/django/db/backends/mysql/ > base.py", line 127, in get_server_version > self.cursor() > File "/usr/lib/python2.4/site-packages/django/db/backends/mysql/ > base.py", line 99, in cursor > self.connection = Database.connect(**kwargs) > File "/usr/lib/python2.4/site-packages/MySQLdb/__init__.py", line > 75, in Connect > return Connection(*args, **kwargs) > File "/usr/lib/python2.4/site-packages/MySQLdb/connections.py", line > 164, in __init__ > super(Connection, self).__init__(*args, **kwargs2) > _mysql_exceptions.OperationalError: (2002, "Can't connect to local > MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)") > > someone can help me? --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---