ProjectHax

ProjectHax General Programming

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 08-19-2011
WeeMan WeeMan is offline
Administrator
 
Join Date: Apr 2011
Location: United States
Posts: 12,358
Default Compiling MySQL++ on Debian

1.
apt-get update
apt-get upgrade
apt-get install build-essential mysql-server mysql-client libmysqlclient-dev

2. Download the latest version using wget or curl
http://tangentsoft.net/mysql++/

3. Extract the tar.gz

4. cd to the newly created folder

5. ./configure --enable-thread-check

6. make && make install

If you have a 'genv2.cpp' error you need to add
Code:
#include <string.h>
#include <cstring>
to 'ssx/genv2.cpp'

7. ldconfig
__________________
New forum coming soon!
https://forum.projecthax.com/t/welcome/37
  #2  
Old 10-17-2011
WeeMan WeeMan is offline
Administrator
 
Join Date: Apr 2011
Location: United States
Posts: 12,358
Default

Enabling SSL support:
Follow this guide to the letter: http://www.waterlovinghead.com/MysqlSSL

You can use this as the connection string.
Code:
connection->set_option(new mysqlpp::SslOption("C:\\cert\\client-key.pem", "C:\\cert\\client-cert.pem", "C:\\cert\\ca-cert.pem", "C:\\cert", "DHE-RSA-AES256-SHA"));
Just change the path and you should be good to go. Make sure you test it with Wireshark.

This does not appear to work properly on Linux. Debian Squeeze is missing something crucial in one of the MySQL development libraries. It does not allow MySQL++ to use SSL. This is the thread I made on stackoverflow.com http://stackoverflow.com/questions/7...pport-on-linux. Install bakefile and automake if you want to run bootstrap to recompile MySQL++.
__________________
New forum coming soon!
https://forum.projecthax.com/t/welcome/37
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian Dante Server (SOCKS) WeeMan Miscellaneous 0 06-26-2011 07:03 PM


All times are GMT. The time now is 08:12 PM.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.

Google+ Facebook Twitter