Establishing a Connection
The objects available within our connector are accessible from the "cdata.informix" module. To use the module's objects directly:
- Import the module as follows:
import cdata.informix as mod
- To establish a connection string, call the connect() method from the connector object using an appropriate connection string, such as:
mod.connect("Server=10.0.1.2;Port=50000;User=admin;Password=admin;Database=test")
Connecting to Informix
Set the following properties to connect to Informix:- Server: Set this to the name of the server running Informix.
- Port: Set this to the port the Informix server is listening on.
- Database: Set this to the name of the Informix database.
- User: Set this to the username of a user allowed to access the database.
- Password: Set this to the password of a user allowed to access the database.