1

[SOLVED] Mysql connection problem

view story
linux-howto

http://www.linuxquestions.org – I'm tryng to write a simple program c++ to connect to Mysql database based in my 127.0.0.1 server: int main (void) { cout << "\033[2J" << "\033[0;0f"; MYSQL mysql; MYSQL *conn; conn = mysql_init(&mysql); cout << "conn = " << conn << "\n"; // cout << "mysql = " << &mysql; int mysql_ping(MYSQL *mysql); if (!mysql_real_connect(conn, host, db_user, db_pass, database, 0, NULL, 0)) { fprintf(stderr, "Errore di conne (HowTos)