Re: Problems installing MySQL++ wrapper for C++ language
To get started, you need to 'cd' into the mysql++ directory and type
./configure
That builds a makefile configured for your system.
Then you want to 'make' the mysql++ code into libraries you can use. Type
make
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
exit
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 (http://dev.mysql.com/tech-resources/articles/mysql_intro.html) 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
./resetdb
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
./simple1
You should see the following:
We have:
Nürnberger Brats
Pickle Relish
Hot Mustard
Hotdog Buns
Good luck !
Subject
Views
Written By
Posted
6246
February 22, 2007 10:57AM
3590
February 23, 2007 05:43AM
3569
February 23, 2007 06:52AM
3628
February 23, 2007 08:35AM
3660
February 23, 2007 08:53AM
3046
February 23, 2007 09:21AM
3714
February 23, 2007 09:43AM
Re: Problems installing MySQL++ wrapper for C++ language
4820
March 06, 2007 06:59PM
3705
March 20, 2007 05:13AM
4441
May 26, 2008 02:58PM
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.