I would work on it the other way around...tell mysql to put it's socket
somewhere else... I'd be surprised if Suse's mysql package would put it in
/tmp by default. Maybe that's where your compiled version of mysql was
putting it (might make sense, then the compiled mysql versions would collide
with other installed vesions). Remove the mysql rpm, delete /etc/mysql (or
similar, if it exists), then reinstall the rpm.

Dave

On Jan 10, 2008 2:11 PM, rob_mazur <[EMAIL PROTECTED]> wrote:

>
> Thanks David.  I believe I am nearly there...one last hurdle I
> believe.  So, I deleted all traces of the compiled version of
> MySQLdb.   Meaning, I deleted it from:
>
> $HOME/.python-eggs/MySQLdb*.egg
> /usr/lib/python2.4/site-packages/MySQLdb*.egg (or whatever it was)
>
> And, I removed my compiled Python2.5.1 and will just use the system-
> installed 2.4.1  OK, so then I installed via YAST (SuSE's package
> manager) python-mysql 1.2.0-4.  In the interpreter I tried "import
> MySQLdb" and it was fine.  Great, on to Django.......
>
> I adjusted my settings.py and tried to launch Django, and was told:
> ImportError: MySQLdb-1.2.1p2 or newer is required; you have 1.2.0
>
> Upon searching for something >1.2.0 as a SuSE package (to avoid re-
> entering the problem of compiling MySQLdb), I came up empty.  But I
> see in the docs and release notes that you can use in Django's
> settings.py DATABASE_ENGINE = 'mysql_old'.  Django now launches
> without error.  But in continuing my Django tutorial, when trying to
> use "python manage.py syncdb", I am getting:
>
> _mysql_exceptions.OperationalError: (2002, "Can't connect to local
> MySQL server through socket '/var/lib/mysql/mysql.sock' (2)")
>
> MySQL is in fact running, but the mysql.sock is in /tmp/mysql.sock  .
> So I am now trying to find how to tell Django (or Python) that the
> file is in a different location.
>
> Rob
> >
>


-- 
David Grant
http://www.davidgrant.ca

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to