MySQL 9.4 C API Developer Guide / ... / C API Basic Interface / C API Basic Function Descriptions / mysql_create_db()
intmysql_create_db(MYSQL *mysql, const char *db) Creates the database named by thedb parameter.
This function is deprecated. Usemysql_real_query() ormysql_query() to issue an SQLCREATE DATABASE statement instead.
Commands were executed in an improper order.
The MySQL server has gone away.
The connection to the server was lost during the query.
An unknown error occurred.