Simple c++ program with mysql DataBase connection using Eclipse on Ubuntu - c++

So, the title says it all.
How can i create a simple c++ application on ubuntu and connect it to a simple mysql DataBase?
Is there a good link or description that I can go with ?
I want to make a simple web service for now and then make it more complex to fit my needs and embbed my c++ code that I already got.
I am using Ubuntu 12.04 LTS.
Thanks in advance.

Related

Superset stability on windows linux subsystem

We have been using JasperReports (community edition) and its working fine. But we need to implement interactive reports (which are not supported by community edition)
I have been looking for a simple solution for my reports and came across apache superset. I have installed the superset on Windows linux subsystem (we are a windows shop), i have few question and hopefully you guys can answer that:
Is it stable to install superset on windows linux subsystem for production environment?
Can superset works on just plain oracle relation data?
If there are any other open source project i should look into please let me know.
I'm a committer to the Superset project. Unfortunately Superset isn't officially supported on Windows (or even WSL). It may work but the community hasn't created a set of best practices / recommendations here nor is Windows actively tested as part of the development process.
But Superset has been tested against many Linux flavors, so that's probably your best bet.
Also, can you clarify what you mean by "plain oracle relation data"? The Superset community has added the following documentation for working with Oracle SQL databases: https://superset.apache.org/docs/databases/oracle

Using Neo4j database from C++

my problem is I want to use Neo4j database from a C++ program and I read a lot, but still don't know, how can I start.
First I would like to make a connection between Neo4j and C++, and I would like to create nodes from the C++ program.
Anyone have an example code, or can somebody help, how can I start?
For the upcoming binary remoting protocol there's already a driver written in C, see:
page: http://cleishm.github.io/libneo4j-client/
source: https://github.com/cleishm/libneo4j-client
Please note that this will only work on Neo4j 3.0 builds. As of today, milestone-2 is the most current one. Be sure to read the release notes when working with milestones.
There are no current C/C++ Neo4j drivers targeting Neo4j 2.x that I'm aware of. (See Stefan's answer for a C driver targeting the upcoming Neo4j 3.0 release)
However, using the transactional Cypher API endpoint you should be able to use any C++ http client / JSON parser to interact with Neo4j using Cypher.

Visual studio 2010 and Mysql server

I am trying to connect VS2010 and mySQL server to write simple console application.
For 3 days i am trying to set everything up,but no luck.
I have some skills in c++ OOP,but never done anything like this.
So can someone point mi to tutorial or help here ,how to install and prepare all this thing before i could write any code.
i am using:
mysql server 5.6 and
mysql connector c++
Main problem is mysql connector/c++ i followed documentation on their site but it is too hard for me.(what are boosts,Cmake).
I guess you need .NET connector.
http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/7bd1889e-f169-4c14-9a55-7043a5dd8881
http://www.c-sharpcorner.com/UploadFile/65fc13/working-with-mysql-to-visual-studio-2010/

Is there any way to connect to oracle db using simple c++ not vc++ or proc

I am struggling to connect to oracle db using GNU C++.Is there any library which I have to install to connect to oracle db using simple c++ (oops).
Please provide me some sample code as well, this is new for me. Appreciate your help.
I asked a similar question before but forgot to mention that I am not using vc++ and proc.
You would need the oracle C++ libraries (OCCI) from oracle. You can find them here:
http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html
Google "Oracle OCCI tutorial" and you should find pretty much everything you need.
Check out SOCI. It supports several database backends, including Oracle, MySQL, Postgre, ODBC, etc. Using this library would make it easier for you to migrate your application to a different DB, if necessary.
There's a code sample here. And several more peppered in the documentation.

Connecting to oracle database using C++, the basics

i have a question about the theory here, i'm just starting a project which is based on C++ applications integrating with oracle DB's, i've came to two choices, OCCI, and OCI
the OCCI is said to be aimed at C++ environment, but i was wondering, if it would be any good to use the OCI libraries from my C++ app since it is said to have better performance, or would i run into compatibility issues ?
thanks in advance :)
You can have a look at OTL it's a wrapper above the OCI or OCCI (not sure) will give some templates and samples to start with oracle connection in c++.
In my case, my company have about a thousand stores.
To connect Oracle / Oracle thru an MS C++ multi-thread service we perform the following tests on each thread:
Validate DNS (gethostbyname)
Try to open SCManager of the store (OpenSCManager)
Verify if Oracle Service exists on the store (OpenService)
Verify if Oracle Service is running (QueryServiceStatus)
After all, we try to connect (ado->Open)
This procedures minimize possible errors like 0xE06D7363 when connecting to a external server.