What database you want to connect to? Judging from the port, it's MySQL, so most likely you have to use QMYSQL driver.
What database you want to connect to? Judging from the port, it's MySQL, so most likely you have to use QMYSQL driver.
QSQLITE always works because it doesn't connect to a remote database, but creates a local one on your computer. See http://www.sqlite.org/ for more info on SQLite.
As Jacek says you need to know what kind of database you're trying to connect to. Is it PostgreSql or MySql or something else? And you need to set the correct port as well, unless the database uses its default port.
If it's a MySql database as the port number suggests (3306) you need to build the QMYSQL driver and use this.
Last edited by mm78; 24th May 2007 at 19:20.
Bookmarks