I am trying to use turbogears on a linux box and am running into
problems. Can anyone offer any ideas on how to debug the issue. I
have tried this with active python 2.4 and python 2.4. In both cases
turbo gears cannot connect to my db. Even wrote a two line python
script and that fails as well.
I have tried it with 127.0.0.1, the fully qualified dns name and
localhost. All with the same issue...
Any help would be greatly appreciated.
-- Environment -----------------------------------
Linux version 2.4.9-e.65 ([EMAIL PROTECTED]) (gcc
version 2.96 20000731 (Red Hat Linux 7.2 2.96-129.7.2))
ActiveState PYthon 2.4.2 Build 248
Python.org Python 2.4.2
MySQL-python-1.2.0
-- Script -----------------------------------
import _mysql
db=_mysql.connect("127.0.0.1","test2","mypassword","mydb")
-- Result -----------------------------------
db=_mysql.connect("127.0.0.1","test2","mypassword","mydb")
_mysql_exceptions.OperationalError: (2003, "Can't connect to MySQL
server on '127.0.0.1' (111)")
-- Note -----------------------------------
I did have some problems building the mysql driver, but when I did this
by hand it compiled properly. (I have a feeling that this is the core
reason)
Error:
building '_mysql' extension
creating build/temp.linux-i686-2.4
gcc -pthread -fno-strict-aliasing -fPIC -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -fPIC
-I/usr/local/ActivePython-2.4/include/python2.4 -c _mysql.c -o
build/temp.linux-i686-2.4/_mysql.o -I'/usr/include/mysql'
_mysql.c:41:19: mysql.h: No such file or directory
_mysql.c:42:26: mysqld_error.h: No such file or directory
_mysql.c:43:20: errmsg.h: No such file or directory
error: command 'gcc' failed with exit status 1