[ library(mysql) | ]
sql_login(+Database, +Username, +Password, +Serverhost)
Connect to a database
- Database
- Atom or string
- Username
- Atom or string
- Password
- Atom or string
- Serverhost
- Atom or string
Description
Like sql_login/3, but connects to Database on host Serverhost.
The address of the database server can be given as host name
(e.g. 'myserver.mydomain.com') or IP address (e.g. '192.168.0.10').
Fail Conditions
Connection could not be established
Resatisfiable
no
Examples
?- sql_login('my_database','testuser','geheim','192.168.0.10').
yes.
See Also
sql_login / 3, sql_logout / 0