<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>生活在別處</title>
	<atom:link href="http://www.livingelsewhere.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.livingelsewhere.net</link>
	<description>Know what you really want,what you need,what is just for you,try your best and catch it. 只要有心开始，改变或寻梦永远不嫌太迟。</description>
	<lastBuildDate>Thu, 17 May 2012 06:44:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>fsockopen 异步处理</title>
		<link>http://www.livingelsewhere.net/2012/05/17/fsockopen-asyn-process/</link>
		<comments>http://www.livingelsewhere.net/2012/05/17/fsockopen-asyn-process/#comments</comments>
		<pubDate>Thu, 17 May 2012 06:44:17 +0000</pubDate>
		<dc:creator>Summer</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP 技术]]></category>

		<guid isPermaLink="false">http://www.livingelsewhere.net/?p=1682</guid>
		<description><![CDATA[前面参与一项目，逻辑处理比较多，所以采用异步处理。 因为之前采用异步处理时 Web 服务器是 Apache，而这次测试时也是，到把代码更新到服务器上时，执行死活不成功。折腾一番之后，才记起服务器上的 Web 服务器是 Nginx。试着从这个角度查找原因，找到如下这篇文章： FROM: 有关fsockopen相关随笔 测试环境，从本机（Windows）访问内外一台 Linux 服务器（此服务器装的是 Nginx）。 index.php 代码： &#60;?php echo 1; ?&#62; 1 使用HTTP 1.1 协议请求 function asyn_sendmail() { $ip = '192.168.1.45'; $url = '/index.php'; $fp = fsockopen($ip, 80, $errno, $errstr, 5); if (!$fp) { echo &#34;$errstr ($errno)&#60;br /&#62;\n&#34;; } $end = &#34;\r\n&#34;; $input = &#34;GET $url [...]]]></description>
			<content:encoded><![CDATA[<p>前面参与一项目，逻辑处理比较多，所以采用异步处理。</p>
<p>因为之前采用异步处理时 Web 服务器是 Apache，而这次测试时也是，到把代码更新到服务器上时，执行死活不成功。折腾一番之后，才记起服务器上的 Web 服务器是 Nginx。试着从这个角度查找原因，找到如下这篇文章：</p>
<p><b>FROM: </b><a href="http://www.cnblogs.com/mxw09/archive/2011/12/30/2307019.html">有关fsockopen相关随笔</a></p>
<p>测试环境，从本机（Windows）访问内外一台 Linux 服务器（此服务器装的是 Nginx）。<br />
index.php 代码：</p>
<pre class="brush: php; title: ;">
&lt;?php
    echo 1;
?&gt;
</pre>
<h3 id="toc-1-http-1-1-">1 使用HTTP 1.1 协议请求</h3>
<pre class="brush: php; title: ;">
function asyn_sendmail() {
    $ip = '192.168.1.45';
    $url = '/index.php';
    $fp = fsockopen($ip, 80, $errno, $errstr, 5);
    if (!$fp) {
        echo &quot;$errstr ($errno)&lt;br /&gt;\n&quot;;
    }

    $end = &quot;\r\n&quot;;
    $input = &quot;GET $url HTTP/1.1$end&quot;;
    //如果不加下面这一句,会返回一个 HTTP400 错误
    //$input.=&quot;Host: $ip$end&quot;;
    //如果不加下面这一句,请求会阻塞很久
    //$input.=&quot;Connection: Close$end&quot;;
    $input.=&quot;$end&quot;;
    fputs($fp, $input);
    $html = '';
    while (!feof($fp)) {
        $html.=fgets($fp);
    }
    fclose($fp);
    writelog($html);
    echo $html;
}

function writelog($message) {
    $path = 'log.txt';
    $handler = fopen($path, 'w+b');
    if ($handler) {
        $success = fwrite($handler, $message);
        fclose($handler);
    }
}
asyn_sendmail();
</pre>
<p>如果注释了 <code>$input.="Host: $ip$end";</code> 这一句，则会得到一个 404 错误，log.txt 内容如下:</p>
<pre class="code">
HTTP/1.1 400 Bad Request
Server: nginx/0.8.46
Date: Fri, 30 Dec 2011 02:11:45 GMT
Content-Type: text/html
Content-Length: 173
Connection: close

&lt;html&gt;
&lt;head&gt;&lt;title&gt;400 Bad Request&lt;/title&gt;&lt;/head&gt;
&lt;body bgcolor="white"&gt;
&lt;center&gt;&lt;h1&gt;400 Bad Request&lt;/h1&gt;&lt;/center&gt;
&lt;hr&gt;&lt;center&gt;nginx/0.8.46&lt;/center&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p><span class="red">说明：</span>使用 HTTP 1.1 连接，则必须加上 Host请 求表头。<br />
如果加上了没有注释 <code>$input.="Host: $ip$end";</code> 这一句 ，则请求成功，log.txt 内容如下：</p>
<pre class="code">
HTTP/1.1 200 OK
Server: nginx/0.8.46
Date: Fri, 30 Dec 2011 02:20:49 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Accept-Encoding
X-Powered-By: PHP/5.3.8

1
0
0
</pre>
<p>返回成功，但是不明白为什么服务器返回内容多了2个 0 (后来网上查询资料发现，这是因为服务器使用了 chunked 输出所致，用 Wireshark 抓包可清晰看到其细节)。如果不加 <code>$input.="Connection: Close$end";</code> 这一句 ，则 HTTP 请求会阻塞很久(在这一句 <code>fgets($fp)</code> 阻塞)。</p>
<h3 id="toc-2--http-">2 不指定 HTTP 版本</h3>
<pre class="brush: php; title: ;">
&lt;?php
function asyn_sendmail() {
    $ip = '192.168.1.45';
    $url = '/servertimmer/inserttopicshow/13990/AA8AB76B-7280-578F-12F2-F423685FBD26';
    $fp = fsockopen($ip, 80, $errno, $errstr, 5);
    if (!$fp) {
        echo &quot;$errstr ($errno)&lt;br /&gt;\n&quot;;
    }
    $end = &quot;\r\n&quot;;
    $input = &quot;GET $url$end&quot;;
    $input.=&quot;$end&quot;;
    fputs($fp, $input);
    $html = '';
    while (!feof($fp)) {
        $html.=fgets($fp);
    }
    fclose($fp);
    writelog($html);
    echo $html;
}
function writelog($message) {
    $path = 'log.txt';
    $handler = fopen($path, 'w+b');
    if ($handler) {
        $success = fwrite($handler, $message);
        fclose($handler);
    }
}
asyn_sendmail();
?&gt;
</pre>
<p>请求立刻返回，没有阻塞，返回内容如下：</p>
<pre class="code">
1
</pre>
<p><span class="red">注意：</span>返回内容中没有http标头，且没有被阻塞。</p>
<p>参考上面，代码中，发送到头部信息中正是少了第一段中提到的 <code>$input.="Connection: Close$end";</code>，添加上，问题解决。</p>
<p>总结：</p>
<ul>
<li>HTTP 1.0, Apache Web 服务器中 <code>$input.="Connection: Close$end";</code> 与 <code>$input.="Connection: Close$end"</code> 可都不需要。</li>
<li>HTTP 1.0, Nginx Web 服务器中 <code>$input.="Connection: Close$end";</code> 与 <code>$input.="Connection: Close$end"</code> 都必需。</li>
<li>HTTP 1.1, Apache Web 服务器中 <code>$input.="Connection: Close$end";</code> 必须要，<code>$input.="Connection: Close$end"</code> 可不用。</li>
<li>HTTP 1.1, Nginx Web 服务器中 <code>$input.="Connection: Close$end";</code> 与 <code>$input.="Connection: Close$end"</code> 都必需。</li>
</ul>
<p>fsockopen 上采用 POST 方法的代码：</p>
<pre class="brush: php; title: ;">
$domain = &quot;localhost&quot;;
$url = '/tool/async-test.php';
$param = &quot;a=1&amp;b=2&amp;c=3&amp;d=4&quot;;

$header = &quot;POST $url HTTP/1.1\r\n&quot;;
$header .= &quot;Host: $domain\r\n&quot;;
$header .= &quot;Content-Type:application/x-www-form-urlencoded\r\n&quot;;
$header .= &quot;Content-Length:&quot; . strlen($param) . &quot;\r\n\r\n&quot;;
$header .= &quot;Connection: close\r\n&quot;;

$fp = @fsockopen($domain, 80, $errno, $errstr, 30);
fputs($fp, $header.$param);

$html = '';
while (!feof($fp)) {
    $html.=fgets($fp);
}
echo $html;

fclose($fp);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.livingelsewhere.net/2012/05/17/fsockopen-asyn-process/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NODE 发起 POST 请求</title>
		<link>http://www.livingelsewhere.net/2012/05/08/node-sendpost-reqest/</link>
		<comments>http://www.livingelsewhere.net/2012/05/08/node-sendpost-reqest/#comments</comments>
		<pubDate>Tue, 08 May 2012 03:22:47 +0000</pubDate>
		<dc:creator>Summer</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[NODE]]></category>

		<guid isPermaLink="false">http://www.livingelsewhere.net/?p=1667</guid>
		<description><![CDATA[var http = require('http'); var querystring = require('querystring'); var postdata = querystring.stringify({ 'name' : 'a', 'pwd' : '1' }); var options = { host: '172.10.7.228', port: 1337, path: '/login', method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', 'Content-Length': postdata.length } }; var req = http.request(options, function(res) { console.log('STATUS: ' + res.statusCode); console.log('HEADERS: ' + JSON.stringify(res.headers)); res.setEncoding('utf8'); res.on('data', [...]]]></description>
			<content:encoded><![CDATA[<pre class="brush: jscript; title: ;">
var http = require('http');
var querystring = require('querystring');

var postdata = querystring.stringify({
      'name'  : 'a',
      'pwd'   : '1'
});

var options = {
     host: '172.10.7.228',
     port: 1337,
     path: '/login',
     method: 'POST',
     headers: {
        'Content-Type': 'application/x-www-form-urlencoded',
        'Content-Length': postdata.length
    }
};

var req = http.request(options, function(res) {
  console.log('STATUS: ' + res.statusCode);
  console.log('HEADERS: ' + JSON.stringify(res.headers));
  res.setEncoding('utf8');
  res.on('data', function (chunk) {
    console.log('BODY: ' + chunk);
  });
});

req.on('error', function(e) {
  console.log('problem with request: ' + e.message);
});

// write data to request body
req.write(postdata);
req.write('\n');
req.end();
</pre>
<p>用 NODE JS 向 <a href="/2012/05/08/node-process-post-reqest/">NODE 处理 POST 请求</a> 发起 POST 请求。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.livingelsewhere.net/2012/05/08/node-sendpost-reqest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NODE 处理 POST 请求</title>
		<link>http://www.livingelsewhere.net/2012/05/08/node-process-post-reqest/</link>
		<comments>http://www.livingelsewhere.net/2012/05/08/node-process-post-reqest/#comments</comments>
		<pubDate>Tue, 08 May 2012 03:17:07 +0000</pubDate>
		<dc:creator>Summer</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[NODE]]></category>

		<guid isPermaLink="false">http://www.livingelsewhere.net/?p=1663</guid>
		<description><![CDATA[FROM: node.js 接收post请求 var http = require('http'); var server = http.createServer(); var querystring = require('querystring'); var firstPage = function(res) { res.writeHead(200, {'Content-Type' : 'text/html'}); var html = '&#60;html&#62;&#60;body&#62;' + '&#60;form action=&#34;/login&#34; method=&#34;post&#34;&#62;' + 'name:&#60;input type=&#34;text&#34; name=&#34;name&#34; /&#62;&#60;br /&#62;' + 'password:&#60;input type=&#34;password&#34; name=&#34;pwd&#34; /&#62;&#60;br /&#62;' + '&#60;input type=&#34;submit&#34; value=&#34;login&#34; /&#62;' + '&#60;/form&#62;' + '&#60;/body&#62;&#60;/html&#62;'; res.end(html); } [...]]]></description>
			<content:encoded><![CDATA[<p><b>FROM: </b><a href="http://blog.csdn.net/dellheng/article/details/7046796">node.js 接收post请求</a></p>
<pre class="brush: jscript; title: ;">
var http    = require('http');
var server  = http.createServer();
var querystring = require('querystring');
var firstPage   = function(res) {
    res.writeHead(200, {'Content-Type' : 'text/html'});
    var html    = '&lt;html&gt;&lt;body&gt;' +
        '&lt;form action=&quot;/login&quot; method=&quot;post&quot;&gt;' +
        'name:&lt;input type=&quot;text&quot; name=&quot;name&quot; /&gt;&lt;br /&gt;' +
        'password:&lt;input type=&quot;password&quot; name=&quot;pwd&quot; /&gt;&lt;br /&gt;' +
        '&lt;input type=&quot;submit&quot; value=&quot;login&quot; /&gt;' +
        '&lt;/form&gt;' +
        '&lt;/body&gt;&lt;/html&gt;';
    res.end(html);
}

var login   = function(req, res) {
    var info = '';
    req.on('data', function(chunk) {
        info += chunk;
    });

    req.on('end', function() {
        info = querystring.parse(info);

        console.log(info);
        if(info.name == 'a' &amp;&amp; info.pwd == '1') {
            res.end('login success ' + info.name);
        } else {
            res.end('login failed ' + info.name);
        }
    });
};

var requestFunction = function(req, res) {
    if (req.url == '/') {
        return firstPage(res);
    }

    if (req.url == '/login') {
        if (req.method != 'POST') {
            return;
        }
        return login(req, res);
    }
};

server.on('request', requestFunction);
server.listen(1337, '172.10.7.228');

console.log('server running at at http://172.10.7.228:1337');
</pre>
<p>代码实现了一个登录验证用户。FORM 的 <code>enctype</code> 属性使用的是默认的 <code>application/x-www-form-urlencoded</code>，如果要上传文件的话则需要设置为 <code>multipart/form-data</code>。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.livingelsewhere.net/2012/05/08/node-process-post-reqest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ERROR 1337: Variable or condition declaration after cursor or handler declaration</title>
		<link>http://www.livingelsewhere.net/2012/05/04/mysql-server-error-1337/</link>
		<comments>http://www.livingelsewhere.net/2012/05/04/mysql-server-error-1337/#comments</comments>
		<pubDate>Fri, 04 May 2012 03:42:30 +0000</pubDate>
		<dc:creator>Summer</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL Base]]></category>

		<guid isPermaLink="false">http://www.livingelsewhere.net/?p=1644</guid>
		<description><![CDATA[FROM: Error 1337 VARIABLE OR CONDITION DECLARATION AFTER CURSOR OR HANDLER DECLARATION create database testdb; use testdb; CREATE TABLE test1 ( ID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, a INTEGER UNSIGNED NULL, PRIMARY KEY(ID) ); CREATE TABLE test2 ( ID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, a INTEGER UNSIGNED NULL, PRIMARY KEY(ID) ); Insert into test1 set [...]]]></description>
			<content:encoded><![CDATA[<p><b>FROM: </b> <a href="http://forums.mysql.com/read.php?102,61494,61494">Error 1337 VARIABLE OR CONDITION DECLARATION AFTER CURSOR OR HANDLER DECLARATION<br />
</a></p>
<pre class="brush: sql; title: ;">
create database testdb;
use testdb;
CREATE TABLE test1 (
    ID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
    a INTEGER UNSIGNED NULL,
    PRIMARY KEY(ID)
); 

CREATE TABLE test2 (
    ID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
    a INTEGER UNSIGNED NULL,
    PRIMARY KEY(ID)
); 

Insert into test1 set a = 2;
Insert into test1 set a = 4;
Insert into test1 set a = 6;
Insert into test1 set a = 8;
Insert into test1 set a = 10; 

delimiter $$
CREATE PROCEDURE testdb.curdemo()
BEGIN
    Declare cur1 Cursor For select a from testdb.test1;
    Declare temp INT;
    declare done INT Default 0;
    Declare continue handler for Sqlstate '02000' set done = 1; 

    open cur1;
    Repeat
    fetch cur1 into temp;
        IF Not done then
            Insert into test2 set a = temp;
        End if;
    Until done END Repeat;
    close cur1;
End $$
delimiter ;
</pre>
<p>Now, if I would add the procedure, MySQL requests a error: Variable or condition declaration after cursor or handler declaration at line 22.</p>
<p>根据错误的提示信息，游标定义需在变量/条件后，HANDLER 前。<br />
将定义存储过程的 SQL 修改为如下即可。</p>
<pre class="brush: sql; title: ;">
delimiter $$
CREATE PROCEDURE testdb.curdemo()
BEGIN
    Declare temp INT;
    Declare done INT Default 0; 

    Declare cur1 Cursor For select a from testdb.test1;
    Declare continue handler for Sqlstate '02000' set done = 1; 

    open cur1;
    Repeat
    fetch cur1 into temp;
        IF Not done then
            Insert into test2 set a = temp;
        End if;
    Until done END Repeat;
    close cur1;
End $$
delimiter ;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.livingelsewhere.net/2012/05/04/mysql-server-error-1337/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ERROR 1170: BLOB/TEXT column &#8216;XX&#8217; can&#8217;t be used in key specification with the used table type</title>
		<link>http://www.livingelsewhere.net/2012/05/04/mysql-server-error-1170/</link>
		<comments>http://www.livingelsewhere.net/2012/05/04/mysql-server-error-1170/#comments</comments>
		<pubDate>Fri, 04 May 2012 03:29:02 +0000</pubDate>
		<dc:creator>Summer</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL Base]]></category>

		<guid isPermaLink="false">http://www.livingelsewhere.net/?p=1641</guid>
		<description><![CDATA[FROM: Better error message for Index on BLOB/TEXT columns Description: Consider the following: mysql&#62; create table f2 (a int, b BLOB, KEY(b)) Engine = Falcon; ERROR 1073 (42000): BLOB column 'b' can't be used in key specification with the used table type mysql&#62; create table f3 (a int, b TEXT, KEY(b)) Engine = Falcon; ERROR [...]]]></description>
			<content:encoded><![CDATA[<p><b>FROM: </b> <a href="http://bugs.mysql.com/bug.php?id=43745">Better error message for Index on BLOB/TEXT columns</a></p>
<p>Description:<br />
Consider the following:</p>
<pre class="brush: sql; title: ;">
mysql&gt; create table f2 (a int, b BLOB, KEY(b)) Engine = Falcon;
ERROR 1073 (42000): BLOB column 'b' can't be used in key specification with the used table type
mysql&gt; create table f3 (a int, b TEXT, KEY(b)) Engine = Falcon;
ERROR 1073 (42000): BLOB column 'b' can't be used in key specification with the used table type
</pre>
<p>The latter message should say TEXT instead of BLOB.</p>
<p>Sveta Smirnova 后面有回复说提示错误的信息已经修改为: BLOB/TEXT column &#8216;b&#8217; used in key specification without a key length.</p>
<pre class="brush: sql; title: ;">
mysql&gt; create table f2 (a int, b BLOB, KEY(b)) Engine = Falcon;
ERROR 1170 (42000): BLOB/TEXT column 'b' used in key specification without a key length
mysql&gt; create table f3 (a int, b TEXT, KEY(b)) Engine = Falcon;
ERROR 1170 (42000): BLOB/TEXT column 'b' used in key specification without a key length
</pre>
<p>上述的测试结果表示确实如 Sveta Smirnov 所言。而且现在不管表使用哪种存储引擎，在为 BLOB/TEXT 类型的字段建立索引时，提示信息由以前的 ERROR 为 1073 的都统一为当前 ERROR 为 1170 的错误信息。</p>
<p>错误处理：<br />
在建立 TEXT/BLOB 类型的字段的索引时，需要为其指定索引的长度。即：</p>
<pre class="brush: sql; title: ;">

mysql&gt; create table f2 (a int, b BLOB, KEY(b (32))) Engine = Falcon;
Query OK, 0 rows affected, 2 warnings (0.00 sec)

mysql&gt; create table f3 (a int, b TEXT, KEY(b (64))) Engine = Falcon;
Query OK, 0 rows affected, 2 warnings (0.01 sec)
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.livingelsewhere.net/2012/05/04/mysql-server-error-1170/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ERROR 1063: Incorrect column specifier for column ‘XX’</title>
		<link>http://www.livingelsewhere.net/2012/05/03/mysql-servererror-1063/</link>
		<comments>http://www.livingelsewhere.net/2012/05/03/mysql-servererror-1063/#comments</comments>
		<pubDate>Thu, 03 May 2012 03:45:10 +0000</pubDate>
		<dc:creator>Summer</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL Base]]></category>

		<guid isPermaLink="false">http://www.livingelsewhere.net/?p=1639</guid>
		<description><![CDATA[FROM: PHP Server Side Scripting Forum I am trying to create a database to calculate my wholesale costs &#038; taxes on the fly, but when I created the database I frogot to make an &#8216;id&#8217; column (I use phpMyAdmin to create the tables by hand). All other fields were created successfully, but I keep gettign [...]]]></description>
			<content:encoded><![CDATA[<p><b>FROM: </b> <a href="http://www.webmasterworld.com/forum88/12572.htm">PHP Server Side Scripting Forum</a></p>
<p>I am trying to create a database to calculate my wholesale costs &#038; taxes on the fly, but when I created the database I frogot to make an &#8216;id&#8217; column (I use phpMyAdmin to create the tables by hand).</p>
<p>All other fields were created successfully, but I keep gettign this blasted error:</p>
<p>Here&#8217;s what I&#8217;m trying to do:</p>
<pre class="code">
Field: id
Type: VARCHAR
Length/Values*: 250
Attributes: (empty)
Null: null
Default**: (empty)
Extra: auto_increment
</pre>
<p>SQL query:</p>
<pre class="brush: sql; title: ;">
ALTER TABLE `wholesale` ADD `id` VARCHAR( 250 ) AUTO_INCREMENT FIRST
</pre>
<p>很明显，字段 id 指定的字段类型与其属性有冲突。字符型没有 <code>AUTO_INCREMENT</code> 的属性，而如果需要有该属性，则需将字段类型改为整形，具体条件可参看 <a href="http://dev.mysql.com/doc/refman/5.5/en/example-auto-increment.html">Using AUTO_INCREMENT</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.livingelsewhere.net/2012/05/03/mysql-servererror-1063/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ERROR 1069: Too many keys specified. Max XX keys allowed</title>
		<link>http://www.livingelsewhere.net/2012/05/03/mysql-servererror-1069/</link>
		<comments>http://www.livingelsewhere.net/2012/05/03/mysql-servererror-1069/#comments</comments>
		<pubDate>Thu, 03 May 2012 03:32:07 +0000</pubDate>
		<dc:creator>Summer</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL Base]]></category>

		<guid isPermaLink="false">http://www.livingelsewhere.net/?p=1637</guid>
		<description><![CDATA[FROM: Limit on Number of Indexes on MySQL Table YAMQ(yet another MySQL question) came up at work with past week. Some of our old data warehousing libraries work under the assumption that MySQL can only handle 16 indexes (built during the early 3.23.x days). So the question is how many indexes can a single table [...]]]></description>
			<content:encoded><![CDATA[<p><b>FROM: </b> <a href="">Limit on Number of Indexes on MySQL Table</a></p>
<p>YAMQ(yet another MySQL question) came up at work with past week. Some of our old data warehousing libraries work under the assumption that MySQL can only handle 16 indexes (built during the early 3.23.x days). So the question is how many indexes can a single table have these days?</p>
<p>This is similar to last week&#8217;s question on <a href="http://mike.kruckenberg.com/archives/2006/06/limit_on_number.html">how many joins MySQL can handle</a>. I don&#8217;t see much in the way of official documentation, but dug around the forums and found good information in <a href="http://forums.mysql.com/read.php?22,53666,53666#msg-53666">this thread</a>.</p>
<p>Creating an index requires creating a key, and there&#8217;s a limit placed on the number of keys allowed for a table. Thus the limit on indexes is governed by the number of keys you are allowed to create. The error message when you&#8217;ve created one too many keys looks like:</p>
<pre class="code">
ERROR 1069: Too many keys specified. Max XX keys allowed
</pre>
<p>And in the documentation:</p>
<pre class="code">
Error: 1069 SQLSTATE: 42000 (ER_TOO_MANY_KEYS)
Message: Too many keys specified; max %d keys allowed
</pre>
<p>A quick run through a few machines/architectures I have access to gives a hint at the limit on various systems:</p>
<ul>
<li>MySQL 3.23.58 on AMD Athlon XP &#8211; 32 key limit</li>
<li>MySQL 4.0.23 on Intel &#8211; 32 key limit</li>
<li>MySQL 4.0.23(64 bit) on Dual Opteron &#8211; 32 key limit</li>
<li>MySQL 4.1.20 on Intel &#8211; 64 key limit</li>
<li>MySQL 4.1.20(64 bit) on Dual Opteron &#8211; 64 key limit</li>
<li>MySQL 5.0.20 on Dual-Core Intel Mac &#8211; 64 key limit</li>
</ul>
<p>From the forum post it appears that this limit is controlled by the MAX_KEY variable in the source code(sql/unireq.h). Changing the value requires a recompile of MySQL.</p>
<p>For anyone interested here&#8217;s the <a href="http://mike.kruckenberg.com/txt/test_index_limit.sql">SQL file</a> that I ru through the MySQL client.</p>
<pre class="brush: bash; title: ;">
# mysql -f &lt; test_index_limit.sql
ERROR 1069 (42000) at line 75: Too many keys specified; max 64 keys allowed
...
</pre>
<p>The test script creates a test_index_limit database, create an index_limit table and attempt to put 70 indexes on that table. <b>The script drop the database, so if you happen to have a test_index_limit database on your system please be careful.</b></p>
<p>目前，普通的服务器，根据其硬件及架构，基本上每个表最多支持 64 个 索引。</p>
<p>附：</p>
<pre class="brush: sql; title: test index limit sql;">
create database test_index_limit;

use test_index_limit;

create table index_limit (customer_id_1 int, customer_id_2 int, customer_id_3 int, customer_id_4 int, customer_id_5 int, customer_id_6 int, customer_id_7 int, customer_id_8 int, customer_id_9 int, customer_id_10 int, customer_id_11 int, customer_id_12 int, customer_id_13 int, customer_id_14 int, customer_id_15 int, customer_id_16 int, customer_id_17 int, customer_id_18 int, customer_id_19 int, customer_id_20 int, customer_id_21 int, customer_id_22 int, customer_id_23 int, customer_id_24 int, customer_id_25 int, customer_id_26 int, customer_id_27 int, customer_id_28 int, customer_id_29 int, customer_id_30 int, customer_id_31 int, customer_id_32 int, customer_id_33 int, customer_id_34 int, customer_id_35 int, customer_id_36 int, customer_id_37 int, customer_id_38 int, customer_id_39 int, customer_id_40 int, customer_id_41 int, customer_id_42 int, customer_id_43 int, customer_id_44 int, customer_id_45 int, customer_id_46 int, customer_id_47 int, customer_id_48 int, customer_id_49 int, customer_id_50 int, customer_id_51 int, customer_id_52 int, customer_id_53 int, customer_id_54 int, customer_id_55 int, customer_id_56 int, customer_id_57 int, customer_id_58 int, customer_id_59 int, customer_id_60 int, customer_id_61 int, customer_id_62 int, customer_id_63 int, customer_id_64 int, customer_id_65 int, customer_id_66 int, customer_id_67 int, customer_id_68 int, customer_id_69 int, customer_id_70 int);

alter table index_limit add index (customer_id_1);
alter table index_limit add index (customer_id_2);
alter table index_limit add index (customer_id_3);
alter table index_limit add index (customer_id_4);
alter table index_limit add index (customer_id_5);
alter table index_limit add index (customer_id_6);
alter table index_limit add index (customer_id_7);
alter table index_limit add index (customer_id_8);
alter table index_limit add index (customer_id_9);
alter table index_limit add index (customer_id_10);
alter table index_limit add index (customer_id_11);
alter table index_limit add index (customer_id_12);
alter table index_limit add index (customer_id_13);
alter table index_limit add index (customer_id_14);
alter table index_limit add index (customer_id_15);
alter table index_limit add index (customer_id_16);
alter table index_limit add index (customer_id_17);
alter table index_limit add index (customer_id_18);
alter table index_limit add index (customer_id_19);
alter table index_limit add index (customer_id_20);
alter table index_limit add index (customer_id_21);
alter table index_limit add index (customer_id_22);
alter table index_limit add index (customer_id_23);
alter table index_limit add index (customer_id_24);
alter table index_limit add index (customer_id_25);
alter table index_limit add index (customer_id_26);
alter table index_limit add index (customer_id_27);
alter table index_limit add index (customer_id_28);
alter table index_limit add index (customer_id_29);
alter table index_limit add index (customer_id_30);
alter table index_limit add index (customer_id_31);
alter table index_limit add index (customer_id_32);
alter table index_limit add index (customer_id_33);
alter table index_limit add index (customer_id_34);
alter table index_limit add index (customer_id_35);
alter table index_limit add index (customer_id_36);
alter table index_limit add index (customer_id_37);
alter table index_limit add index (customer_id_38);
alter table index_limit add index (customer_id_39);
alter table index_limit add index (customer_id_40);
alter table index_limit add index (customer_id_41);
alter table index_limit add index (customer_id_42);
alter table index_limit add index (customer_id_43);
alter table index_limit add index (customer_id_44);
alter table index_limit add index (customer_id_45);
alter table index_limit add index (customer_id_46);
alter table index_limit add index (customer_id_47);
alter table index_limit add index (customer_id_48);
alter table index_limit add index (customer_id_49);
alter table index_limit add index (customer_id_50);
alter table index_limit add index (customer_id_51);
alter table index_limit add index (customer_id_52);
alter table index_limit add index (customer_id_53);
alter table index_limit add index (customer_id_54);
alter table index_limit add index (customer_id_55);
alter table index_limit add index (customer_id_56);
alter table index_limit add index (customer_id_57);
alter table index_limit add index (customer_id_58);
alter table index_limit add index (customer_id_59);
alter table index_limit add index (customer_id_60);
alter table index_limit add index (customer_id_61);
alter table index_limit add index (customer_id_62);
alter table index_limit add index (customer_id_63);
alter table index_limit add index (customer_id_64);
alter table index_limit add index (customer_id_65);
alter table index_limit add index (customer_id_66);
alter table index_limit add index (customer_id_67);
alter table index_limit add index (customer_id_68);
alter table index_limit add index (customer_id_69);
alter table index_limit add index (customer_id_70);

drop database test_index_limit;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.livingelsewhere.net/2012/05/03/mysql-servererror-1069/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Server error code 1301 –</title>
		<link>http://www.livingelsewhere.net/2012/05/02/mysql-server-error-code-1301-%e2%80%93/</link>
		<comments>http://www.livingelsewhere.net/2012/05/02/mysql-server-error-code-1301-%e2%80%93/#comments</comments>
		<pubDate>Wed, 02 May 2012 07:34:53 +0000</pubDate>
		<dc:creator>Summer</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL Base]]></category>

		<guid isPermaLink="false">http://www.livingelsewhere.net/?p=1634</guid>
		<description><![CDATA[Error SQLSTATE Message 1301 HY000 (ER_WARN_ALLOWED_PACKET_OVERFLOWED) %s 的结果大于 max_allowed_packet(%ld)，已截短 1302 HY000 (ER_CONFLICTING_DECLARATIONS) 冲突生命：&#8217;%s%s 和 %s%s&#8217; 1303 2F003 (ER_SP_NO_RECURSIVE_CREATE) 不能从另一个存储过程中创建 %s 1304 42000 (ER_SP_ALREADY_EXISTS) %s %s 已存在 1305 42000 (ER_SP_DOES_NOT_EXIST) %s %s 不存在 1306 HY000 (ER_SP_DROP_FAILED) DROP %s %s 失败 1307 HY000 (ER_SP_STORE_FAILED) CREATE %s %s 失败 1308 42000 (ER_SP_LILABEL_MISMATCH) %s 无匹配标签：%s 1309 42000 (ER_SP_LABEL_REDEFINE) 重新定义标签 [...]]]></description>
			<content:encoded><![CDATA[<table class="example">
<tr>
<th>Error</th>
<th>SQLSTATE</th>
<th>Message</th>
</tr>
<tr>
<td>1301</td>
<td>HY000 (ER_WARN_ALLOWED_PACKET_OVERFLOWED)</td>
<td>%s 的结果大于 max_allowed_packet(%ld)，已截短</td>
</tr>
<tr>
<td>1302</td>
<td>HY000 (ER_CONFLICTING_DECLARATIONS)</td>
<td>冲突生命：&#8217;%s%s 和 %s%s&#8217;</td>
</tr>
<tr>
<td>1303</td>
<td>2F003 (ER_SP_NO_RECURSIVE_CREATE)</td>
<td>不能从另一个存储过程中创建 %s</td>
</tr>
<tr>
<td>1304</td>
<td>42000 (ER_SP_ALREADY_EXISTS)</td>
<td>%s %s 已存在</td>
</tr>
<tr>
<td>1305</td>
<td>42000 (ER_SP_DOES_NOT_EXIST)</td>
<td>%s %s 不存在</td>
</tr>
<tr>
<td>1306</td>
<td>HY000 (ER_SP_DROP_FAILED)</td>
<td>DROP %s %s 失败</td>
</tr>
<tr>
<td>1307</td>
<td>HY000 (ER_SP_STORE_FAILED)</td>
<td>CREATE %s %s 失败</td>
</tr>
<tr>
<td>1308</td>
<td>42000 (ER_SP_LILABEL_MISMATCH)</td>
<td>%s 无匹配标签：%s</td>
</tr>
<tr>
<td>1309</td>
<td>42000 (ER_SP_LABEL_REDEFINE)</td>
<td>重新定义标签 %s</td>
</tr>
<tr>
<td>1310</td>
<td>42000 (ER_SP_LABEL_MISMATCH)</td>
<td>末端标签 %s 无匹配项</td>
</tr>
<tr>
<td>1311</td>
<td>01000 (ER_SP_UNINIT_VAR)</td>
<td>正在引用未初始化的变量 %s</td>
</tr>
<tr>
<td>1312</td>
<td>0A000 (ER_SP_BADSELECT)</td>
<td>PROCEDURE %s 不能在给定场景下返回结果集</td>
</tr>
<tr>
<td>1313</td>
<td>42000 (ER_SP_BADRETURN)</td>
<td>仅在 FUNCTION 中运行 RETURN</td>
</tr>
<tr>
<td>1314</td>
<td>0A000 (ER_SP_BADSTATEMENT)</td>
<td>在存储过程中不允许 %s</td>
</tr>
<tr>
<td>1315</td>
<td>42000 (ER_UPDATE_LOG_DEPRECATED_IGNORE)</td>
<td>更新日志已被放弃，并用二进制日志取代， SET SQL_LOG_UPDATE 被忽略</td>
</tr>
<tr>
<td>1316</td>
<td>42000 (ER_UPDATE_LOG_DEPRECATED_TRANSLATED)</td>
<td>更新日志已被放弃，并用二进制取代， SET SQL_LOG_UPDATE 由 SET SQL_LOG_BIN 取代</td>
</tr>
<tr>
<td>1317</td>
<td>70100 (ER_QUERY_INTERRUPTED)</td>
<td>查询执行被中断</td>
</tr>
<tr>
<td>1318</td>
<td>42000 (ER_SP_WRONG_NO_OF_ARGS)</td>
<td>对于 %s %s，参量数目不正确，预期为 %u，但却是 %u</td>
</tr>
<tr>
<td>1319</td>
<td>42000 (ER_SP_COND_MISMATCH)</td>
<td>未定义的 CONDITION: %s</td>
</tr>
<tr>
<td>1320</td>
<td>42000 (ER_SP_NORETURN)</td>
<td>在 FUNCTION %s 中未发现 RETURN</td>
</tr>
<tr>
<td>1321</td>
<td>2F005 (ER_SP_NORETURNEND)</td>
<td>FUNCTION %s 结束时缺少 RETURN</td>
</tr>
<tr>
<td>1322</td>
<td>42000 (ER_SP_BAD_CURSOR_QUERY)</td>
<td>游标语句必须是 SELECT</td>
</tr>
<tr>
<td>1323</td>
<td>42000 (ER_SP_BAD_CURSOR_SELECT)</td>
<td>游标 SELECT 不得有 INTO</td>
</tr>
<tr>
<td>1324</td>
<td>42000 (ER_SP_CURSOR_MISMATCH)</td>
<td>未定义的 CURSOR: %s</td>
</tr>
<tr>
<td>1325</td>
<td>24000 (ER_SP_CURSOR_ALREADY_OPEN)</td>
<td>游标已打开</td>
</tr>
<tr>
<td>1326</td>
<td>24000 (ER_SP_CURSOR_NOT_OPEN)</td>
<td>游标未打开</td>
</tr>
<tr>
<td>1327</td>
<td>42000 (ER_SP_UNDECLARED_VAR)</td>
<td>未声明的变量： %s</td>
</tr>
<tr>
<td>1328</td>
<td>HY000 (ER_SP_WRONG_NO_OF_FETCH_ARGS)</td>
<td>不正确的 FETCH 变量数目</td>
</tr>
<tr>
<td>1329</td>
<td>02000 (ER_SP_FETCH_NO_DATA)</td>
<td>FETCH 无数据</td>
</tr>
<tr>
<td>1330</td>
<td>42000 (ER_SP_DUP_PARAM)</td>
<td>重复参数：%s</td>
</tr>
<tr>
<td>1331</td>
<td>42000 (ER_SP_DUP_VAR)</td>
<td>重复变量：%s</td>
</tr>
<tr>
<td>1332</td>
<td>42000 (ER_SP_DUP_COND)</td>
<td>重复条件：%s</td>
</tr>
<tr>
<td>1334</td>
<td>HY000 (ER_SP_CNAT_ALTER)</td>
<td>ALTER %s %s 失败</td>
</tr>
<tr>
<td>1335</td>
<td>0A000 (ER_SP_SUBSELECT_NYI)</td>
<td>不支持 Subselect 的值</td>
</tr>
<tr>
<td>1336</td>
<td>0A000 (ER_STMT_NOT_ALLOWED_IN_SF_OR_TRG)</td>
<td>在存储函数或触发程序中，不允许 %s</td>
</tr>
<tr>
<td>1337</td>
<td>42000 (ER_SP_VARCOND_AFTER_CURSHNDLR0</td>
<td>游标或句柄声明后的变量或条件声明</td>
</tr>
<tr>
<td>1338</td>
<td>42000 (ER_SP_CURSOR_AFTER_HANDLER)</td>
<td>句柄声明后的的游标声明</td>
</tr>
<tr>
<td>1339</td>
<td>20000 (ER_SP_CASE_NOT_FOUND)</td>
<td>对于 CASE 语句，未发现 CASE</td>
</tr>
<tr>
<td>1340</td>
<td>HY000 (ER_FPARSER_TOO_BIG_FILE)</td>
<td>配置文件 %s 过大</td>
</tr>
<tr>
<td>1341</td>
<td>HY000 (ER_FPARSER_BAD_HEADER)</td>
<td>文件 &#8216;%s&#8217; 中存在残缺的文件类型标题</td>
</tr>
<tr>
<td>1342</td>
<td>HY000 (ER_FPARSER_EOF_IN_COMMENT)</td>
<td>解析 %s 时，文件意外结束</td>
</tr>
<tr>
<td>1343</td>
<td>HY000 (ER_FPARSER_ERROR_IN_PARAMETER)</td>
<td>解析参数 &#8216;%s&#8217; 时出错 （行: &#8216;%s&#8217;）</td>
</tr>
<tr>
<td>1344</td>
<td>HY000 (ER_FPARSER_EOF_IN_UNKNOWN_PARAMETER)</td>
<td>跳过未知参数 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1345</td>
<td>HY000 (ER_VIEW_NO_EXPLAIN)</td>
<td>EXPLAIN/SHOW 无法发出，缺少对基本表的权限</td>
</tr>
<tr>
<td>1346</td>
<td>HY000 (ER_FRM_UNKNOWN_TYPE)</td>
<td>文件 &#8216;%s&#8217; 在其题头中有未知的类型 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1347</td>
<td>HY000 (ER_WRONG_OBJECT)</td>
<td>&#8216;%s.%s&#8217; 不是 %s</td>
</tr>
<tr>
<td>1348</td>
<td>HY000 (ER_NONUPDATEABLE_COLUNN)</td>
<td>列 &#8216;%s&#8217; 不可更新</td>
</tr>
<tr>
<td>1349</td>
<td>HY000 (ER_VIEW_SELECT_DERIVED)</td>
<td>视图的 SELECT 在 FROM 子句中包含子查询</td>
</tr>
<tr>
<td>1350</td>
<td>HY000 (ER_VIEW_SELECT_CLAUSE)</td>
<td>视图的 SELECT 包含 &#8216;%s&#8217; 子句</td>
</tr>
<tr>
<td>1351</td>
<td>HY000 (ER_VIEW_SELECT_VARIABLE)</td>
<td>视图的 SELECT 包含 1 个变量或参数</td>
</tr>
<tr>
<td>1352</td>
<td>HY000 (ER_VIEW_SELECT_TEMPTABLE)</td>
<td>视图的 SELECT 引用了临时表 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1353</td>
<td>HY000 (ER_VIEW_WRONG_LIST)</td>
<td>视图的 SELECT 和视图的字段列表有不同的列计数</td>
</tr>
<tr>
<td>1354</td>
<td>HY000 (ER_WARN_VIEW_MERGE)</td>
<td>此时，不能在这里使用视图合并算法（假定未定义算法）</td>
</tr>
<tr>
<td>1355</td>
<td>HY000 (ER_WARN_VIEW_WITHOUT_KEY)</td>
<td>正在更新的视图没有其基本表的完整键</td>
</tr>
<tr>
<td>1356</td>
<td>HY000 (ER_VIEW_INVALID)</td>
<td>视图 &#8216;%s.%s&#8217; 应用了无效的表、列、或函数、或视图的定义程序/调用程序缺少使用它们的权限</td>
</tr>
<tr>
<td>1357</td>
<td>HY000 (ER_SP_NO_DROP_SP)</td>
<td>无法从另一个存储子过程中撤销或更改 %s</td>
</tr>
<tr>
<td>1358</td>
<td>HY000 (ER_SP_GOTO_IN_HANDLER)</td>
<td>在存储子程序句柄中不允许 GOTO</td>
</tr>
<tr>
<td>1359</td>
<td>HY000 (ER_TRG_ALREADY_EXISTS)</td>
<td>触发器已经存在</td>
</tr>
<tr>
<td>1360</td>
<td>HY000 (ER_TRG_DOES_NOT_EXIST)</td>
<td>触发器不存在</td>
</tr>
<tr>
<td>1361</td>
<td>HY000 (ER_TRG_ON_VIEW_TEMP_TABLE)</td>
<td>触发器的 &#8216;%s&#8217; 是视图或临时表</td>
</tr>
<tr>
<td>1362</td>
<td>HY000 (ER_TRG_CANT_CHANGE_ROW)</td>
<td>在触发器中，不运行更新 %s 行</td>
</tr>
<tr>
<td>1363</td>
<td>HY000 (ER_TRG_NO_SUCH_ROW_IN_TRG)</td>
<td>在 %s 触发器中没有 %s 行</td>
</tr>
<tr>
<td>1364</td>
<td>HY000 (ER_NO_DEFAULT_FOR_FIELD)</td>
<td>字段 &#8216;%s&#8217; 没有默认值</td>
</tr>
<tr>
<td>1365</td>
<td>22012 (ER_DIVISION_BY_ZERO)</td>
<td>被 0 除</td>
</tr>
<tr>
<td>1366</td>
<td>HY000 (ER_TRUNCATED_WRONG_VALUE_FOR_FIELD)</td>
<td>不正确的 %s 值，&#8217;%s&#8217;，对于行 %ld 上的列 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1367</td>
<td>22007 (ER_ILLEGAL_VALUE_FOR_TYPE)</td>
<td>解析过程中发现非法 %s &#8216;%s&#8217; 值</td>
</tr>
<tr>
<td>1368</td>
<td>HY000 (ER_VIEW_NONUPD_CHECK)</td>
<td>不可更新视图 &#8216;%s. %s&#8217; 上的 CHECK OPTION</td>
</tr>
<tr>
<td>1369</td>
<td>HY000 (ER_VIEW_CHECK_FAILED)</td>
<td>CHECK OPTION 失败，&#8217;%s.%s&#8217;</td>
</tr>
<tr>
<td>1370</td>
<td>42000 (ER_PROCACCESS_DENIED_ERROR)</td>
<td>对于子程序 &#8216;%s&#8217;，拒绝用户 &#8216;%s&#8217;@'%s&#8217; 使用 %s 命令</td>
</tr>
<tr>
<td>1371</td>
<td>HY000 (ER_RELAY_LOG_FAIL)</td>
<td>清除旧中继日志失败，%s</td>
</tr>
<tr>
<td>1372</td>
<td>HY000 (ER_PASSWD_LENGTH)</td>
<td>密码混编用是 %d 位的十六进制数</td>
</tr>
<tr>
<td>1373</td>
<td>HY000 (ER_UNKNOWN_TARGET_BINLOG)</td>
<td>在 binlog 索引中未发现目标日志</td>
</tr>
<tr>
<td>1374</td>
<td>HY000 (ER_IO_ERR_LOG_INDEX_READ)</td>
<td>读取日志索引文件时出现 I/O 错误</td>
</tr>
<tr>
<td>1375</td>
<td>HY000 (ER_BINOG_PURGE_PROHIBITED)</td>
<td>服务器配置不允许 binlog 清除</td>
</tr>
<tr>
<td>1376</td>
<td>HY000 (ER_FSEEK_FAIL)</td>
<td>fseek() 失败</td>
</tr>
<tr>
<td>1377</td>
<td>HY000 (ER_BINLOG_PURGE_FATAL_ERR)</td>
<td>在日志清除过程中出现致命错误</td>
</tr>
<tr>
<td>1378</td>
<td>HY000 (ER_LOG_IN_USE)</td>
<td>可清除的日志正在使用，不能清除</td>
</tr>
<tr>
<td>1379</td>
<td>HY000 (ER_LOG_PURGE_UNKNOWN_ERR)</td>
<td>在日志清除过程中出现未知错误</td>
</tr>
<tr>
<td>1380</td>
<td>HY000 (ER_RELAY_LOG_INT)</td>
<td>初始化中继日志功能</td>
</tr>
<tr>
<td>1381</td>
<td>HY000 (ER_NO_BINARY_LOGGING)</td>
<td>未使用二进制日志功能</td>
</tr>
<tr>
<td>1382</td>
<td>HY000 (ER_RESERVED_SYNTAX)</td>
<td>&#8216;%s&#8217; 语法保留给 MySQL 服务器内部使用</td>
</tr>
<tr>
<td>1383</td>
<td>HY000 (ER_WSAS_FAILED)</td>
<td>WSAStartup 失败</td>
</tr>
<tr>
<td>1384</td>
<td>HY000 (ER_DIFF_GROUPS_PROC)</td>
<td>尚不能用不同的组处理过程</td>
</tr>
<tr>
<td>1385</td>
<td>HY000 (ER_NO_GROUP_FOR_PROC)</td>
<td>对于该过程，SELECT 必须有 1 个组</td>
</tr>
<tr>
<td>1386</td>
<td>HY000 (ER_ORDER_WITH_PROC)</td>
<td>不能与该过程一起使用 ORDER 子句</td>
</tr>
<tr>
<td>1387</td>
<td>HY000 (ER_LOGGING_PROHIBIT_CHANGING_OF)</td>
<td>二进制日志功能和复制功能禁止更改全局服务器 %s</td>
</tr>
<tr>
<td>1388</td>
<td>HY000 (ER_NO_FILE_MAPPING)</td>
<td>无法映射文件：%s, errno: %d</td>
</tr>
<tr>
<td>1389</td>
<td>HY000 (ER_WRONG_MAGIC)</td>
<td>%s 中有错</td>
</tr>
<tr>
<td>1390</td>
<td>HY000 (ER_PS_MANY_PARAM)</td>
<td>预处理语句包含过多的占位符</td>
</tr>
<tr>
<td>1391</td>
<td>HY000 (ER_KEY_PART_0)</td>
<td>键部分 &#8216;%s&#8217; 的长度不能为 0</td>
</tr>
<tr>
<td>1392</td>
<td>HY000 (ER_VIEW_CHECKSUM)</td>
<td>视图文本校验和失败</td>
</tr>
<tr>
<td>1393</td>
<td>HY000 (ER_VIEW_MULTIUPDATE)</td>
<td>无法通过联合视图 &#8216;%s.%s&#8217; 更改 1 个以上的基本表</td>
</tr>
<tr>
<td>1394</td>
<td>HY000 (ER_VIEW_NO_INSERT_FIELD_LIST)</td>
<td>不能在没有字段列表的情况向爱插入联合视图 &#8216;%s.%s&#8217;</td>
</tr>
<tr>
<td>1395</td>
<td>HY000 (ER_VIEW_DELETE_MERGE_VIEW)</td>
<td>不能从联合视图 &#8216;%s.%s&#8217; 中删除</td>
</tr>
<tr>
<td>1396</td>
<td>HY000 (ER_CANNOT_USER)</td>
<td>对于 %s 的操作 %s 失败</td>
</tr>
<tr>
<td>1397</td>
<td>XAE04 (ER_XAER_NOTA)</td>
<td>XAER_NOTA：未知 XID</td>
</tr>
<tr>
<td>1398</td>
<td>XAE05 (ER_XAER_INVAL)</td>
<td>XAER_INVAL：无效参量（或不支持的命令）</td>
</tr>
<tr>
<td>1399</td>
<td>XAE07 (ER_XAER_RMFAIL)</td>
<td>XAER_RMFAIL：当全局事务处于 %s 状态时，不能执行命令</td>
</tr>
<tr>
<td>1400</td>
<td>XAE09 (ER_XAER_OUTSIDE)</td>
<td>XAER_OUTSIDE：某些工作是在全局事务外完成的</td>
</tr>
<tr>
<td>1401</td>
<td>XAE03 (ER_XAER_RMERR)</td>
<td>XAER_RMERR：在事务分支中出现致命错误，请检查数据一致性</td>
</tr>
<tr>
<td>1402</td>
<td>XA100 (ER_XA_RBROLLBACK)</td>
<td>XA_RBROLLBACK：回滚了事务分支</td>
</tr>
<tr>
<td>1403</td>
<td>42000 (ER_NONEXISTING_PROC_GRANT)</td>
<td>在子程序 &#8216;%s&#8217; 上没有为主机 &#8216;%s&#8217; 上的用户定义这类的授权</td>
</tr>
<tr>
<td>1404</td>
<td>HY000 (ER_PROC_AUTO_GRANT_FAIL)</td>
<td>无法授权 EXECUTE 和 ALTER ROUTINE 权限</td>
</tr>
<tr>
<td>1405</td>
<td>HY000 (ER_PROC_AUTO_REVOE_FAIL)</td>
<td>无法撤销已放弃子程序上的所有权限</td>
</tr>
<tr>
<td>1406</td>
<td>22001 (ER_DATA_TOO_LONG)</td>
<td>对于行 %ld 上的列 &#8216;%s&#8217; 来说，数据过长</td>
</tr>
<tr>
<td>1407</td>
<td>42000 (ER_SP_BAD_SQLSTATE)</td>
<td>不良</td>
</tr>
<tr>
<td>1408</td>
<td>HY000 (ER_STARTUP)</td>
<td>%s，连接就绪；版本：%s，套接字：%s；端口：%d</td>
</tr>
<tr>
<td>1409</td>
<td>HY000 (ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR)</td>
<td>不能从具有固定大小行的文件中将值加载到变量</td>
</tr>
<tr>
<td>1410</td>
<td>42000 (ER_CANT_CREATE_USER_WITH_GRANT)</td>
<td>不允许使用 GRANT 创建用户</td>
</tr>
<tr>
<td>1411</td>
<td>HY000 (ER_WRONG_VALUE_FOR_TYPE)</td>
<td>不正确的 %s 值，&#8217;%s&#8217;，对于函数 %s</td>
</tr>
<tr>
<td>1412</td>
<td>HY000 (ER_TABLE_DEF_CHANGED)</td>
<td>表定义已更改，请再次尝试事务</td>
</tr>
<tr>
<td>1413</td>
<td>42000 (ER_SP_DUP_HANDLER)</td>
<td>在相同快中声明了重复句柄</td>
</tr>
<tr>
<td>1414</td>
<td>42000 (ER_SP_NOT_VAR_ARG)</td>
<td>子程序 %s 的 OUT 或 INOUT 参量不是变量</td>
</tr>
<tr>
<td>l415</td>
<td>0A000 (ER_SP_NO_RETSET)</td>
<td>不允许从 %s 返回结果集</td>
</tr>
<tr>
<td>1416</td>
<td>22003 (ER_CANT_CREATE_GEOMETRY_OBJECT)</td>
<td>不能从发送给 GEOMETRY 字段的数据中获取几何对象</td>
</tr>
<tr>
<td>1417</td>
<td>HY000 (ER_FAILED_ROUTINE_BREAK_BINLOG)</td>
<td>1 个存储例程失败，在其声明没有 NO SQL 或 READS SQL DATA，而且二进制日志功能已启用，如果更新了非事务性表，二进制日志将丢失其变化信息</td>
</tr>
<tr>
<td>1418</td>
<td>HY000 (ER_BINLOG_UNSAFE_ROUTINE)</td>
<td>在该存储例程声明中没有 DETERMINISTIC 、NO SQL 或 READS SQL DATA，而且二进制日志功能已启用（或许打算使用不太安全的 log_bin_trust_routine_creators 变量）</td>
</tr>
<tr>
<td>1419</td>
<td>HY000 (ER_BINLOG_CREATE_ROUTINE_NEED_SUPER)</td>
<td>没有 SUPER 权限，而且二进制日志功能已启用（或许打算使用不太安全的 log_bin_trust_routine_creators 变量）</td>
</tr>
<tr>
<td>1420</td>
<td>HY000 (ER_EXEC_STMT_WITH_OPEN_CURSOR)</td>
<td>不能执行该预处理语句，该预处理语句与之相关的打开光标。请复位语句并再次执行</td>
</tr>
<tr>
<td>1421</td>
<td>HY000 (ER_STMT_HAS_NO_OPEN_CURSOR)</td>
<td>语句　(%lu) 没有打开的光标</td>
</tr>
<tr>
<td>1422</td>
<td>HY000 (ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG)</td>
<td>在存储函索或触发器中，不允许显示或隐式提交</td>
</tr>
<tr>
<td>1423</td>
<td>HY000 (ER_NO_DEFAULT_FOR_VIEW_FIELD)</td>
<td>视图 &#8216;%s.%s&#8217; 基本表的字段没有默认值</td>
</tr>
<tr>
<td>1424</td>
<td>HY000 (ER_SP_NO_RECURSION)</td>
<td>不允许递归存储子程序</td>
</tr>
<tr>
<td>1425</td>
<td>42000 (ER_TOO_BIG_SCALE)</td>
<td>为列 &#8216;%s&#8217; 指定了过大的标度 %d，最大为 %d</td>
</tr>
<tr>
<td>1426</td>
<td>42000 (ER_TOO_BIG_PRECISION)</td>
<td>为列 &#8216;%s&#8217; 指定了过高的精度 %d。最大为 %d</td>
</tr>
<tr>
<td>1427</td>
<td>42000 (ER_M_BIGGER_THAN_D)</td>
<td>对于 float(M, D)、double(M, D) 或 decimal(M, D)， M 必须 >= D (列 &#8216;%s&#8217;)</td>
</tr>
<tr>
<td>1428</td>
<td>HY000 (ER_WRONG_LOCK_OF_SYSTEM_TABLE)</td>
<td>不能将系统 &#8216;%s.%s&#8217; 表的写锁定于其它表结合起来</td>
</tr>
<tr>
<td>1429</td>
<td>HY000 (ER_CONNECT_TO_FOREIGN_DATA_SOURCE)</td>
<td>无法连接到外部数据源，数据库 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1430</td>
<td>HY000 (ER_QUERY_ON_FOREIGN_DATA_SOURCE)</td>
<td>处理作用在外部数据源上的查询时出现问题。数据源错误： &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1431</td>
<td>HY000 (ER_FOREIGN_DATA_SOURCE_DOESNT_EXIST)</td>
<td>试图引用的外部数据源不存在。数据源错误：&#8217;%s&#8217;</td>
</tr>
<tr>
<td>1432</td>
<td>HY000 (ER_FOREIGN_DATA_STRING_INVALID_CANT_CREATE)</td>
<td>无法创建联合表。数据源连接字符串 &#8216;%s&#8217; 格式不正确</td>
</tr>
<tr>
<td>1433</td>
<td>HY000 (ER_FOREIGN_DATA_STRING_INVALID)</td>
<td>数据源连接字符串 &#8216;%s&#8217; 格式不正确</td>
</tr>
<tr>
<td>1434</td>
<td>HY000 (ER_CANT_CREATE_FEDERATED_TABLE)</td>
<td>无法创建联合表。外部数据源错误：&#8217;%s&#8217;</td>
</tr>
<tr>
<td>1435</td>
<td>HY000 (ER_TRG_IN_WRONG_SCHEMA)</td>
<td>触发程序位于错误的方案中</td>
</tr>
<tr>
<td>1436</td>
<td>HY000 (ER_STACK_OVERRUN_NEED_MOGE)</td>
<td>线程堆栈溢出，%ld 字节栈用了 %ld 字节，并需要 %ld 字节。请使用 mysqld -O thread_stack=# 指定更大的堆栈</td>
</tr>
<tr>
<td>1437</td>
<td>42000 (ER_TOO_LONG_BODY)</td>
<td>&#8216;%s&#8217; 的子程序主题过长</td>
</tr>
<tr>
<td>1438</td>
<td>HY000 (ER_WARN_CANT_DROP_DEFAULT_KEYCACHE)</td>
<td>无法撤消默认的 keycache</td>
</tr>
<tr>
<td>1439</td>
<td>42000 (ER_TOO_BIG_DISPLAYWIDTH)</td>
<td>对于列 &#8216;%s&#8217;，显示宽度超出范围 (max = %d)</td>
</tr>
<tr>
<td>1440</td>
<td>XAE08 (ER_XAER_DUPID)</td>
<td>XAER_DUPID: XID 已存在</td>
</tr>
<tr>
<td>1441</td>
<td>22008 (ER_DATETIME_FUNCTION_OVERFLOW)</td>
<td>日期时间函数，%s 字段溢出</td>
</tr>
<tr>
<td>1442</td>
<td>HY000 (ER_CANT_UPDATE_USED_TABLE_IN_SF_OR_TRG)</td>
<td>由于它已被调用了该存储函数/触发器的语句使用，不能在存储函数/触发器中更新表 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1443</td>
<td>HY000 (ER_VIEW_PREVIEW_UPDATE)</td>
<td>表 &#8216;%s&#8217; 的定义不允许在表 &#8216;%s&#8217; 上执行操作 %s</td>
</tr>
<tr>
<td>1444</td>
<td>HY000 (ER_PS_NO_RECURSION)</td>
<td>预处理语句包含应用了相同语句的存储例程调用。不允许以这类递归方式执行预处理语句</td>
</tr>
<tr>
<td>1445</td>
<td>HY000 (ER_SP_CANT_SET_AUTOCOMMIT)</td>
<td>不允许从存储函数或触发器中设置 autocommit</td>
</tr>
<tr>
<td>1446</td>
<td>HY000 (ER_NO_VIEW_USER)</td>
<td>视图定义用户者无这权限</td>
</tr>
<tr>
<td>1447</td>
<td>HY000 (ER_VIEW_FRM_NO_USER)</td>
<td>视图 %s.%s 没有定义用户信息（旧的表格式），当前用户将被当作定义用户，请重新创建视图</td>
</tr>
<tr>
<td>1448</td>
<td>HY000 (ER_VIEW_OTHER_USER)</td>
<td>需要 SUPER 权限才能创建具有 %s@%s 定义器的视图</td>
</tr>
<tr>
<td>1449</td>
<td>HY000 (ER_NO_SUCH_USER)</td>
<td>没有注册的 %s@%s</td>
</tr>
<tr>
<td>1450</td>
<td>HY000 (ER_FORBID_SCHEMA_CHANGE)</td>
<td>不允许将方案从 &#8216;%s&#8217; 变为 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1451</td>
<td>23000 (ER_ROW_IS_REFERENCED_2)</td>
<td>不能删除或更新父行，外键约束失败 (%s)</td>
</tr>
<tr>
<td>1452</td>
<td>23000 (ER_NO_REFERENCED_ROW_2)</td>
<td>不能添加或更新子行，外键约束失败 (%s)</td>
</tr>
<tr>
<td>1453</td>
<td>42000 (ER_SP_BAD_VAR_SHADOW)</td>
<td>必须用`&#8230;`应用变量，或重新命名变量</td>
</tr>
<tr>
<td>1454</td>
<td>HY000 (ER_PARTITION_REQUIRES_VALUES_ERROR)</td>
<td>对于每个分区，%s PARTITIONING 需要 VALUES %s 的定义</td>
</tr>
<tr>
<td>1455</td>
<td>HY000 (ER_RARTITION_WRONG_VALUES_ERROR)</td>
<td>在分区定义中，只有 %s PARTITIONING 能使用 VALUES %s</td>
</tr>
<tr>
<td>1456</td>
<td>HY000 (ER_PARTITION_MAXVALUE_ERROR)</td>
<td>MAXVALUE 只能在最后 1 个分区定义中使用</td>
</tr>
<tr>
<td>1457</td>
<td>HY000 (ER_PARTITION_SUBPARTITION_ERROR)</td>
<td>子分区只能是哈希分区，并按键分区</td>
</tr>
<tr>
<td>1458</td>
<td>HY000 (ER_PARTITION_WRONG_NO_PART_ERROR)</td>
<td>定义了错误的分区数，与前面的设置不匹配</td>
</tr>
<tr>
<td>1459</td>
<td>HY000 (ER_PARTITION_WRONG_NO_SUBPART_ERROR)</td>
<td>定义了错误的子分区数，与前面的设置不匹配</td>
</tr>
<tr>
<td>1460</td>
<td>HY000 (ER_CONST_EXPR_IN_PARTITION_FUNC_ERROR)</td>
<td>在分区（子分区）函数中不允许使用常量/随机表达式</td>
</tr>
<tr>
<td>1461</td>
<td>HY000 (ER_NO_CONST_EXPR_IN_RANGE_OR_LIST_ERROR)</td>
<td>RANGE/LIST VALUES 中的表达式必须是常量</td>
</tr>
<tr>
<td>1462</td>
<td>HY000 (ER_FIELD_NOT_FOUND_PART_ERROR)</td>
<td>RANGE/LIST VALEUS 中的表达式必须是常量</td>
</tr>
<tr>
<td>1463</td>
<td>HY000 (ER_LIST_OF_FIELDS_ONLY_IN_HASH_ERROR)</td>
<td>仅在 KEY 分区中允许或使用字段列表</td>
</tr>
<tr>
<td>1464</td>
<td>HY000 (ER_INCONSISTENT_PARTITION_INFO_ERROR)</td>
<td>frm 文件中的分区信息与能够写入到 frm 文件中的不一致</td>
</tr>
<tr>
<td>1465</td>
<td>HY000 (ER_PARTITION_FUNC_NOT_ALLOWED_ERROR)</td>
<td>%s 函数返回了错误类型</td>
</tr>
<tr>
<td>1466</td>
<td>HY000 (ER_PARTITIONS_MUST_BE_DEFINED_ERROR)</td>
<td>对于 %s 分区，必须定义每个分区</td>
</tr>
<tr>
<td>1467</td>
<td>HY000 (ER_RANGE_NOT_INCREASING_ERROR)</td>
<td>对于各分区，VALUES LESS THAN 值必须严格增大</td>
</tr>
<tr>
<td>1468</td>
<td>HY000 (ER_INCONSISTENT_TYPE_OF_FUNCTIONS_ERROR)</td>
<td>VALUES 值必须与分区函数具有相同的类型</td>
</tr>
<tr>
<td>1469</td>
<td>HY000 (ER_MULTIPLE_DEF_CONST_IN_LIST_PART_ERROR)</td>
<td>LIST 分区中多次定义相同的常量</td>
</tr>
<tr>
<td>1470</td>
<td>HY000 (ER_PARTITION_ENTRY_ERROR)</td>
<td>在查询中，不能独立使用分区功能1471</td>
</tr>
<tr>
<td>1472</td>
<td>HY000 (ER_PARTITION_NOT_DEFINED_ERROR)</td>
<td>对于分区引擎，有必要定义所有的 %s</td>
</tr>
<tr>
<td>1473</td>
<td>HY000 (ER_TOO_MANY_PARTITIONS_ERROR)</td>
<td>定义了过多的分区</td>
</tr>
<tr>
<td>1474</td>
<td>HY000 (ER_SUBPARTITION_ERROR)</td>
<td>对于子分区，仅能将 RANGE/LIST 分区与 HASH/KEY 分区混合起来</td>
</tr>
<tr>
<td>1475</td>
<td>HY000 (ER_CNAT_CREATE_HANDLER_FILE)</td>
<td>无法创建特定的句柄文件</td>
</tr>
<tr>
<td>1476</td>
<td>HY000 (ER_BLOB_FIELD_IN_PART_FUNC_ERROR)</td>
<td>如果为分区函数选择了二进制校队，才允许使用 VARCHAR</td>
</tr>
<tr>
<td>1477</td>
<td>HY000 (ER_CHAR_SET_IN_PART_FIELD_ERROR)</td>
<td>在分区函数中，不允许使用 BLOB 字段</td>
</tr>
<tr>
<td>1478</td>
<td>HY000 (ER_UNIQUE_KEY_NEED_ALL_FIELD_IN_PF)</td>
<td>在分区函数中，%s 需要包含所有文件</td>
</tr>
<tr>
<td>1479</td>
<td>HY000 (ER_NO_PARTS_ERROR)</td>
<td>%s 的数目 = 0 不是允许的值</td>
</tr>
<tr>
<td>1480</td>
<td>HY000 (ER_PARTITION_MGMT_ON_NONPARTITIONED)</td>
<td>无法在非分区表上进心分区管理</td>
</tr>
<tr>
<td>1481</td>
<td>HY000 (ER_DROP_PARTITION_NON_EXISTENT)</td>
<td>分区列表中的错误出现变化</td>
</tr>
<tr>
<td>1482</td>
<td>HY000 (ER_DROP_LAST_PARTITION)</td>
<td>不能删除所有分区，请使用 DROP TABLE 取而代之</td>
</tr>
<tr>
<td>1483</td>
<td>HY000 (ER_COALESCE_ONLY_ON_HASH_PARTITION)</td>
<td>COALESCE PARTITION 仅能在 HASH/KEY 分区上使用</td>
</tr>
<tr>
<td>1484</td>
<td>HY000 (ER_ONLY_ON_RANGE_LIST_PARTITION)</td>
<td>%s PARTITION 仅能在 RANGE/LIST 分区上使用</td>
</tr>
<tr>
<td>1485</td>
<td>HY000 (ER_ADD_PARTITION_SUBPART_ERROR)</td>
<td>视图用错误的子分区数增加分区</td>
</tr>
<tr>
<td>1486</td>
<td>HY000 (ER_ADD_PARTITION_NO_NEW_PARTITION)</td>
<td>必须至少添加 1 个分区</td>
</tr>
<tr>
<td>1487</td>
<td>HY000 (ER_COALESCE_PARTITION_NO_PARTITION0</td>
<td>必须至少合并 1 个分区</td>
</tr>
<tr>
<td>1488</td>
<td>HY000 (ER_REORG_PARTITION_NOT_EXISTS)</td>
<td>重组的分区数超过了已有的分区数</td>
</tr>
<tr>
<td>1489</td>
<td>HY000 (ER_SAME_NAME_PARTITION)</td>
<td>在表中，所有分区必须有唯一的名称</td>
</tr>
<tr>
<td>1490</td>
<td>HY000 (ER_CONSECUTIVE_REORG_PARTITIONS)</td>
<td>重组分区集合时，它们必须连续</td>
</tr>
<tr>
<td>1491</td>
<td>HY000 (ER_REORG_QUTSIDE_RANGE)</td>
<td>新分区的范围超过了已重组分区的范围</td>
</tr>
<tr>
<td>1492</td>
<td>HY000 (ER_DROP_PARTITION_FAILURE)</td>
<td>在该版本的句柄中，不支持撤消分区</td>
</tr>
<tr>
<td>1493</td>
<td>HY000 (ER_DROP_PARTITION_WHEN_FK_DEFINED)</td>
<td>在表上定义了外键约束时，不能删除分区</td>
</tr>
<tr>
<td>1494</td>
<td>HY000 (ER_PLUGIN_IS_NOT_LOADED)</td>
<td>未加载插件 &#8216;%s&#8217;</td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.livingelsewhere.net/2012/05/02/mysql-server-error-code-1301-%e2%80%93/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Server error code 1201 – 1300</title>
		<link>http://www.livingelsewhere.net/2012/05/02/mysql-server-error-code-1201-%e2%80%93-1300/</link>
		<comments>http://www.livingelsewhere.net/2012/05/02/mysql-server-error-code-1201-%e2%80%93-1300/#comments</comments>
		<pubDate>Wed, 02 May 2012 07:34:11 +0000</pubDate>
		<dc:creator>Summer</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL Base]]></category>

		<guid isPermaLink="false">http://www.livingelsewhere.net/?p=1632</guid>
		<description><![CDATA[Error SQLSTATE Message 1202 HY000 (ER_SLAVE_THREAD) 无法创建从线程，请检查系统资源 1203 42000 (ER_TOO_MANY_USER_CONNECTIONS) 用户 &#8216;%s&#8217; 已有了超过 max_user_connections 的活动连接 1204 HY000 (ER_SET_CONSTANTS_ONLY) 或许仅用与 SET 一起使用常量表达式 1205 HY000 (ER_LOCK_WAIT_TIMEOUT) 超过了锁定等待超时，请尝试重新启动事务 1206 HY000 (ER_LOCK_TABLE_FULL) 总的锁定数超过了锁定表的大小 1207 25000 (ER_READ_ONLY_TRANSACTION) 在 READ UNCOMMITTED 事务期间，无法获得更新锁定 1208 HY000 (ER_DROP_DB_WITH_READ_LOCK) 当线程保持为全局读锁定时，不允许 DROP DATABASE 1210 HY000 (ER_WRONG_ARGUMENTS) 为 &#8216;%s&#8217; 提供的常量不正确 1211 42000 (ER_NO_PERMISSION_TO_CREATE_USER) 不允许 &#8216;%s&#8217;@'%s&#8217; 创建新用户 1212 [...]]]></description>
			<content:encoded><![CDATA[<table class="example">
<tr>
<th>Error</th>
<th>SQLSTATE</th>
<th>Message</th>
</tr>
<tr>
<td>1202</td>
<td>HY000 (ER_SLAVE_THREAD)</td>
<td>无法创建从线程，请检查系统资源</td>
</tr>
<tr>
<td>1203</td>
<td>42000 (ER_TOO_MANY_USER_CONNECTIONS)</td>
<td>用户 &#8216;%s&#8217; 已有了超过 max_user_connections 的活动连接</td>
</tr>
<tr>
<td>1204</td>
<td>HY000 (ER_SET_CONSTANTS_ONLY)</td>
<td>或许仅用与 SET 一起使用常量表达式</td>
</tr>
<tr>
<td>1205</td>
<td>HY000 (ER_LOCK_WAIT_TIMEOUT)</td>
<td>超过了锁定等待超时，请尝试重新启动事务</td>
</tr>
<tr>
<td>1206</td>
<td>HY000 (ER_LOCK_TABLE_FULL)</td>
<td>总的锁定数超过了锁定表的大小</td>
</tr>
<tr>
<td>1207</td>
<td>25000 (ER_READ_ONLY_TRANSACTION)</td>
<td>在 READ UNCOMMITTED 事务期间，无法获得更新锁定</td>
</tr>
<tr>
<td>1208</td>
<td>HY000 (ER_DROP_DB_WITH_READ_LOCK)</td>
<td>当线程保持为全局读锁定时，不允许 DROP DATABASE</td>
</tr>
<tr>
<td>1210</td>
<td>HY000 (ER_WRONG_ARGUMENTS)</td>
<td>为 &#8216;%s&#8217; 提供的常量不正确</td>
</tr>
<tr>
<td>1211</td>
<td>42000 (ER_NO_PERMISSION_TO_CREATE_USER)</td>
<td>不允许 &#8216;%s&#8217;@'%s&#8217; 创建新用户</td>
</tr>
<tr>
<td>1212</td>
<td>HY000 (ER_UNION_TABLES_IN_DIFFRENT_DIR)</td>
<td>不正确的表定义，所有的 MERGE 表必须位于相同的数据库中</td>
</tr>
<tr>
<td>1213</td>
<td>40001 (ER_LOCK_DEADLOCK)</td>
<td>试图读取锁定时发现死锁，请尝试重新启动事务</td>
</tr>
<tr>
<td>1214</td>
<td>HY000 (ER_TABLE_CANT_HANDLE_FT)</td>
<td>所使用的表类型不支持 FULLTEXT 索引</td>
</tr>
<tr>
<td>1215</td>
<td>HY000 (ER_CANNOT_ADD_FOREIGN)</td>
<td>无法添加外键约束</td>
</tr>
<tr>
<td>1216</td>
<td>23000 (ER_NO_REFERENCED_ROW)</td>
<td>无法添加或更新子行，外键约束失败</td>
</tr>
<tr>
<td>1217</td>
<td>23000 (ER_ROW_IS_REFERENCED)</td>
<td>无法删除或更新父行，外键约束失败</td>
</tr>
<tr>
<td>1218</td>
<td>08S01 (ER_CONNECT_TO_MASTER)</td>
<td>连接至主服务器 &#8216;%s&#8217; 时出错</td>
</tr>
<tr>
<td>1219</td>
<td>HY000 (ER_QUERY_ON_MASTER)</td>
<td>在主服务器 &#8216;%s&#8217; 上执行查询时出错</td>
</tr>
<tr>
<td>1220</td>
<td>HY000 (ER_ERROR_WHEN_EXECUTING_COMMAND)</td>
<td>执行命令　%s:%s 时出错</td>
</tr>
<tr>
<td>1221</td>
<td>HY000 (ER_WRONG_USAGE)</td>
<td>%s 和 %s 的用法不正确</td>
</tr>
<tr>
<td>1222</td>
<td>21000 (ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT)</td>
<td>所使用的 SELECT 语句有不同的列数</td>
</tr>
<tr>
<td>1223</td>
<td>HY000 (ER_CANT_UPDATE_WITH_READLOCK）</td>
<td>由于存在冲突的的读书定，无法执行查询</td>
</tr>
<tr>
<td>1224</td>
<td>HY000 (ER_MIXING_NOT_ALLOWED)</td>
<td>禁止混合事务性和非事务性表</td>
</tr>
<tr>
<td>1225</td>
<td>HY000 (ER_DUP_ARGUMENT)</td>
<td>在语句中使用了两次选项 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1226</td>
<td>42000 (ER_USER_LIMIT_REACHED)</td>
<td>用户 &#8216;%s&#8217; 超出了 &#8216;%s&#8217; 资源（当前值：%ld）</td>
</tr>
<tr>
<td>1227</td>
<td>42000 (ER_SPECIFIC_ACCESS_DENIED_ERROR)</td>
<td>拒绝访问，需要 &#8216;%s&#8217; 权限才能执行该操作</td>
</tr>
<tr>
<td>1228</td>
<td>HY000 (ER_LOCAL_VARIABLE)</td>
<td>变量 &#8216;%s&#8217; 是 SESSION 变量，不能与 SET GLOBAL 一起使用</td>
</tr>
<tr>
<td>1229</td>
<td>HY000 (ER_GLOBAL_VARIABLE)</td>
<td>变量 &#8216;%s&#8217; 是 GLOBAL 变量，应使用 SET GLOBAL 来设置</td>
</tr>
<tr>
<td>1230</td>
<td>42000 (ER_NO_DEFAULT)</td>
<td>变量 &#8216;%s&#8217; 没有默认值</td>
</tr>
<tr>
<td>1231</td>
<td>42000 (ER_WRONG_VALUE_FOR_VAR)</td>
<td>变量 &#8216;%s&#8217; 不能设置为值 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1232</td>
<td>42000 (ER_WRONG_TYPE_FOR_VAR)</td>
<td>变量 &#8216;%s&#8217; 的参数类型不正确</td>
</tr>
<tr>
<td>1233</td>
<td>HY000 (ER_VAR_CANT_BE_RE)</td>
<td>变量 &#8216;%s&#8217; 只能被设置，不能被读取</td>
</tr>
<tr>
<td>1234</td>
<td>42000 (ER_CANT_USE_OPTION_HERE)</td>
<td>不正确的 &#8216;%s&#8217; 用法/位置</td>
</tr>
<tr>
<td>1235</td>
<td>42000 (ER_NOT_SUPPORTED_YET)</td>
<td>该 MySQL 版本尚不支持 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1236</td>
<td>HY000 (ER_MASTER_FATAL_ERROR_READING_BINLOG)</td>
<td>从二进制日志读取数据时，获得来自主服务器的致命错误 %d ：&#8217;%s&#8217;</td>
</tr>
<tr>
<td>1237</td>
<td>HY000 (ER_SLAVE_IGNORED_TABLE)</td>
<td>由于 replicate-*-table 规则，从 SQL 线程忽略了查询</td>
</tr>
<tr>
<td>1238</td>
<td>HY000 (ER_INCORRECT_GLOBAL_LOCAL_VAR)</td>
<td>变量 &#8216;%s&#8217; 是一种 &#8216;%s&#8217; 变量</td>
</tr>
<tr>
<td>1239</td>
<td>42000 (ER_WRONG_FK_DEF)</td>
<td>对于 &#8216;%s&#8217; : &#8216;%s&#8217;, 外键定义不正确</td>
</tr>
<tr>
<td>1240</td>
<td>HY000 (ER_KEY_REF_DO_NOT_MATCH_TABLE_REF)</td>
<td>键引用和表引用不匹配</td>
</tr>
<tr>
<td>1241</td>
<td>21000 (ER_OPERAND_COLUMNS)</td>
<td>操作数应包含 %d 列</td>
</tr>
<tr>
<td>1242</td>
<td>21000 (ER_SUBQUERY_NO_1_ROW)</td>
<td>子查询返回 1 行以上</td>
</tr>
<tr>
<td>1243</td>
<td>HY000 (ER_UNKNOWN_STMT_HANDLER)</td>
<td>指定给 %s 的未知预处理语句句柄</td>
</tr>
<tr>
<td>1244</td>
<td>HY000 (ER_CORRUPT_HELP_DB)</td>
<td>帮助数据库崩溃或不存在 (Help database is corrupt or does not exist)</td>
</tr>
<tr>
<td>1245</td>
<td>HY000 (ER_CYCLIC_REFERENCE)</td>
<td>对子查询的循环引用</td>
</tr>
<tr>
<td>1246</td>
<td>HY000 (ER_AUTO_CONVERT)</td>
<td>将列 &#8216;%s&#8217; 从 &#8216;%s&#8217; 转换为 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1247</td>
<td>42S22 (ER_ILLEGAL_REFERENCE)</td>
<td>引用 &#8216;%s&#8217; 不被支持 (%s)</td>
</tr>
<tr>
<td>1248</td>
<td>42000 (ER_DERIVED_MUST_HAVE_ALIAS)</td>
<td>所有的导出表必须有自己的别名</td>
</tr>
<tr>
<td>1249</td>
<td>01000 (ER_SELECT_REDUCED)</td>
<td>在优化期间简化了选择 %u</td>
</tr>
<tr>
<td>1250</td>
<td>42000 (ER_TABLENAME_NOT_ALLOWED_HERE)</td>
<td>来自某一 SELECT 的表 &#8216;%s&#8217; 不能在 &#8216;%s&#8217; 中使用</td>
</tr>
<tr>
<td>1251</td>
<td>08004 (ER_NOT_SUPPORT_AUTH_MODE)</td>
<td>客户端不支持服务器请求的授权协议，请考虑升级 MySQL 客户端</td>
</tr>
<tr>
<td>1252</td>
<td>42000 (ER_SPATIAL_CANT_HAVE_NULL)</td>
<td>SPATIAL 索引的所有部分必须是 NOT NULL</td>
</tr>
<tr>
<td>1253</td>
<td>42000 (ER_COLLATION_CHARSET_MISMATCH)</td>
<td>对于 CHARACTER SET &#8216;%s&#8217;， COLLATION &#8216;%s&#8217; 无效</td>
</tr>
<tr>
<td>1254</td>
<td>HY000 (ER_SLAVE_WAS_RUNNING)</td>
<td>从服务器正在运行</td>
</tr>
<tr>
<td>1255</td>
<td>HY000 (ER_SLAVE_WAS_NOT_RUNNING)</td>
<td>从服务器已停止</td>
</tr>
<tr>
<td>1256</td>
<td>HY000 (ER_TOO_BIG_FOR_UNCOMPRESS)</td>
<td>解压的数据过大，最大大小为 %d （也可能是，解压数据的长度已损坏）(Uncompressed data size too large; the maximum size is %d (probably, length of umcompressed data was corrupted))</td>
</tr>
<tr>
<td>1257</td>
<td>HY000 (ER_ZLIB_Z_MEM_ERROR)</td>
<td>ZLIB，无足够内存</td>
</tr>
<tr>
<td>1258</td>
<td>HY000 (ER_ZLIB_Z_BUF_ERROR)</td>
<td>ZLIB，输出缓冲区无足够内存（也可能是，解压数据的长度的已损坏）</td>
</tr>
<tr>
<td>1259</td>
<td>HY000 (ER_ZLIB_Z_DATA_ERROR)</td>
<td>ZLIB，输入数据已损坏</td>
</tr>
<tr>
<td>1260</td>
<td>HY000 (ER_CUT_VALUE_GROUP_CONCAT)</td>
<td>%d 行被 GROUP_CONCAT() 截去</td>
</tr>
<tr>
<td>1261</td>
<td>01000 (ER_WARN_TOO_FEW_RECORDS)</td>
<td>行 %ld 不包含所有列的数据 (Row %ld doesn&#8217;t contain data for all columns)</td>
</tr>
<tr>
<td>1262</td>
<td>01000 (ER_WANT_TOO_MANY_RECORDS)</td>
<td>行 %ld 被截断，它包含的数据大于是进入列中的数据 (Row %ld was truncated; it contained more data than there were input columns)</td>
</tr>
<tr>
<td>1263</td>
<td>22004 (ER_WARN_NULL_TO_NOTNULL)</td>
<td>列被设为默认值，在行 %ld 上将 NULL 提供给了 NOT NULL 列</td>
</tr>
<tr>
<td>1264</td>
<td>22003 (ER_WARN_DATA_OUT_OF_RANGE)</td>
<td>为行 %ld 上的列 &#8216;%s&#8217; 调整出超出范围的值</td>
</tr>
<tr>
<td>1265</td>
<td>01000 (WARN_DATA_TRUNCATED)</td>
<td>为行 %ld 上的列 &#8216;%s&#8217; 截短数据</td>
</tr>
<tr>
<td>1266</td>
<td>HY000 (ER_WARN_USING_OUTER_HANDLER)</td>
<td>为表 &#8216;%s&#8217; 使用存储引擎 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1267</td>
<td>HY000 (ER_CANT_AGGREGATE_2COLLATIONS)</td>
<td>对于操作 &#8216;%s&#8217;，非法混合了校队 (%s, %s) 和 (%s, %s)</td>
</tr>
<tr>
<td>1268</td>
<td>HY000 (ER_DROP_USER)</td>
<td>无法撤消所有权限，为 1 个或多个请求的用户授权</td>
</tr>
<tr>
<td>1269</td>
<td>HY000 (ER_REVOKE_GRANTS)</td>
<td>无法撤消所有权限，为 1 个或个请求的用户授权</td>
</tr>
<tr>
<td>1270</td>
<td>HY000 (ER_CANT_AGGREGATE_3COLLATIONS)</td>
<td>对于操作 &#8216;%s&#8217;，非法混合了校队 (%s, %s)、(%s, %s) 和 (%s, %s)</td>
</tr>
<tr>
<td>1271</td>
<td>HY000 (ER_CANT_AGGREGATE_NCOLLATIONS)</td>
<td>对于操作 &#8216;%s&#8217;，非法混合了校队</td>
</tr>
<tr>
<td>1272</td>
<td>HY000 (ER_VARIABLE_IS_NOT_STRUCT)</td>
<td>变量 &#8216;%s&#8217; 不是变量组分（不能用作 XXXX.variable_name）</td>
</tr>
<tr>
<td>1273</td>
<td>HY000 (ER_UNKNOWN_COLLATION)</td>
<td>未知校对 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1274</td>
<td>HY000 (ER_SLAVE_IGNORED_SSL_PARAMS)</td>
<td>由于该服务器从服务器是在不支持 SSL 的情况下编译的，CHANGE MASTER 中的 SSL 参数被忽略，随后，如果启动了具备 SSL 功能的 MySQL，可使用这些参数</td>
</tr>
<tr>
<td>1275</td>
<td>HY000 (ER_SERVER_IS_IN_SECURE_AUTH_MODE)</td>
<td>服务器正在运行在 &#8211;secure-auth 模式下，但 &#8216;%s&#8217;@'%s&#8217; 有 1 个采用旧格式的密码，请将密码更改为新格式</td>
</tr>
<tr>
<td>1276</td>
<td>HY000 (ER_WARN_FIELD_RESOLVED)</td>
<td>SELECT #%ld 的字段或引用 &#8216;%s%s%s%s%s&#8217; 是在 SELECT #%d 中确定的</td>
</tr>
<tr>
<td>1277</td>
<td>HY000 (ER_BAD_SLAVE_UNTIL_COND)</td>
<td>对于 START SLAVE UNTIL，不正确的参数或参数组合</td>
</tr>
<tr>
<td>1278</td>
<td>HY000 (ER_MISSING_SKIP_SLAVE)</td>
<td>与 START SLAVE UNTIL 一起执行按步复制时，建议使用 &#8211;skip-slave-start，否则，如果发生未预料的从服务器 mysqld 重启，将出现问题</td>
</tr>
<tr>
<td>1279</td>
<td>HY000 (ER_UNTIL_COND_IGNORED)</td>
<td>SQL 线程未启动，因而 UNTIL 选项被忽略</td>
</tr>
<tr>
<td>1280</td>
<td>42000 (ER_WRONG_NAME_FOR_INDEX)</td>
<td>不正确的索引名 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1281</td>
<td>42000 (ER_WRONG_NAME_FOR_CATALOG)</td>
<td>不正确的目录名 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1282</td>
<td>HY000 (ER_WARN_QC_RESIZE)</td>
<td>查询高速缓冲设置大小为 %lu 时失败，新的查询高速缓冲的大小是 %lu</td>
</tr>
<tr>
<td>1283</td>
<td>HY000 (ER_BAD_FT_COLUMN)</td>
<td>列 &#8216;%s&#8217; 不能是 FULLTEXT 索引的一部分</td>
</tr>
<tr>
<td>1284</td>
<td>HY000 (ER_UNKNOWN_KEY_CACHE)</td>
<td>未知的键高速缓冲 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1285</td>
<td>HY000 (ER_WARN_HOSTNAME_WONT_WORK)</td>
<td>MySQL 是在 &#8211;skip-name-resolve 模式下启动的，必须在不使用该开关的情况向爱重启它，以便该授权起作用</td>
</tr>
<tr>
<td>1286</td>
<td>42000 (ER_UNKNOWN_STORAGE_ENGINE)</td>
<td>未知的表引擎 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1287</td>
<td>HY000 (ER_WARN_DEPRECATED_SYNTAX)</td>
<td>&#8216;%s&#8217; 已过时，请使用 &#8216;%s&#8217; 取而代之</td>
</tr>
<tr>
<td>1288</td>
<td>HY000 (ER_NON_UPDATED_TABLE)</td>
<td>&#8216;%s&#8217; 的目标表 &#8216;%s&#8217; 不可更新</td>
</tr>
<tr>
<td>1289</td>
<td>HY000 (ER_FEATURE_DISABLED)</td>
<td>&#8216;%s&#8217; 特性已被禁止，要想使其工作，需要用 &#8216;%s&#8217; 创建 MySQL</td>
</tr>
<tr>
<td>1290</td>
<td>HY000 (ER_OPTION_PREVENTS_STATEMENT)</td>
<td>MySQL 正使用 &#8216;%s&#8217; 选项运行，因此不能执行该语句</td>
</tr>
<tr>
<td>1291</td>
<td>HY000 (ER_DUPLICATED_VALUE_IN_TYPE)</td>
<td>列 &#8216;%s&#8217; 在 &#8216;%s&#8217; 中有重复值 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1292</td>
<td>22007 (ER_TRUNCATED_WRONG_VALUE)</td>
<td>截断了不正确的 %s 值：&#8217;%s&#8217;</td>
</tr>
<tr>
<td>1293</td>
<td>HY000 (ER_TOO_MUCH_AUTO_TIMESTAMP_COLS)</td>
<td>不正确的表定义，在 DEFAULT 或 ON UPDATE 子句中，对于 CURRENT_TIMESTAMP， 只有有一个 TIMESTAMP 列</td>
</tr>
<tr>
<td>1294</td>
<td>HY000 (ER_INVALID_ON_UPDATE)</td>
<td>对于 &#8216;%s&#8217; 列，ON UPDATE 子句无效</td>
</tr>
<tr>
<td>1296</td>
<td>HY000 (ER_GET_ERRMSG)</td>
<td>从 %s 获得错误 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1297</td>
<td>HY000 (ER_GET_TEMPORARY_ERRMSG)</td>
<td>从 %s 获得临时错误 %d &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1298</td>
<td>HY000 (ER_UNKNOWN_TIME_ZONE)</td>
<td>未知或不正确的时区：&#8217;%s&#8217;</td>
</tr>
<tr>
<td>1299</td>
<td>HY000 (ER_WARN_INVALID_TIMESTAMP)</td>
<td>在行 %ld 的列 &#8216;%s&#8217; 中存在无效的 TIMESTAMP 值</td>
</tr>
<tr>
<td>1300</td>
<td>HY000 (ER_INVALID_CHARACTER_STRING)</td>
<td>无效的 %s 字符串: &#8216;%s&#8217;</td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.livingelsewhere.net/2012/05/02/mysql-server-error-code-1201-%e2%80%93-1300/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Server error code 1101 &#8211; 1200</title>
		<link>http://www.livingelsewhere.net/2012/05/02/mysql-server-error-code-1101-1200/</link>
		<comments>http://www.livingelsewhere.net/2012/05/02/mysql-server-error-code-1101-1200/#comments</comments>
		<pubDate>Wed, 02 May 2012 07:32:35 +0000</pubDate>
		<dc:creator>Summer</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL Base]]></category>

		<guid isPermaLink="false">http://www.livingelsewhere.net/?p=1628</guid>
		<description><![CDATA[Error SQLSTATE Message 1101 42000 (ER_BLOB_CANT_HAVE_DEFAULT) BLOB/TEXT 列 &#8216;%s&#8217; 不能有默认值 1102 42000 (ER_WRONG_DB_NAME) 不正确的数据库名 &#8216;%s&#8217; 1104 42000 (ER_TOO_BIG_SELECT) SELECT 将检查超过 MAX_JOIN_SIZE 的行，如果 SELECT 正常，请检查 WHERE，并使用 SET SQL_BIG_SELECTS = 1 或 SET SQL_MA_JOIN_SIZE = # 1105 HY000 (ER_UNKNOWN_ERROR) 未知错误 1106 42000 (ER_UNKNOWN_PROCEDURE) 未知过程 &#8216;%s&#8217; 1107 42000 (ER_WRONG_PARAMCOUNT_TO_PROCEDURE) 对于过程 &#8216;%s&#8217;， 参数计数不正确 1108 HY000 (ER_WRONG_PARAMETERS_TO_PROCEDURE) 对于过程 &#8216;%s&#8217;，参数不正确 1109 [...]]]></description>
			<content:encoded><![CDATA[<table class="example">
<tr>
<th>Error</th>
<th>SQLSTATE</th>
<th>Message</th>
</tr>
<tr>
<td>1101</td>
<td>42000 (ER_BLOB_CANT_HAVE_DEFAULT)</td>
<td>BLOB/TEXT 列 &#8216;%s&#8217; 不能有默认值</td>
</tr>
<tr>
<td>1102</td>
<td>42000 (ER_WRONG_DB_NAME)</td>
<td>不正确的数据库名 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1104</td>
<td>42000 (ER_TOO_BIG_SELECT)</td>
<td>SELECT 将检查超过 MAX_JOIN_SIZE 的行，如果 SELECT 正常，请检查 WHERE，并使用 SET SQL_BIG_SELECTS = 1 或 SET SQL_MA_JOIN_SIZE = #</td>
</tr>
<tr>
<td>1105</td>
<td>HY000 (ER_UNKNOWN_ERROR)</td>
<td>未知错误</td>
</tr>
<tr>
<td>1106</td>
<td>42000 (ER_UNKNOWN_PROCEDURE)</td>
<td>未知过程 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1107</td>
<td>42000 (ER_WRONG_PARAMCOUNT_TO_PROCEDURE)</td>
<td>对于过程 &#8216;%s&#8217;， 参数计数不正确</td>
</tr>
<tr>
<td>1108</td>
<td>HY000 (ER_WRONG_PARAMETERS_TO_PROCEDURE)</td>
<td>对于过程 &#8216;%s&#8217;，参数不正确</td>
</tr>
<tr>
<td>1109</td>
<td>42S02 (ER_UNKNOWN_TABLE)</td>
<td>&#8216;%s&#8217; 中的未知表 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1110</td>
<td>42000 (ER_FIELD_SPECIFIED_TWICE)</td>
<td>列 &#8216;%s&#8217; 被指定了两次</td>
</tr>
<tr>
<td>1111</td>
<td>HY000 (ER_INVALID_GROUP_FUNC_USE)</td>
<td>无效的分组函数使用</td>
</tr>
<tr>
<td>1112</td>
<td>42000 (ER_UNSUPPORTED_EXTENSION)</td>
<td>表 &#8216;%s&#8217; 使用了该 MySQL 版本中不支持的扩展</td>
</tr>
<tr>
<td>1113</td>
<td>42000 (ER_TABLE_MUST_HAVE_COLUMNS)</td>
<td>1 个表至少有有 1 列</td>
</tr>
<tr>
<td>1114</td>
<td>HY000 (ER_RECORD_FILE_FULL)</td>
<td>表 &#8216;%s&#8217; 已满</td>
</tr>
<tr>
<td>1115</td>
<td>42000 (ER_UNKNOWN_CHARACTER_SET)</td>
<td>未知字符集 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1116</td>
<td>HY000 (ER_TOO_MANY_TABLES)</td>
<td>表过多，MySQL 在 1 个联合操作中只能使用 %d 个表</td>
</tr>
<tr>
<td>1117</td>
<td>HY000 (ER_TOO_MANY_FIELDS)</td>
<td>列过多</td>
</tr>
<tr>
<td>1118</td>
<td>42000 (ER_TOO_BIG_ROWSIZE)</td>
<td>行的大小过大。对于所使用的表类型，不包括 BLOB，最大行大小为 %d，必须将某些列更改为 TEXT 或 BLOB</td>
</tr>
<tr>
<td>1119</td>
<td>HY000 (ER_STACK_OVERRUN)</td>
<td>线程堆栈溢出，已使用，%ld 堆栈的 %ld。如果需要，请使用 mysqld -O thread_stack=# 指定较大的堆栈</td>
</tr>
<tr>
<td>1120</td>
<td>42000 (ER_WRONG_OUTER_JOIN)</td>
<td>在 OUTER JOIN 中发现交叉关联，请价差 ON 条件</td>
</tr>
<tr>
<td>1121</td>
<td>42000 (ER_NULL_COLUMN_IN_INDEX)</td>
<td>列 &#8216;%s&#8217; 与 UNIQUE 或 INDEX 一起使用，但未定义 NOT NULL</td>
</tr>
<tr>
<td>1122</td>
<td>HY000 (ER_CANT_FIND_UDF)</td>
<td>无法加载函数 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1123</td>
<td>HY000 (ER_CANT_INITIALIZE_UDF)</td>
<td>无法初始化函数 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1124</td>
<td>HY000 (ER_UDF_NO_PATHS)</td>
<td>对于共享库，不允许任何路径</td>
</tr>
<tr>
<td>1125</td>
<td>HY000 (ER_UDF_EXISTS)</td>
<td>函数 &#8216;%s&#8217; 已存在</td>
</tr>
<tr>
<td>1126</td>
<td>HY000 (ER_CANT_OPEN_LIBRARY)</td>
<td>不能打开共享库 ‘%s&#8217; (errno: %d %s)</td>
</tr>
<tr>
<td>1127</td>
<td>HY000 (ER_CANT_FIND_DL_ENTRY)</td>
<td>不能发现库中的符号 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1128</td>
<td>HY000 (ER_FUNCTION_NOT_DEFINED)</td>
<td>函数 &#8216;%s&#8217; 未定义</td>
</tr>
<tr>
<td>1129</td>
<td>HY000 (ER_HOST_IS_BLOCKED)</td>
<td>由于存在很多连接错误，主机 &#8216;%s&#8217; 被屏蔽，请用 mysqladmin flush-hosts 解除屏蔽</td>
</tr>
<tr>
<td>1130</td>
<td>HY000 (ER_HOST_NOT_PRIVILEGED)</td>
<td>不允许将主机 &#8216;%s&#8217; 连接到该 MySQL 服务器</td>
</tr>
<tr>
<td>1131</td>
<td>42000 (ER_PASSWORD_ANONYMOUS_USER)</td>
<td>正在用匿名身份使用 MySQL，不允许匿名用户更改密码</td>
</tr>
<tr>
<td>1132</td>
<td>42000 (ER_PASSWORD_NOT_ALLOWED)</td>
<td>必须有更新 MySQL 数据库中表的权限才能更改密码</td>
</tr>
<tr>
<td>1133</td>
<td>42000 (ER_PASSWORD_NO_MATCH)</td>
<td>无法在用户表中找到匹配行</td>
</tr>
<tr>
<td>1134</td>
<td>HY000 (ER_UPDATE_INFO)</td>
<td>行匹配，%ld；已更改，%ld；警告，%ld</td>
</tr>
<tr>
<td>1135</td>
<td>HY000 (ER_CANT_CREATE_THREAD)</td>
<td>无法创建线程 (errno: %d)，如果未出现内存溢出，请参阅手册以了解可能的与操作系统有关的缺陷</td>
</tr>
<tr>
<td>1136</td>
<td>21S01 (ER_WRONG_VALUE_COUNT_ON_ROW)</td>
<td>列技术不匹配行 %ld 上的值计数</td>
</tr>
<tr>
<td>1137</td>
<td>HY000 (ER_CANT_REOPEN_TABLE)</td>
<td>无法再次打开表 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1138</td>
<td>22004 (ER_INVALID_USE_OF_NULL)</td>
<td>NULL 值使用无效</td>
</tr>
<tr>
<td>1139</td>
<td>42000 (ER_REGEXP_ERROR)</td>
<td>获得来自 regexp 的错误 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1140</td>
<td>42000 (ER_MIX_OF_GROUP_FUNC_AND_FIELDS)</td>
<td>如果没有 GROUP BY 子句， GROUP 列（MIN(), MAX(), COUNT() &#8230;）与非 GROUP 列的混合不合法</td>
</tr>
<tr>
<td>1141</td>
<td>42000 (ER_NONEXISTING_GRANT)</td>
<td>没有为主机 &#8216;%s&#8217; 上的用户 &#8216;%s&#8217; 定义这类授权</td>
</tr>
<tr>
<td>1142</td>
<td>42000 (ER_TABLEACCESS_DENIED_ERROR)</td>
<td>拒绝用户 &#8216;%s&#8217;@'%s&#8217; 在表 &#8216;%s&#8217; 上使用 &#8216;%s&#8217; 命令</td>
</tr>
<tr>
<td>1143</td>
<td>42000 (ER_COLUMNACCESS_DENIED_ERROR)</td>
<td>拒绝用户 &#8216;%s&#8217;@'%s&#8217; 在表 &#8216;%s&#8217; 上使用命令 &#8216;%s&#8217; 命令</td>
</tr>
<tr>
<td>1144</td>
<td>42000 (ER_ILLEGAL_GRANT_FOR_TABLE)</td>
<td>非法 GRANT/REVOKE 命令，请参阅手册以了解可使用何种权限</td>
</tr>
<tr>
<td>1145</td>
<td>42000 (ER_GRANT_WRONG_HOST_OR_USER)</td>
<td>GRANT 的主机或用户参量过长</td>
</tr>
<tr>
<td>1146</td>
<td>42S02 (ER_NO_SUCH_TABLE)</td>
<td>表 &#8216;%s.%s&#8217; 不存在</td>
</tr>
<tr>
<td>1147</td>
<td>42000 (ER_NONEXISTING_TABLE_GRANT)</td>
<td>在表 &#8216;%s&#8217; 上没有为主机 &#8216;%s&#8217; 上的用户 &#8216;%s&#8217; 定义这类的授权</td>
</tr>
<tr>
<td>1148</td>
<td>42000 (ER_NOT_ALLOWED_COMMAND)</td>
<td>所使用的命令在该 MySQL 版本中不允许</td>
</tr>
<tr>
<td>1149</td>
<td>42000 (ER_SYNTAX_ERROR)</td>
<td>存在 SQL 语法错误，请参阅 MySQL 版本对应的手册，以了解正确的语法</td>
</tr>
<tr>
<td>1150</td>
<td>HY000 (ER_DELAYED_CANT_CHANGE_LOCK)</td>
<td>对于表 &#8216;%s&#8217;， 延迟的插入线程不能获得请求的锁定</td>
</tr>
<tr>
<td>1151</td>
<td>HY000 (ER_TOO_MANY_DELAYED_THREADS)</td>
<td>使用的延迟线程过多</td>
</tr>
<tr>
<td>1152</td>
<td>08S01 (ER_ABORTING_CONNECTION)</td>
<td>与数据库 &#8216;%s&#8217; 和用户 &#8216;%s&#8217; 的连接 %ld 失败 (%s)</td>
</tr>
<tr>
<td>1153</td>
<td>08S01 (ER_NET_PACKET_TOO_LARGE)</td>
<td>获得消息包大于 max_allowed_packet 字节</td>
</tr>
<tr>
<td>1154</td>
<td>08S01 (ER_NET_READ_ERROR_FROM_PIPE)</td>
<td>获得来自连接管道的读错误</td>
</tr>
<tr>
<td>1155</td>
<td>08S01 (ER_NET_FCNTL_ERROR)</td>
<td>获得来自 fcntl() 的错误</td>
</tr>
<tr>
<td>1156</td>
<td>08S01 (ER_NET_PACKETS_OUT_OF_ORDER)</td>
<td>获得无序消息包</td>
</tr>
<tr>
<td>1157</td>
<td>08S01 (ER_NET_UNCOMPRESS_ERROR)</td>
<td>无法加压通信信息包</td>
</tr>
<tr>
<td>1158</td>
<td>08S01 (ER_NET_READ_ERROR)</td>
<td>读取通信信息包时出错</td>
</tr>
<tr>
<td>1159</td>
<td>08S01 (ER_NET_READ_INTERRUPTED)</td>
<td>读取通信信息包时出现超时</td>
</tr>
<tr>
<td>1160</td>
<td>08S01 (ER_NET_ERROR_ON_WRITE)</td>
<td>写入通信信息包时出错</td>
</tr>
<tr>
<td>1161</td>
<td>08S01 (ER_NET_WRITE_INTERRUPTED)</td>
<td>写入通信信息包时出现超时</td>
</tr>
<tr>
<td>1162</td>
<td>42000 (ER_TOO_LONG_STRING)</td>
<td>结果字符串长于 max_allowed_packet 字节</td>
</tr>
<tr>
<td>1163</td>
<td>42000 (ER_TABLE_CNAT_HANDLE_BLOB)</td>
<td>所使用表类型不支持 BLOB/TEXT 列</td>
</tr>
<tr>
<td>1164</td>
<td>42000 (ER_TABLE_CANT_HANDLE_AUTO_INCREMENT)</td>
<td>所使用的表类型不支持 AUTO_INCREMENT 列</td>
</tr>
<tr>
<td>1165</td>
<td>HY000 (ER_DELAYED_INSERT_TABLE_LOCKED)</td>
<td>由于用 LOCK TABLES 锁定了表， INSERT DELAYED 不能与表 &#8216;%s&#8217; 一起使用</td>
</tr>
<tr>
<td>1166</td>
<td>42000 (ER_WRONG_COLUMN_NAME)</td>
<td>不正确的列名 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1167</td>
<td>42000 (ER_WRONG_KEY_COLUMN)</td>
<td>所使用的存储引擎不能为列 &#8216;%s&#8217; 指定索引</td>
</tr>
<tr>
<td>1168</td>
<td>HY000 (ER_WRONG_MRG_TABLE)</td>
<td>MERG 表中的所有表未同等定义</td>
</tr>
<tr>
<td>1169</td>
<td>23000 (ER_DUP_UNIQUE)</td>
<td>由于唯一性限制，不能写如表 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1170</td>
<td>42000 (ER_BLOB_KEY_WITHOUT_LENGTH)</td>
<td>在未指定键长度的键说明中使用了 BLOB/TEXT 列 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1171</td>
<td>42000 (ER_PRIMARY_CANT_HAVE_NULL)</td>
<td>PRIMARY KEY 的多有部分必须是 NOT NULL， 如果需要为 NULL 的关键字，请使用 UNIQUE 取代</td>
</tr>
<tr>
<td>1172</td>
<td>42000 (ER_TOO_MANY_ROWS)</td>
<td>结果有 1 个以上的行组成</td>
</tr>
<tr>
<td>1173</td>
<td>42000 (ER_REQUIRES_PRIMARY_KEY)</td>
<td>该表类型要求主键</td>
</tr>
<tr>
<td>1174</td>
<td>HY000 (ER_NO_RAID_COMPILED)</td>
<td>该 MySQL 版本是未使用 RAID 支持而编译的</td>
</tr>
<tr>
<td>1175</td>
<td>HY000 (ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE)</td>
<td>正在使用安全更新模式，而且试图在不使用 WHERE 的情况下更新使用了 KEY 列的表</td>
</tr>
<tr>
<td>1176</td>
<td>HY000 (ER_KEY_DOES_NOT_EXITS)</td>
<td>在表 &#8216;%s&#8217; 中，键 &#8216;%s&#8217; 不存在</td>
</tr>
<tr>
<td>1177</td>
<td>42000 (ER_CHECK_NO_SUCH_TABLE)</td>
<td>无法打开表</td>
</tr>
<tr>
<td>1178</td>
<td>42000 (ER_CHECK_NOT_IMPLEMENTED)</td>
<td>用于表的引擎不支持 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1179</td>
<td>25000 (ER_CANT_DO_THIS_DURING_AN_TRANSACTION)</td>
<td>不允许在事务中执行该命令</td>
</tr>
<tr>
<td>1180</td>
<td>HY000 (ER_ERROR_DURING_COMMIT)</td>
<td>在 COMMIT 期间出现错误 %ld</td>
</tr>
<tr>
<td>1181</td>
<td>HY000 (ER_ERROR_DURING_ROLLBACK)</td>
<td>在 ROLLBACK 期间出现错误 %d</td>
</tr>
<tr>
<td>1182</td>
<td>HY000 (ER_ERROR_DURING_FLUSH_LOGS)</td>
<td>在 FLUSH_LOGS 期间出现错误 %d</td>
</tr>
<tr>
<td>1183</td>
<td>HY000 (ER_ERROR_DURING_CHECKPOINT)</td>
<td>在 CHECKPOINT 期间出现错误 %d</td>
</tr>
<tr>
<td>1184</td>
<td>08S01 (ER_NEW_ABORINT_CONNECTION)</td>
<td>与数据库 &#8216;%s&#8217;， 用户 &#8216;%s&#8217; 和主机 &#8216;%s&#8217; 的连接 %ld 失败 (%s)</td>
</tr>
<tr>
<td>1185</td>
<td>HY000 (ER_DUMP_NOT_IMPLEMENTED)</td>
<td>针对表的存储引擎不支持二进制表转储</td>
</tr>
<tr>
<td>1186</td>
<td>HY000 (ER_FLUSH_MASTER_BINLOG_CLOSED)</td>
<td>Binlog 已关闭，不能 RESET MASTER</td>
</tr>
<tr>
<td>1187</td>
<td>HY000 (ER_INDEX_REBUILD)</td>
<td>重新创建传储表 &#8216;%s&#8217; 的索引失败</td>
</tr>
<tr>
<td>1188</td>
<td>HY000 (ER_MASTER)</td>
<td>来自主连接 &#8216;%s&#8217; 的错误</td>
</tr>
<tr>
<td>1189</td>
<td>08S01 (ER_MASTER_NET_READ)</td>
<td>读取主连接时出现网络错误</td>
</tr>
<tr>
<td>1190</td>
<td>08S01 (ER_MASTER_NET_WRITE)</td>
<td>写入主连接时出现网络错误</td>
</tr>
<tr>
<td>1191</td>
<td>HY000 (ER_FT_MATCHING_KEY_NOT_FOUND)</td>
<td>无法找到与列表匹配的 FULLTEXT 索引</td>
</tr>
<tr>
<td>1192</td>
<td>HY000 (ER_LOCK_OR_ACTIVE_TRANSACTION)</td>
<td>由于存在活动的锁定表或活动的事务，不能执行给定的命令</td>
</tr>
<tr>
<td>1193</td>
<td>HY000 (ER_UNKNOWN_SYSTEM_VARIABLE)</td>
<td>未知的系统变量 &#8216;%s&#8217;</td>
</tr>
<tr>
<td>1194</td>
<td>HY000 (ER_CRASHED_ON_USAGE)</td>
<td>表 &#8216;%s&#8217; 被标记为崩溃，应予以修复</td>
</tr>
<tr>
<td>1195</td>
<td>HY000 (ER_CRASHED_ON_REPAIR)</td>
<td>表 &#8216;%s&#8217; 被标记为崩溃，而且诶上次修复失败（自动？）</td>
</tr>
<tr>
<td>1196</td>
<td>HY000 (ER_WARNING_NOT_COMPLETE_ROLLBACK)</td>
<td>不能回滚某些非事务性已变动表</td>
</tr>
<tr>
<td>1197</td>
<td>HY000 (ER_TRANS_CACHE_FULL)</td>
<td>多语句事务要求更多过的 max_binlog_cache_size 存储字节，增大 mysqld 变量，并再次尝试</td>
</tr>
<tr>
<td>1198</td>
<td>HY000 (ER_SLAVE_MUST_STOP)</td>
<td>运行从实例时不能执行该操作，请首先运行 STOP SLAVE</td>
</tr>
<tr>
<td>1199</td>
<td>HY000 (ER_SLAVE_NOT_RUNNING)</td>
<td>该操作需要运行的从实例，请配置 SLAVE 并执行 START SLAVE</td>
</tr>
<tr>
<td>1200</td>
<td>HY000 (ER_BAD_SLAVE)</td>
<td>服务区未配置为从服务器，请更正 config 文件，或使用 CHANGE MASTER TO</td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.livingelsewhere.net/2012/05/02/mysql-server-error-code-1101-1200/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

