On Fri, May 6, 2011 at 1:45 PM, r_bloodlife <r19onl...@gmail.com> wrote:
> Hello, > I'm a beginner trying to build an application.. > please help in correcting these errors.. > I'm Confused, whether to use "MySql" or "Sqllite3" > > > "rahul@linux-cgdq:~/myproject/prj> ls -l > total 36 > -rw-r--r-- 1 rahul users 148 2011-05-04 23:36 current_datetime.py > -rw-r--r-- 1 rahul users 0 2011-05-04 22:52 __init__.py > -rw-r--r-- 1 rahul users 131 2011-05-04 22:53 __init__.pyc > -rw-r--r-- 1 rahul users 503 2011-05-04 22:52 manage.py > -rw-r--r-- 1 rahul users 5040 2011-05-06 13:33 settings.py > -rw-r--r-- 1 rahul users 2798 2011-05-04 23:29 settings.pyc > -rw-r--r-- 1 rahul users 555 2011-05-04 23:35 urls.py > -rw-r--r-- 1 rahul users 278 2011-05-04 22:53 urls.pyc > -rw-r--r-- 1 rahul users 209 2011-05-04 23:31 views.py > rahul@linux-cgdq:~/myproject/prj> 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 0x82e790c>> > Traceback (most recent call last): > File "/usr/local/lib/python2.6/site-packages/django/core/management/ > commands/runserver.py", line 88, in inner_run > self.validate(display_num_errors=True) > File "/usr/local/lib/python2.6/site-packages/django/core/management/ > base.py", line 249, in validate > num_errors = get_validation_errors(s, app) > File "/usr/local/lib/python2.6/site-packages/django/core/management/ > validation.py", line 103, in get_validation_errors > connection.validation.validate_field(e, opts, f) > File "/usr/local/lib/python2.6/site-packages/django/db/backends/ > mysql/validation.py", line 14, in validate_field > db_version = self.connection.get_server_version() > File "/usr/local/lib/python2.6/site-packages/django/db/backends/ > mysql/base.py", line 338, in get_server_version > self.cursor() > File "/usr/local/lib/python2.6/site-packages/django/db/backends/ > __init__.py", line 252, in cursor > cursor = util.CursorWrapper(self._cursor(), self) > File "/usr/local/lib/python2.6/site-packages/django/db/backends/ > mysql/base.py", line 322, in _cursor > self.connection = Database.connect(**kwargs) > File "/usr/lib/python2.6/site-packages/MySQLdb/__init__.py", line > 71, in Connect > return Connection(*args, **kwargs) > File "/usr/lib/python2.6/site-packages/MySQLdb/connections.py", line > 170, in __init__ > super(Connection, self).__init__(*args, **kwargs2) > _mysql_exceptions.OperationalError: (2002, "Can't connect to local > MySQL server through socket '/var/run/mysql/mysql.sock' (2)") > > " > > - I've Installed MySql whenever i try to start, it gives me this "_mysql_exceptions.OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)")" i tried everything as mentioned in the django documentation, their's more instruction on how to setup "sqllite3" than other databases.. one more thing.. i actually haven't installed linux on my drive.. i'm running on VMWare Workstation.. tried in Ubuntu 10.10 it was the same error now n OpenSUSE it's still the same.. am i facing the problem b'coz of this..? Thank you... -- 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.