MySQL 8.0 C API Developer Guide
int
mysql_create_db(MYSQL *mysql,
                const char *db)
          Creates the database named by the db
          parameter.
        
          This function is deprecated. Use
          mysql_real_query() or
          mysql_query() to issue an SQL
          CREATE 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.