[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problems with mysql interface
From: |
Duncan Patton a Campbell |
Subject: |
Problems with mysql interface |
Date: |
Tue, 24 Jan 2006 13:00:23 -0700 |
Howdy?
I've built gprolog on a Suse box,
carlospc:/usr/local/tars # uname -a
Linux carlospc 2.6.11.4-20a-smp #1 SMP Wed Mar 23 21:52:37 UTC 2005 i686 i686
i386 GNU/Linux
running gcc 3.3.5
carlospc:/usr/local/tars # gcc --version
gcc (GCC) 3.3.5 20050117 (prerelease) (SUSE Linux)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Everything works as normal, but when I run anything against the mysql libs
(4.1.6) nothing works...
carlospc:/usr/local/gprolog-1.2.19/Dlib/Psql # ./mysql-cg*
GNU Prolog 1.2.19
By Daniel Diaz
Copyright (C) 1999-2005 Daniel Diaz
| ?-
carlospc:/usr/local/gprolog-1.2.19/Dlib/Psql #
carlospc:/usr/local/gprolog-1.2.19/Dlib/Psql # ./mysql-cg*
GNU Prolog 1.2.19
By Daniel Diaz
Copyright (C) 1999-2005 Daniel Diaz
| ?- sql_connect("localhost", "OVUSER", "OVPASS", "cdex").
uncaught exception: error(system_error(mysql_connect_failure),sql_connect/4)
| ?-
carlospc:/usr/local/gprolog-1.2.19/Dlib/Psql # ./mysqlwrap
GNU Prolog 1.2.19
By Daniel Diaz
Copyright (C) 1999-2005 Daniel Diaz
| ?- sql_init(X), assertz( sql( X ) ).
Calling mysql_init
mysql_init() => 0x8272fb8
*address = 136785848
X = 136785848
(3 ms) yes
| ?- sql( X ), sql_real_connect( X, 'localhost', 'OVUSER', 'OVPASS', Y).
Calling mysql_real_connect( 0x8272fb8, localhost, OVUSER, OVPASS )
uncaught exception: error(system_error('trouble in
sql_real_connect.'),sql_real_connect/5)
| ?-
Does anyone here know what might be causing this?
Thanks,
Dhu
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Problems with mysql interface,
Duncan Patton a Campbell <=