|
|
@ -11,7 +11,7 @@ using namespace marcelb; |
|
|
|
int main() { |
|
|
|
int main() { |
|
|
|
try { |
|
|
|
try { |
|
|
|
// MySQL mydb("tcp://192.168.2.10:3306", "dinio", "H€r5elfInd1aH@nds", "dinio", 1);
|
|
|
|
// MySQL mydb("tcp://192.168.2.10:3306", "dinio", "H€r5elfInd1aH@nds", "dinio", 1);
|
|
|
|
MySQL mydb("tcp://192.168.2.10:3306", "dinio", "H€r5elfInd1aH@nds", "dinio", 5); |
|
|
|
MySQL mydb("tcp://bitelex.ddns.net:3306", "dinio", "H€r5elfInd1aH@nds", "dinio", 5); |
|
|
|
|
|
|
|
|
|
|
|
sleep(2); |
|
|
|
sleep(2); |
|
|
|
|
|
|
|
|
|
|
@ -115,6 +115,10 @@ int main() { |
|
|
|
cout << get<0>(row) << " " << get<1>(row) << endl; |
|
|
|
cout << get<0>(row) << " " << get<1>(row) << endl; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (auto column_name : response.columns_name) { |
|
|
|
|
|
|
|
cout << column_name << endl; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} catch (const string err) { |
|
|
|
} catch (const string err) { |
|
|
|
cout << err << endl; |
|
|
|
cout << err << endl; |
|
|
|
} |
|
|
|
} |
|
|
|