I'm not sure if you can use QMYSQL to connect to an embed database server. How do you do it from plain C+libmysqlclient?