Very good.
Did you make sure the connection is made before the datatable is created?but the error is the same as i have posted earlier. it comes with two simultneous exclamations saying: "An error occured while accessing the database"
and then followed by that series of QSqlRecord.... (just see the previous to previous post)
Because it's not enough to compile the driver against the proper library. The linker must be able to find the library when running the application. I already gave you some info about it earlier in this thread.one more thing.
my-sql devel package has installed( i think) the files i.e. mysqlclient.so and all similar ones in folder /usr/lib/mysql
now notice this :
when i compile the driver with the qmake command as follows :
qmake -o Makefile "INCLUDEPATH+=/usr/local/mysql/include" "LIBS+=-L /usr/lib/mysql -lmysqlclient" mysql.pro
i.e. i give the library path of /usr/lib/mysql
the driver is formed. ok. but qt as usual crashed as our previous problem and all the programs gives relocation error as previously.
Add it to your profile (for example in /etc/profile.d/).1). i have to set qtdir path everytime i restart. how to avoid it?
Well... cd to the directory where examples are ($QTDIR/examples maybe?), compile them and run them.2). as u were telling, how to run examples as qt3? the older version on my system is qt-3.1 and the new is qt-3.3.0.
I don't know. Running the examples is to verify that.3). if the preview form can show the database contents then why is the error coming of accessing the database when i run the exe?
I'm sorry, this is a Qt forum, not a Linux-system-usage-howto one. Refer to your system manual for details on creating softlinks.4). in ur previous post u were telling about single and multi thread. how to set those better and worse options?
The bottom line is - I can't guide you through a custom installation of MySQL on your system. I advise you to find proper RPMs to install the dbms using regular methods which will prepare your system to using the library. If you persist on doing a custom installation - you have to do it on your own (or refer to a mysql-related site).
Bookmarks