#include "messages.h"#include <my_global.h>#include <mysql_com.h>#include "mysqld_error.h"#include "mysql_manager_error.h"Include dependency graph for messages.cc:

Go to the source code of this file.
Functions | |
| static const char * | mysqld_error_message (unsigned sql_errno) |
| const char * | message (unsigned sql_errno) |
| const char * | errno_to_sqlstate (unsigned sql_errno) |
| const char* errno_to_sqlstate | ( | unsigned | sql_errno | ) |
Definition at line 102 of file messages.cc.
References mysql_errno_to_sqlstate().
Referenced by net_send_error().
00103 { 00104 return mysql_errno_to_sqlstate(sql_errno); 00105 }
Here is the call graph for this function:

Here is the caller graph for this function:

| const char* message | ( | unsigned | sql_errno | ) |
Definition at line 96 of file messages.cc.
References mysqld_error_message().
Referenced by net_send_error(), net_send_error_323(), yaSSL::DH_Server::read(), and select_describe().
00097 { 00098 return mysqld_error_message(sql_errno); 00099 }
Here is the call graph for this function:

Here is the caller graph for this function:

| static const char* mysqld_error_message | ( | unsigned | sql_errno | ) | [static] |
Definition at line 26 of file messages.cc.
References DBUG_ASSERT, ER_ACCESS_DENIED_ERROR, ER_ACCESS_OPTION_FILE, ER_BAD_INSTANCE_NAME, ER_CANNOT_START_INSTANCE, ER_CONF_FILE_DOES_NOT_EXIST, ER_CREATE_EXISTING_INSTANCE, ER_DROP_ACTIVE_INSTANCE, ER_GUESS_LOGFILE, ER_HANDSHAKE_ERROR, ER_INCOMPATIBLE_OPTION, ER_INSTANCE_ALREADY_STARTED, ER_INSTANCE_IS_ACTIVE, ER_INSTANCE_IS_NOT_STARTED, ER_INSTANCE_MISCONFIGURED, ER_MALFORMED_INSTANCE_NAME, ER_NO_SUCH_LOG, ER_NOT_SUPPORTED_AUTH_MODE, ER_OFFSET_ERROR, ER_OPEN_LOGFILE, ER_OUT_OF_RESOURCES, ER_READ_FILE, ER_STOP_INSTANCE, ER_SYNTAX_ERROR, ER_THERE_IS_ACTIVE_INSTACE, and ER_UNKNOWN_COM_ERROR.
Referenced by message().
00027 { 00028 switch (sql_errno) { 00029 case ER_HANDSHAKE_ERROR: 00030 return "Bad handshake"; 00031 case ER_OUT_OF_RESOURCES: 00032 return "Out of memory; Check if mysqld or some other process" 00033 " uses all available memory. If not you may have to use" 00034 " 'ulimit' to allow mysqld to use more memory or you can" 00035 " add more swap space"; 00036 case ER_ACCESS_DENIED_ERROR: 00037 return "Access denied. Bad username/password pair"; 00038 case ER_NOT_SUPPORTED_AUTH_MODE: 00039 return "Client does not support authentication protocol requested by" 00040 " server; consider upgrading MySQL client"; 00041 case ER_UNKNOWN_COM_ERROR: 00042 return "Unknown command"; 00043 case ER_SYNTAX_ERROR: 00044 return "You have an error in your command syntax. Check the manual that" 00045 " corresponds to your MySQL Instance Manager version for the right" 00046 " syntax to use"; 00047 case ER_BAD_INSTANCE_NAME: 00048 return "Bad instance name. Check that the instance with such a name exists"; 00049 case ER_INSTANCE_IS_NOT_STARTED: 00050 return "Cannot stop instance. Perhaps the instance is not started, or was" 00051 " started manually, so IM cannot find the pidfile."; 00052 case ER_INSTANCE_ALREADY_STARTED: 00053 return "The instance is already started"; 00054 case ER_CANNOT_START_INSTANCE: 00055 return "Cannot start instance. Possible reasons are wrong instance options" 00056 " or resources shortage"; 00057 case ER_OFFSET_ERROR: 00058 return "Cannot read negative number of bytes"; 00059 case ER_STOP_INSTANCE: 00060 return "Cannot stop instance"; 00061 case ER_READ_FILE: 00062 return "Cannot read requested part of the logfile"; 00063 case ER_NO_SUCH_LOG: 00064 return "The instance has no such log enabled"; 00065 case ER_OPEN_LOGFILE: 00066 return "Cannot open log file"; 00067 case ER_GUESS_LOGFILE: 00068 return "Cannot guess the log filename. Try specifying full log name" 00069 " in the instance options"; 00070 case ER_ACCESS_OPTION_FILE: 00071 return "Cannot open the option file to edit. Check permissions"; 00072 case ER_DROP_ACTIVE_INSTANCE: 00073 return "Cannot drop an active instance. You should stop it first"; 00074 case ER_CREATE_EXISTING_INSTANCE: 00075 return "Instance already exists"; 00076 case ER_INSTANCE_MISCONFIGURED: 00077 return "Instance is misconfigured. Cannot start it"; 00078 case ER_MALFORMED_INSTANCE_NAME: 00079 return "Malformed instance name."; 00080 case ER_INSTANCE_IS_ACTIVE: 00081 return "The instance is active. Stop the instance first"; 00082 case ER_THERE_IS_ACTIVE_INSTACE: 00083 return "At least one instance is active. Stop all instances first"; 00084 case ER_INCOMPATIBLE_OPTION: 00085 return "Instance Manager-specific options are prohibited from being used " 00086 "in the configuration of mysqld-compatible instances"; 00087 case ER_CONF_FILE_DOES_NOT_EXIST: 00088 return "Configuration file does not exist"; 00089 default: 00090 DBUG_ASSERT(0); 00091 return 0; 00092 } 00093 }
Here is the caller graph for this function:

1.4.7

