if (mysql_real_connect(connection, NULL, NULL, NULL,
"bigcpp", NULL, 0, NULL) == NULL)
If you need to connect to a remote database or a database with multiple users, change the first three NULL arguments to strings denoting the host server, the database user name, and the password
g++ -o execsql -I /usr/local/mysql/include execsql.cpp
-L /usr/local/mysql/lib -lmysqlclient -lz
execsql < test.sql
The program should print Romeo, the same output as with the first database test. If this test passes, then you are ready to run the programs of the next section.
If your program doesn't work, there are several possible causes.