you didn't tell us your actual problem, you just said you are not able to see data. You can have connection problem, you can have Query problem.
Few Issues you need to know:
1. You are not using
phpmyadmin sql as your database. you are using MySQL as your database.
2. Your cout will display only the first variable
3. When you declare name space you actually dont need to use std::cout, cout only is enough.
4. They way you defined and connected mysql is not wrong but not appropriate. follow the code below:
MYSQL *conn;
if (!mysql_real_connect(conn, server,
user, password, database, 0, NULL, 0)) {
exit(1);
}
5. user and host permission issue. make sure your mysql has a permitted host and user. i.e., your user may not have permission to connect with mysql database from ip: 192.168.49.131. ensure permission