[ library(mysql) | ]
sql_login(+Database, +Username, +Password)
Connect to a database
- Database
- Atom or string
- Username
- Atom or string
- Password
- Atom or string
Description
Connects the user Username to Database, which must be on the same
host machine. The predicate fails if the connection could not be
established. In this case, the reason can be determined via
sql_lastmsg/3.
Fail Conditions
Connection could not be established
Resatisfiable
no
Examples
?- sql_login('my_database','testuser','geheim').
yes.
See Also
sql_login / 4, sql_logout / 0