You have a few errors. One, is the constructor declaration
MySqlInstance(string,string,string,port);
You probably mean
MySqlInstance(string,string,string,int);
Then, the definition, you have the type of port
wrong:
MySqlInstance::MySqlInstance(string user,string pass,string sock,string port) { .... }
// ^ should be int
Then, the class name
class MyqllInstance { .... };
should be
class MySqlInstance { .... };
Then, you are using MySQlInstance
in main
but your class is MySqlInstance
.
Remember, C++ is not case insensitive.
Finally, do not put using namespace std
in a header file. In fact, do not put it anywhere.