I am creating a C++ application the uses a MySQL database. I would like the application to create an account for itself, if possible. I have not found a method to do so.
Everytime I port my application, I forget the set up sequence. The current set up sequence requires creating an account in MySQL for the application to use. Once the application has an account and privileges, it can create the database and set up the tables.
Also, this would be a bit annoying for my end users. My application would be easier to use if the application could perform all of the set up.
The examples I have found all state to create a user account in MySQL first before running the application. The directions usually tell how to create the account using the MySQL Command Line application. But I want my application to create its own account in MySQL.
I am using Visual Studio 2008, C++ language, and the MySQL Connector C++ 1.0.5. The platform is Windows XP or Vista. The connector uses similar API to the Java JDBC API. I'll accept examples in Java or C++.
BTW, I was having problems using ODBC, so it is out of the question.
Thanks.