0

使用 Yap Prolog 6.2.0 和 MySQL 5.1.41,并尝试使用db_open.
http://www.dcc.fc.up.pt/~vsc/Yap/documentation.html#MYDDAS

序言源:

:- use_module(library(myddas)). 

:- trace, db_open(mysql, x, localhost/myschema, web, mypassword),
   write('got it'), nl.

失败的痕迹:

?- db_open(mysql,x,localhost/myschema,web,mypassword).
(1)    call:db_open(mysql,x,localhost/myschema,web,mypassword) ? 
(2)    call:myddas:db_open(mysql,x,localhost/myschema/0/_131406,web,mypassword) ? 
(3)    call:myddas_errors:'$error_checks'(db_open(mysql,x,localhost/myschema/0/_131406,web,mypassword)) ? 
(3)    exit:myddas_errors:'$error_checks'(db_open(mysql,x,localhost/myschema/0/_131406,web,mypassword)) ? 
(4)    call:myddas:c_db_my_connect(localhost,web,mypassword,myschema,0,_131406,_131634) ? 
(4)    fail:myddas:c_db_my_connect(localhost,web,mypassword,myschema,0,_131406,_131634) ? 
(2)    fail:myddas:db_open(mysql,x,localhost/myschema/0/_131406,web,mypassword) ? 
(1)    fail:db_open(mysql,x,localhost/myschema,web,mypassword) ? 
4

1 回答 1

0

似乎需要编译 Yap --enable-myddas --enable-myddas-stats --enable-myddas-top-level
编译它(就像我以前做过的那样,我认为)--enable-myddas --enable-myddas-top-level不起作用。

于 2011-05-17T20:47:14.363 回答