<?php
return [
    //常见的服务器错误代码及说明
    "1004" => "无法创建文件",
    "1005" => "无法创建数据表、创建表失败",
    "1006" => "无法创建数据库、创建数据库失败",
    "1007" => "无法创建数据库，数据库己存在",
    "1008" => "无法删除数据库，数据库不存在",
    "1009" => "不能删除数据库文件导致删除数据库失败",
    "1010" => "不能删除数据目录导致删除数据库失败",
    "1011" => "删除数据库文件时出错",
    "1012" => "无法读取系统表中的记录",
    "1013" => "无法获取的状态",
    "1014" => "无法获得工作目录",
    "1015" => "无法锁定文件",
    "1016" => "无法打开文件",
    "1017" => "无法找到文件",
    "1018" => "无法读取的目录",
    "1019" => "无法为更改目录",
    "1020" => "记录已被其它用户修改",
    "1021" => "硬盘剩余空间不足，请加大硬盘可用空间",
    "1022" => "关键词重读，更改记录失败",
    "1023" => "关闭时发生错误",
    "1025" => "更改名字时发生错误",
    "1032" => "记录不存在",
    "1036" => "数据表是只读的，不能对它进行修改",
    "1037" => "系统内存不足，请重启数据库或重启服务器",
    "1042" => "无效的主机名",
    "1044" => "当前用户没有访问数据库的权限",
    "1045" => "无法连接数据库，用户名或密码错误",
    "1048" => "字段不能为空",
    "1049" => "数据库不存在",
    "1050" => "数据表已存在",
    "1051" => "数据表不存在",
    "1054" => "字段不存在",
    "1064" => "SQL语句错误",
    "1065" => "无效的SQL语句，SQL语句为空",
    "1081" => "无法建立Socket连接",
    "1114" => "数据表已满，无法容纳任何记录",
    "1116" => "打开的数据表太多",
    "1129" => "数据库出现异常，请重启数据库",
    "1130" => "连接数据库失败，没有连接数据库的权限",
    "1133" => "数据库用户不存在",
    "1141" => "当前用户无权访问数据库",
    "1142" => "当前用户无权访问数据表",
    "1143" => "当前用户无权访问数据表中的字段",
    "1146" => "数据表不存在",
    "1147" => "未定义用户对数据表的访问权限",
    "1149" => "SQL语句语法错误",
    "1158" => "网络错误，出现读错误，请检查网络连接状况",
    "1159" => "网络错误，读超时，请检查网络连接状况",
    "1160" => "网络错误，出现写错误，请检查网络连接状况",
    "1161" => "网络错误，写超时，请检查网络连接状况",
    "1062" => "字段值重复，入库失败",
    "1169" => "字段值重复，更新记录失败",
    "1177" => "打开数据表失败",
    "1180" => "提交事务失败",
    "1181" => "回滚事务失败",
    "1203" => "当前用户和数据库建立的连接已到达数据库的最大连接数，请增大可用的数据库连接数或重启数据库",
    "1205" => "加锁超时",
    "1211" => "当前用户没有创建用户的权限",
    "1216" => "外键约束检查失败，更新子表记录失败",
    "1217" => "外键约束检查失败，删除或修改主表记录失败",
    "1226" => "当前用户使用的资源已超过所允许的资源，请重启数据库或重启服务器",
    "1227" => "权限不足，您无权进行此操作",
    "1235" => "MySQL版本过低，不具有本功能",
    //常见的客户端错误代码及说明
    "2000" => "未知 MySQL 错误",
    "2001" => "无法创建 UNIX Socket（%d）",
    "2002" => "无法通过地址 \"%s:%d\" 连接到本地 MySQL 服务器 或 mysql 服务未启动",
    "2003" => "无法连接到 \"%s:%d\" 上的 MySQL 服务器，或 mysql 服务未启动",
    "2004" => "无法创建 TCP/IP 连接（%d）",
    "2005" => "未知的 MySQL 服务器主机\"%s\"（%d）",
    "2007" => "协议不匹配，服务器版本=%d，客户端版本=%d",
    "2008" => "MySQL 客户端内存溢出",
    "2009" => "错误的主机信息",
    "2010" => "通过 UNIX Socket连接的本地主机",
    "2012" => "服务器握手过程中出错",
    "2013" => "查询过程中丢失了与 SQL 服务器的连接",
    "2014" => "命令不同步，该命令无法运行",
    "2024" => "连接到从服务器时出错",
    "2025" => "连接到主服务器时出错",
    "2026" => "SSL 连接错误"
];
