First install four virtual machines on your virtual box. As shown in the picture.
Then , To Make the internal network follow the following step
Select First (ubuntu) machine and go to its settings
Now Go to the network->Adoptor2 the do the following setting.
Follow the same procedure for all four machines.
Make sure that the Name field in the adopter section remains the same (intnet).The name of our network in intent.
Now start the Machines all together. and go to the Network->wired->options the machines as shown below.
Now go to IP4 Settings->Manual and fill the new Addresses setting according to your requirement. And click save
Follow the same procedure for all the machines. Give each machine a different IP according to your network.
Now open the terminal and ping the machine to check they are in network.
If you can ping the other machines successfully then your network is done.
2.Go to Project > Project Name Properties > Add New Reference > Select the Tab .NET
3. Scroll down till you see MySQL.Data then Double Click it or Click it and Press OK then Press OK again (If you don't see it then you cant have the MySQL Connector Installed). 4. Double Click on the Form then Scroll the code till you see using namespace System::Drawing; 5. Below that type using namespace MySql::Data::MySqlClient; 6.Go back to the Form Design and Add a Button to do the connection.So when we click the button , the button will establish the connection to MySQL.
Button means your item!
7.Double click on the Button to go to code section and add the following Code:
Fill in the Port, Username, Password and Hostname with your MySQL Information.
8.Now run the program and see the response in the message box .
Visual C++ Tutorial 2 -Windows Forms Application:
Mysql Connection Part 1
Visual C++ Tutorial 3 -Windows Forms Application: Mysql Connection Part 2
C++ Windows Form Application Mysql Connection
Using Visual C++ Windows Forms with MySQL
C++ Windows Form Application Mysql Connection
Mysql And Visual C++ 2010 Windows Form Application
MySQL :: Connecting to MySQL with a WindowsForm application
C++ Form textbox string into SQL Database
visual c++ CLR windows form application and mysql
$ cd mongo-cxx-driver-nightly/$ scons
If it says to install scons then install scons by the command given below and proceed .
$ sudo apt-get install scons
When the scons build is successful then do scons install by following step
$ sudo scons install
That's all
4. Now to run the sample mongo c++ tutorial.cpp program follow the following commands$ cd /home/mongo-cxx-driver-nightly/src/mongo/client/examples$ g++ tutorial.cpp -pthread -lmongoclient -lboost_thread-mt -lboost_filesystem -lboost_program_options -lboost_system -o tutorial $ ./tutorial
connected OK