﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
12343	manage.py dbshell fails to launch mysql for unix socket	elyon001@…	nobody	"'''settings.py'''[[BR]]

database_engine = 'mysql'[[BR]]

database_host = '/var/lib/mysql/mysql.sock'[[BR]]

other fields omitted for this ticket.




{{{
python manage.py dbshell

ERROR 2005 (HY000): Unknown MySQL server host '/var/lib/mysql/mysql.sock' (1)
}}}





{{{
mysql -u root -h /var/lib/mysql/mysql.sock

ERROR 2005 (HY000): Unknown MySQL server host '/var/lib/mysql/mysql.sock' (1)

}}}



The socket file for connection is specified with the -S option of mysql executable

django is able to connect to the database normally and created my tables via syncdb, admin app can see my tables.


{{{
>>> import django


>>> django.VERSION

(1, 1, 1, 'final', 0)


>>> print sys.version

2.4.3 (#1, Sep  3 2009, 15:37:12) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]
}}}


"		closed	Core (Management commands)	1.1		fixed	dbshell mysql		Ready for checkin	1	0	0	0	0	0
