Oracle 5.0 Reference Manual page 2169

Table of Contents

Advertisement

Description
Does a
DBUG_PUSH
this function, you must compile the client library to support debugging. See
Other
Systems.
Return Values
None.
Errors
None.
Example
The call shown here causes the client library to generate a trace file in
client machine:
mysql_debug("d:t:O,/tmp/client.trace");
20.6.6.11.
mysql_drop_db()
int mysql_drop_db(MYSQL *mysql, const char *db)
Description
Drops the database named by the
This function is deprecated. It is preferable to use
statement instead.
Return Values
Zero if the database was dropped successfully. Nonzero if an error occurred.
Errors
CR_COMMANDS_OUT_OF_SYNC
Commands were executed in an improper order.
CR_SERVER_GONE_ERROR
The MySQL server has gone away.
CR_SERVER_LOST
The connection to the server was lost during the query.
CR_UNKNOWN_ERROR
An unknown error occurred.
Example
if(mysql_drop_db(&mysql, "my_database"))
fprintf(stderr, "Failed to drop the database: Error: %s\n",
mysql_error(&mysql));
20.6.6.12.
mysql_dump_debug_info()
int mysql_dump_debug_info(MYSQL *mysql)
C API Function Descriptions
with the given string.
mysql_debug()
parameter.
db
[2942]
[2942]
[2942]
[2941]
uses the Fred Fish debug library. To use
mysql_query()
2149
MySQL Internals: Porting to
/tmp/client.trace
to issue an SQL
DROP DATABASE
on the

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents