MySQL Forums
Forum List  »  Connector/C++

Re: Problems installing MySQL++ wrapper for C++ language
Posted by: Rupert Bruce
Date: March 06, 2007 06:59PM

To get started, you need to 'cd' into the mysql++ directory and type
That builds a makefile configured for your system.

Then you want to 'make' the mysql++ code into libraries you can use. Type

then you need to install those libraries where the developers intended them to be. First log in as root/SuperUser by typing 'su' and your root password, then type
make install
the exit will take you out of root/SuperUser so you can breath again !

You should now be ready to use mysql++.

The first step is to set up your database. The mysql++ examples use a database/catalog called 'mysql_cpp_data'. To run the examples in mysql++, first make sure your mysql database is running - on your own system, you can log in as root/SuperUser, 'cd' to /tc/init.d and type
mysqld start

Then follow the instructions on the MySQL Getting Started Guide ( to get your mysql root user set up. From that point on, I'd recommend using the 'MySQL Administrator' application to add the 'mysql_cpp_data' catalog and add yourself as a user with full permissions for it (the 'resetdb' app that you run to initialize the database has default settings for your user name and no password to log into the database.

When you have created the 'mysql_cpp_data' catalog and added yourself as a user with full permissions for it, you are ready to run the examples for 'mysql++'. Type
You should see the following:
Connecting to database server...
Dropping existing stock table...
Creating new stock table...
Populating stock table...
Reinitialized sample database successfully.

Then type
You should see the following:
We have:
N├╝rnberger Brats
Pickle Relish
Hot Mustard
Hotdog Buns

Good luck !

Options: ReplyQuote

Written By
Re: Problems installing MySQL++ wrapper for C++ language
March 06, 2007 06:59PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.