Qt connecting to postgreSQL database without configuring ODBC -
i'm trying connect postgresql database without configuring system dsn odbc, i've googled lot , i've tried lot of connection strings didn't work, maybe i'm doing wrong. here 1 of connection strings i've tried:
dbconnectionstring = qstring("driver=postgresqlunicode(x64)}| server="+dbhost+"|port=%1|database="+dbname+"|uid="+username+"|pwd="+password+"|byteaaslongvarbinary=1").arg(port) db.setdatabasename(dbconnectionstring);
any suggestion?
Comments
Post a Comment