If you're using the version installed via your OS's package manager, the MySQL plugin will be an installable module you can select and install with a few clicks. Sorry, not an Ubuntu user so I can't tell you specifically what to run to do the job. Maybe apt-get, I'm not sure.
Be advised that the MySQL driver provided with Qt 4.5 appears to be buggy and broken (apparently tries to execute all queries first as 'prepared queries' and does not correctly fall back for queries unsupported by the 'prepared' protocol -- you wind up getting MySQL 1295 errors from QSqlQuery::lastError() when there should be no error).
If you are going to do MySQL work with Qt for now I would encourage you to ditch 4.5 and fall back to 4.4.3. Installation isn't that hard and only requires you set your path to its bindir to use.
The following worked for me:
as regular user
./configure -qt-sql-mysql -system-sqlite
./configure -qt-sql-mysql -system-sqlite
To copy to clipboard, switch view to plain text mode
as regular user
make
make
To copy to clipboard, switch view to plain text mode
as root
make install
make install
To copy to clipboard, switch view to plain text mode
Bookmarks