MySQL 9.5 C API Developer Guide / ... / C API Basic Interface / C API Basic Function Descriptions / mysql_drop_db()
intmysql_drop_db(MYSQL *mysql, const char *db) Drops the database named by thedb parameter.
This function is deprecated. Usemysql_real_query() ormysql_query() to issue an SQLDROP 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.