Terminal wont run my program

I currently have 2 virtual machines running, one is a server and one is a client. They are both running Ubuntu. I created a C++ program to connect to a MYSQL server. When i open up a terminal in the server VM, the c++ program compiles and runs PERFECTLY!

BUT, when I try to run it on the client, it wont work at all. The code compiles perfectly fine but when i type "./main" to start the program, NOTHING comes up. It's just a blank screen. I totally do not get why this is happening. The code is exactly the same on both the client and the server, but for some reason, it wont display ANY of my code when I run it on the client side.

PLEASE all help is greatly appreciated!
do you have the same set up on both machines? it would help if you told us what the program is
what the program spossed to do once it connects to the MySQL data base? the code could connect to the database and that's it. explain a little more what the code is spossed to do.
Topic archived. No new replies allowed.