qdot
qdot

Reputation: 6335

QtSql create mysql database

Is there a way to connect to the database server without specifying a database?

I would like to be able to create a database if it's missing - but the QtSql drivers require some database to connect to.

Upvotes: 2

Views: 629

Answers (1)

Wolph
Wolph

Reputation: 80081

That is because your database server also requires that.

By default MySQL has a database called "mysql" which you can use as a default though.

Upvotes: 2

Related Questions