Oracle 5.0 Reference Manual page 2166

Table of Contents

Advertisement

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.
ER_UNKNOWN_COM_ERROR
The MySQL server doesn't implement this command (probably an old server).
ER_ACCESS_DENIED_ERROR
The user or password was wrong.
ER_BAD_DB_ERROR
The database didn't exist.
ER_DBACCESS_DENIED_ERROR
The user did not have access rights to the database.
ER_WRONG_DB_NAME
The database name was too long.
Example
if (mysql_change_user(&mysql, "user", "password", "new_database"))
{
fprintf(stderr, "Failed to change user.
}
20.6.6.4.
mysql_character_set_name()
const char *mysql_character_set_name(MYSQL *mysql)
Description
Returns the default character set name for the current connection.
Return Values
The default character set name
Errors
None.
20.6.6.5.
mysql_close()
void mysql_close(MYSQL *mysql)
Description
Closes a previously opened connection.
handle pointed to by
mysql_connect().
C API Function Descriptions
[2942]
[2941]
[2914]
[2913]
[2914]
[2917]
mysql_error(&mysql));
if the handle was allocated automatically by
mysql
[2913]
Error: %s\n",
mysql_close()
2146
also deallocates the connection
mysql_init()
or

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents