Setting the active database using mysql C API

how do I set the active database after logging in
1
2
mysql_real_connect( conn, "localhost", "username", "password", NULL, 0, NULL, 0 );
mysql_query( conn, "create database test" );


after this, now that the database is created, how can I set the active database to be test?
Last edited on
Topic archived. No new replies allowed.