<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="css/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>TTT BLOG</title><link>http://www.taoyoyo.net/ttt/</link><description>关注Oracle, Delphi, Linux, unix, java,以及网站知识</description><generator>RainbowSoft Studio Z-Blog 1.8 Arwen Build 81206</generator><language>zh-CN</language><copyright>Powered By Z-Blog 1.8 Arwen Build 81206 蜀ICP备10030360号&amp;amp;nbsp;廊公备13100001344  Copyright@2005-2010 Taoyoyo.net, Inc. All Rights Reserved.</copyright><pubDate>Thu, 17 Nov 2011 11:43:35 +0800</pubDate><item><title>Oracal查看被锁对象及解锁方法</title><author>a@b.com (taoether)</author><link>http://www.taoyoyo.net/ttt/post/560.html</link><pubDate>Thu, 17 Nov 2011 11:20:59 +0800</pubDate><guid>http://www.taoyoyo.net/ttt/post/560.html</guid><description><![CDATA[<div>&nbsp;</div><div>Oracal数据库中的一个表的一条记录被锁定时，既不能修改也不能删除（程序上没有响应）。</div><div>删除表对象也不行，报错：ORA_00054:资源正忙，要求指定NOWAIT</div><div>&nbsp;</div><div>可以通过以下办法解决。</div><div>　　</div><blockquote><div>--1，查看锁</div><div>Select * From v$locked_object;</div><div>--or</div><div>Select object_id,session_id,locked_mode From v$locked_object;</div><div>--or</div><div>Select b.owner,b.object_name,l.session_id,l.locked_mode</div><div>From v$locked_object l, dba_objects b</div><div>Where b.object_id=l.object_id</div><div>&nbsp;</div><div>--2，找出sid,serial#号</div><div>Select t2.username,t2.sid,t2.serial#,t2.logon_time</div><div>From v$locked_object t1,v$session t2</div><div>Where t1.session_id=t2.sid Order by t2.logon_time;</div><div>&nbsp;</div><div>--以上两步可以直接用以下语句查出被锁记录的表名，SID，Serial#，用户名，机器名等信息。</div><div>select s.username, o.owner,o.object_name,o.object_type,</div><div>decode(l.type,'TM','TABLE LOCK', 'TX','ROW LOCK',NULL) LOCK_LEVEL,</div><div>s.sid,s.serial#,s.terminal,s.machine,s.program,s.osuser</div><div>from v$session s,v$lock l,dba_objects o</div><div>where s.sid=l.sid</div><div>and o.object_id=l.id1</div><div>and s.username is not null</div><div>&nbsp;</div><div>--3，解锁：杀死被锁的session(用上面查出的SID，Serial#)</div><div>Alter system Kill session 'sid,serial#'</div><div>--or</div><div>Alter system disconnect session 'sid, serial#' immediate;</div></blockquote><div>&nbsp;</div><div>还可以采用重新启动数据库方法，这是笨方法啊~~</div><div>&nbsp;</div><p>&nbsp;</p>]]></description><category>Oracle</category><comments>http://www.taoyoyo.net/ttt/post/560.html#comment</comments><wfw:comment>http://www.taoyoyo.net/ttt/</wfw:comment><wfw:commentRss>http://www.taoyoyo.net/ttt/feed.asp?cmt=560</wfw:commentRss><trackback:ping>http://www.taoyoyo.net/ttt/cmd.asp?act=tb&amp;id=560&amp;key=b69b9216</trackback:ping></item><item><title>野外生存知识：各类绳结的打法及用途</title><author>a@b.com (taoether)</author><link>http://www.taoyoyo.net/ttt/post/558.html</link><pubDate>Fri, 04 Nov 2011 14:56:21 +0800</pubDate><guid>http://www.taoyoyo.net/ttt/post/558.html</guid><description><![CDATA[<p>&nbsp;</p><p><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Arial; line-height: normal; font-size: medium; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: normal; ">经常看m vs w的同学们肯定都想学习如何打绳结，虽然bear每集都说了下打法，不过想必或是因为速度过快或是因为讲解比较笼统，大家很难明白打法。这里收集了部分绳结的打法，拿出来与大家分享。</span></p><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; ">&nbsp;</p><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; "><font size="+0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 半结<br /><br />OverhandKnot</font></p><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; ">&nbsp;</p><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; ">&nbsp;</p><div forimg="1" style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: normal; color: rgb(51, 51, 51); ">&nbsp;</div><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; ">&nbsp;</p><div forimg="1" align="center" style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: normal; color: rgb(51, 51, 51); "><img class="blogimg" border="0" small="0" src="http://www.taoyoyo.net/ttt/upload/201111041457406457.jpg" alt="" /></div><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; "><br /><br />简介：所有绳结的基本结。<br /><br />用途：防止滑动、或是在绳子未端绽开时可做为暂时防止继续脱线。<br /><br />缺点：当结打太紧或弄湿时很难解开。<br /><br /><br /><br />八字结<br /><br />Figure-of-EightKnot</p><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; ">&nbsp;</p><div forimg="1" style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: normal; color: rgb(51, 51, 51); ">&nbsp;</div><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; ">&nbsp;</p><div forimg="1" align="center" style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: normal; color: rgb(51, 51, 51); "><img class="blogimg" border="0" small="0" src="http://www.taoyoyo.net/ttt/upload/201111041457445086.jpg" alt="" /></div><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; "><br /><br />简介：打法简单、易记。<br /><br />用途：可作为一条绳上的一个临时或简单中止，制动点。<br /><br />特征：即使两端拉得很紧，依然可以轻松解开。<br /><br /><br /><br />平结<br /><br />ReefKnot</p><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; ">&nbsp;</p><div forimg="1" style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: normal; color: rgb(51, 51, 51); ">&nbsp;</div><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; ">&nbsp;</p><div forimg="1" align="center" style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: normal; color: rgb(51, 51, 51); "><img class="blogimg" border="0" small="0" src="http://www.taoyoyo.net/ttt/upload/201111041457448834.jpg" alt="" /></div><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; "><br /><br />用途：将同一条绳的两端绑在一起。适用于连结同样粗细、同样质材的绳索；但不适用在较粗、表面光滑的绳索上。<br /><br />特征：缠绕方法一旦发生错误，结果可能会变成个不完全的活结，用力一拉结目就会散开。其结目如果拉得太紧，就不太容易解开；不过如果双手握住绳头，朝两边用力一拉，就可轻松解开。<br /><br />秘诀：左搭右、右搭左。<br /><br /><br /><br />称人结<br /><br />Bowline</p><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; ">&nbsp;</p><div forimg="1" style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: normal; color: rgb(51, 51, 51); ">&nbsp;</div><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; ">&nbsp;</p><div forimg="1" align="center" style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: normal; color: rgb(51, 51, 51); "><img class="blogimg" border="0" small="0" src="http://www.taoyoyo.net/ttt/upload/201111041457443745.jpg" alt="" /></div><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; "><br /><br />简介：被称为绳结之王，为世界上最广为欢迎，于各种户外运动，甚至各行各业或日常生活中频繁的使用到。<br /><br />用途：当绳索系在其它物体或是在绳索的末端结成一个圈圈时使用<br /><br />特征：宜结宜解、配合保固安全性高、用途广泛、变化多端。<br /><br /><br /><br />双套结<br /><br />CloveHitch</p><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; ">&nbsp;</p><div forimg="1" style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: normal; color: rgb(51, 51, 51); ">&nbsp;</div><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; ">&nbsp;</p><div forimg="1" align="center" style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: normal; color: rgb(51, 51, 51); "><img class="blogimg" border="0" small="0" src="http://www.taoyoyo.net/ttt/upload/201111041457445700.jpg" alt="" /></div><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; "><br /><br />简介：其它绳结的开头和结束之用。<br /><br />用途：通常应用在两端施力均等的物品上，适用于水平拉力之下。<br /><br />特征：具备极高的安全性，不过，如果只在绳索的一端使力的话，双套结的结目可能会乱掉或松开。<br /><br /><br /><br />三套结<br /><br />LashingforShear</p><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; ">&nbsp;</p><div forimg="1" style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: normal; color: rgb(51, 51, 51); ">&nbsp;</div><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; ">&nbsp;</p><div forimg="1" align="center" style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: normal; color: rgb(51, 51, 51); "><img class="blogimg" border="0" small="0" src="http://www.taoyoyo.net/ttt/upload/201111041457445571.jpg" alt="" /></div><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; "><br /><br />简介：作用和双套结相同，但较为牢固。<br /><br />用途：应用在垂直方向的拖力。<br /><br />其它：又称为转动结(RollingHitch)，马格纳斯结(MagnusHitch)，拉绳结(Taut-lineHitch)，止索结(StopperHitch)。<br /><br /><br /><br />渔人结<br /><br />FishermansKnot</p><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; ">&nbsp;</p><div forimg="1" style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: normal; color: rgb(51, 51, 51); ">&nbsp;</div><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; ">&nbsp;</p><div forimg="1" align="center" style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: normal; color: rgb(51, 51, 51); "><img class="blogimg" border="0" small="0" src="http://www.taoyoyo.net/ttt/upload/201111041457440428.jpg" alt="" /></div><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; "><br /><br />简介：此结十分容易打，但很难拆开。故应尽量避免用在一些质地好的绳上，也不好用在会扯得很紧的绳上，因扯紧后，很难解开。<br /><br />用途：将两条绳绳连接一起，通常是硬和软的两条绳。<br /><br /><br /><br />普鲁士结</p><div forimg="1" style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: normal; color: rgb(51, 51, 51); ">&nbsp;</div><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; ">&nbsp;</p><div forimg="1" align="center" style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: normal; color: rgb(51, 51, 51); "><img class="blogimg" border="0" small="0" src="http://www.taoyoyo.net/ttt/upload/201111041457441702.jpg" alt="" /></div><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; "><br /><br /><br />营钉结<br /><br />RollingHitch</p><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; ">&nbsp;</p><div forimg="1" style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: normal; color: rgb(51, 51, 51); ">&nbsp;</div><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; ">&nbsp;</p><div forimg="1" align="center" style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: normal; color: rgb(51, 51, 51); "><img class="blogimg" border="0" small="0" src="http://www.taoyoyo.net/ttt/upload/201111041457448435.jpg" alt="" /></div><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; "><br /><br />简介：可让你将结位在绳上随时上下移动。<br /><br />用途：用在各种斜拉绳的收尾。<br /><br />特征：可随时调较绳的松紧度。<br /><br /><br /><br />缩绳结<br /><br />SheepShank</p><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; ">&nbsp;</p><div forimg="1" style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: normal; color: rgb(51, 51, 51); ">&nbsp;</div><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; ">&nbsp;</p><div forimg="1" align="center" style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: normal; color: rgb(51, 51, 51); "><img class="blogimg" border="0" small="0" src="http://www.taoyoyo.net/ttt/upload/201111041457453888.jpg" alt="" /></div><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; "><br /><br />用途：将长绳收短，以免要因太长而要剪短，也可用此法加强绳上容易磨损部份的保护。<br /><br />特征：如绳太松，则此结很容易松散而失去作用。<br /><br /><br /><br />接绳结<br /><br />SheetBend</p><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; ">&nbsp;</p><div forimg="1" style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: normal; color: rgb(51, 51, 51); ">&nbsp;</div><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; ">&nbsp;</p><div forimg="1" style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: normal; color: rgb(51, 51, 51); ">&nbsp;</div><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; ">&nbsp;</p><div forimg="1" align="center" style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: normal; color: rgb(51, 51, 51); "><p><img class="blogimg" border="0" small="0" src="http://www.taoyoyo.net/ttt/upload/201111041457454584.jpg" alt="" /></p><p>&nbsp;</p><div forimg="1" align="center" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; "><img class="blogimg" border="0" small="0" src="http://www.taoyoyo.net/ttt/upload/201111041457454218.jpg" alt="" /></div></div><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; "><br /><br />用途：将两条绳按在一起。<br /><br />特征：容易解开。<br /><br /><br /><br /><br /><br />拉柴结/系木结<br /><br />TimberHitch</p><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; ">&nbsp;</p><div forimg="1" style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: normal; color: rgb(51, 51, 51); ">&nbsp;</div><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; ">&nbsp;</p><div forimg="1" align="center" style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: normal; color: rgb(51, 51, 51); "><img class="blogimg" border="0" small="0" src="http://www.taoyoyo.net/ttt/upload/201111041457453601.jpg" alt="" /></div><p style="line-height: normal; color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; "><br /><br />简介：拥有一个可随意调整的圈。<br /><br />用途：绑紧及拖拉木材之类的物品。<br /><br />特征：虽然是一个方便可靠的结,但是一定要受到拉力，否则它将会松脱而导致危险。</p>]]></description><category>评论</category><comments>http://www.taoyoyo.net/ttt/post/558.html#comment</comments><wfw:comment>http://www.taoyoyo.net/ttt/</wfw:comment><wfw:commentRss>http://www.taoyoyo.net/ttt/feed.asp?cmt=558</wfw:commentRss><trackback:ping>http://www.taoyoyo.net/ttt/cmd.asp?act=tb&amp;id=558&amp;key=1f713895</trackback:ping></item><item><title>[转]MySQL Server 5.0–安装及配置/MySQLInstanceConfig.exe用法详解</title><author>a@b.com (taoether)</author><link>http://www.taoyoyo.net/ttt/post/557.html</link><pubDate>Thu, 03 Nov 2011 16:30:13 +0800</pubDate><guid>http://www.taoyoyo.net/ttt/post/557.html</guid><description><![CDATA[<p>&nbsp;</p><div style="padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 160%; "><blockquote><p><br />TTT说明：</p><p>下面是用图形界面配置mysql的方法，可以直接运行\bin\MySQLInstanceConfig.exe打开图形界面。</p><p>图形界面都是英文的，所以找到这篇说明!</p><p>这篇说明很不错，很详细!</p><p>来源：http://blog.csdn.net/davidxj/article/details/4201657</p></blockquote><p>&nbsp;</p><p><span lang="EN-US" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; "><span style="font-family: 'Microsoft Sans Serif'; ">MySQL Server 5.0 &ndash;&nbsp;</span></span><span style="color: rgb(51, 51, 51); font-size: 14px; line-height: 26px; text-align: left; font-family: 宋体; ">安装及配置</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Author&nbsp;</span></span><span style="font-family: 宋体; ">：</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;Jeff&nbsp;&nbsp;&nbsp;2006-2-20</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span style="font-family: 宋体; ">关键字：</span><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;<span lang="EN-US">MySQL&nbsp;</span></span><span style="font-family: 宋体; ">配置</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span style="font-family: 宋体; ">环境：</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Window XP Professional + SP2</span></span><span style="font-family: 宋体; ">，</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;MySQL Server 5.0</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span style="font-family: 宋体; ">下载软件：</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">MySQL Server 5.0.18&nbsp;</span><a style="color: rgb(51, 102, 153); text-decoration: none; " href="http://dev.mysql.com/downloads/mysql/5.0.html"><span style="font-family: 'Microsoft Sans Serif'; ">http://dev.mysql.com/downloads/mysql/5.0.html</span></a></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span style="font-family: 宋体; ">下载</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">MySQL Server</span></span><span style="font-family: 宋体; ">，并安装在本地机器上。</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span style="font-family: 宋体; ">下面两个为</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Windows</span></span><span style="font-family: 宋体; ">图形界面工具。</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">MySQL Query Browser 1.1.20&nbsp;</span><a style="color: rgb(51, 102, 153); text-decoration: none; " href="http://dev.mysql.com/downloads/query-browser/1.1.html"><span style="font-family: 'Microsoft Sans Serif'; ">http://dev.mysql.com/downloads/query-browser/1.1.html</span></a></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span style="font-family: 'Microsoft Sans Serif'; "><span lang="EN-US">MySQL</span><span lang="EN-US">&nbsp;Control Center</span><span lang="EN-US">&nbsp;0.9.4&nbsp;<a style="color: rgb(51, 102, 153); text-decoration: none; " href="http://mysql.easynet.be/Downloads/MySQLCC/mysqlcc-0.9.4-win32.zip">http://mysql.easynet.be/Downloads/MySQLCC/mysqlcc-0.9.4-win32.zip</a></span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span style="font-family: 宋体; ">配置</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">MySQL</span></span><span style="font-family: 宋体; ">步骤：</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 18pt; text-indent: -18pt; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">1.</span><span style="font: normal normal normal 7pt/normal 'Times New Roman'; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span style="font-family: 宋体; ">运行</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">MySQL Server</span></span><span style="font-family: 宋体; ">安装目录下</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">bin/MySQLInstanceConfig.exe</span></span><span style="font-family: 宋体; ">。出现如下所示的向导界面</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 18pt; text-indent: -18pt; "><span style="font-family: 宋体; ">&nbsp;&nbsp;&nbsp;&nbsp;<img style="border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; " alt="" src="http://www.taoyoyo.net/ttt/upload/20111104_mysql_01.JPG" /></span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">.</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; ">&nbsp;</p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; "><span style="font-family: 宋体; ">点击&ldquo;</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Next</span></span><span style="font-family: 宋体; ">&rdquo;进入下一步。</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 18pt; text-indent: -18pt; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">2.</span><span style="font: normal normal normal 7pt/normal 'Times New Roman'; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span style="font-family: 宋体; ">如果</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">MySQLInstanceConfig</span></span><span style="font-family: 宋体; ">在</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">MySQL Server</span></span><span style="font-family: 宋体; ">的安装目录下找到</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">my.ini</span></span><span style="font-family: 宋体; ">文件，就会询问：是重新配置</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">MySQL</span></span><span style="font-family: 宋体; ">还是删除</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">MySQL service(</span></span><span style="font-family: 宋体; ">同时删除</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">my.ini</span></span><span style="font-family: 宋体; ">文件</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">)</span></span><span style="font-family: 宋体; ">。</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 18pt; text-indent: -18pt; "><span style="font-family: 宋体; ">&nbsp;&nbsp;&nbsp;&nbsp;<img style="border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; " alt="" src="http://www.taoyoyo.net/ttt/upload/20111104_mysql_02.JPG" /></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; ">&nbsp;</p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; "><span style="font-family: 宋体; ">否则的话，出现下面的配置界面：</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; "><span style="font-family: 宋体; "><img style="border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; " alt="" src="http://www.taoyoyo.net/ttt/upload/20111104_mysql_03.JPG" /></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; ">&nbsp;</p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Detailed Configuration</span></span><span style="font-family: 宋体; ">：自己配置大部分，更好地控制</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">MySQL Server</span></span><span style="font-family: 宋体; ">，让它更好地发挥作用。</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Standard Configuration</span></span><span style="font-family: 宋体; ">：系统配置大部分，不希望关注很多的</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Server</span></span><span style="font-family: 宋体; ">配置。</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; "><span style="font-family: 宋体; ">这里选择&ldquo;</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Detailed Configuration</span></span><span style="font-family: 宋体; ">&rdquo;，下一步</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">(Next)</span></span><span style="font-family: 宋体; ">。</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 18pt; text-indent: -18pt; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">3.</span><span style="font: normal normal normal 7pt/normal 'Times New Roman'; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span style="font-family: 宋体; ">出现选择服务类型：</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 18pt; text-indent: -18pt; "><span style="font-family: 宋体; ">&nbsp;&nbsp;&nbsp;&nbsp;<img style="border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; " alt="" src="http://www.taoyoyo.net/ttt/upload/20111104_mysql_04.JPG" /></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; ">&nbsp;</p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Developer Machine</span></span><span style="font-family: 宋体; ">：主要为了个人使用，占用系统最少的资源。</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Server Machine</span></span><span style="font-family: 宋体; ">：主要用于像</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">FTP</span></span><span style="font-family: 宋体; ">，</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">email</span></span><span style="font-family: 宋体; ">，</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">web</span></span><span style="font-family: 宋体; ">服务器等等，耗用系统较多的资源。</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Dedicated MySQL Server Machine</span></span><span style="font-family: 宋体; ">：只用作</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">MySQL</span></span><span style="font-family: 宋体; ">服务器，不运行其他程序。耗用系统所有可用的资源。</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; "><span style="font-family: 宋体; ">个人学习研究用，选&ldquo;</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Developer Machine</span></span><span style="font-family: 宋体; ">&rdquo;，下一步</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">(Next)</span></span><span style="font-family: 宋体; ">。</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 18pt; text-indent: -18pt; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">4.</span><span style="font: normal normal normal 7pt/normal 'Times New Roman'; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span style="font-family: 宋体; ">出现设置数据库用法：</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 18pt; text-indent: -18pt; "><span style="font-family: 宋体; ">&nbsp;&nbsp;&nbsp;&nbsp;<img style="border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; " alt="" src="http://www.taoyoyo.net/ttt/upload/20111104_mysql_05.JPG" /></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; ">&nbsp;</p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Multifunctional Database</span></span><span style="font-family: 宋体; ">：使得</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">InnoDB</span></span><span style="font-family: 宋体; ">和</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">MyISAM</span></span><span style="font-family: 宋体; ">存储引擎都可用，且资源平分。</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Transactional Database Only</span></span><span style="font-family: 宋体; ">：使得</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">InnoDB</span></span><span style="font-family: 宋体; ">和</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">MyISAM</span></span><span style="font-family: 宋体; ">存储引擎都可用，但是</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">InnoDB</span></span><span style="font-family: 宋体; ">使用较多资源。</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Non-Transactional Database Only</span></span><span style="font-family: 宋体; ">：使</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">InnoDB</span></span><span style="font-family: 宋体; ">不可用，所有资源分配给</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">MyISAM</span></span><span style="font-family: 宋体; ">。</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; "><span style="font-family: 宋体; ">选择&ldquo;</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Multifunctional Database</span></span><span style="font-family: 宋体; ">&rdquo;，下一步</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">(Next)</span></span><span style="font-family: 宋体; ">。</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 18pt; text-indent: -18pt; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">5.</span><span style="font: normal normal normal 7pt/normal 'Times New Roman'; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span style="font-family: 宋体; ">设置</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">InnoDB datafile</span></span><span style="font-family: 宋体; ">存放位置，默认即可，下一步</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">(Next)</span></span><span style="font-family: 宋体; ">。</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 18pt; text-indent: -18pt; "><span style="font-family: 宋体; ">&nbsp;&nbsp;&nbsp;&nbsp;<img style="border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; " alt="" src="http://www.taoyoyo.net/ttt/upload/20111104_mysql_06.JPG" /></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;&nbsp;&nbsp;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 18pt; text-indent: -18pt; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">6.</span><span style="font: normal normal normal 7pt/normal 'Times New Roman'; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span style="font-family: 宋体; ">出现选择并发连接设置对话框：</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 18pt; text-indent: -18pt; "><span style="font-family: 宋体; ">&nbsp;&nbsp;&nbsp;&nbsp;<img style="border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; " alt="" src="http://www.taoyoyo.net/ttt/upload/20111104_mysql_07.JPG" /></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; ">&nbsp;</p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Decision Support(DSS)/OLAP</span></span><span style="font-family: 宋体; ">：不需要大量的并发连接</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">(20</span></span><span style="font-family: 宋体; ">个左右</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">)</span></span><span style="font-family: 宋体; ">。默认值为</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">100</span></span><span style="font-family: 宋体; ">。</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Online Transaction Processing(OLTP)</span></span><span style="font-family: 宋体; ">：需要大量的并发连接，默认值为</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">500</span></span><span style="font-family: 宋体; ">。</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Manual Setting</span></span><span style="font-family: 宋体; ">：个人设定了。</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; "><span style="font-family: 宋体; ">选择&ldquo;</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Manual Setting</span></span><span style="font-family: 宋体; ">&rdquo;，从下拉框中选择</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">10</span></span><span style="font-family: 宋体; ">，下一步</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">(Next).</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 18pt; text-indent: -18pt; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">7.</span><span style="font: normal normal normal 7pt/normal 'Times New Roman'; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span style="font-family: 宋体; ">网络设定：</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 18pt; text-indent: -18pt; "><span style="font-family: 宋体; ">&nbsp;&nbsp;&nbsp;&nbsp;<img style="border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; " alt="" src="http://www.taoyoyo.net/ttt/upload/20111104_mysql_08.JPG" /></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; ">&nbsp;</p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; "><span style="font-family: 宋体; ">默认的端口号为</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">3306</span></span><span style="font-family: 宋体; ">，如果端口被占用或不希望使用</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">3306</span></span><span style="font-family: 宋体; ">，可以更换。下一步</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">(Next)</span></span><span style="font-family: 宋体; ">。</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 18pt; text-indent: -18pt; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">8.</span><span style="font: normal normal normal 7pt/normal 'Times New Roman'; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span style="font-family: 宋体; ">选择缺省的字符集：</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 18pt; text-indent: -18pt; "><span style="font-family: 宋体; ">&nbsp;&nbsp;&nbsp;&nbsp;<img style="border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; " alt="" src="http://www.taoyoyo.net/ttt/upload/20111104_mysql_09.JPG" /></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; ">&nbsp;</p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Standard Character Set</span></span><span style="font-family: 宋体; ">：</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Latin1</span></span><span style="font-family: 宋体; ">为默认的字符集。主要用于西方欧洲国家的语言。</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Best Support For Multilingualism</span></span><span style="font-family: 宋体; ">：</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">UTF8</span></span><span style="font-family: 宋体; ">为默认的字符集。</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Manual Selected Default Character Set / Collation</span></span><span style="font-family: 宋体; ">：个人设定。</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">(</span></span><span style="font-family: 宋体; ">如果你希望数据库支持汉字，请选择</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">gb2312)</span></span><span style="font-family: 宋体; ">。</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; "><span style="font-family: 宋体; ">选择缺省的&ldquo;</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Standard Character Set</span></span><span style="font-family: 宋体; ">&rdquo;，下一步</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">(Next)</span></span><span style="font-family: 宋体; ">。</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 18pt; text-indent: -18pt; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">9.</span><span style="font: normal normal normal 7pt/normal 'Times New Roman'; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span style="font-family: 宋体; ">设置服务名称，最好将&ldquo;</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Include Bin Directory in Windows PATH</span></span><span style="font-family: 宋体; ">&rdquo;勾选：</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 18pt; text-indent: -18pt; "><span style="font-family: 宋体; ">&nbsp;&nbsp;&nbsp;&nbsp;<img style="border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; " alt="" src="http://www.taoyoyo.net/ttt/upload/20111104_mysql_10.JPG" /></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;&nbsp;&nbsp;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 18pt; text-indent: -18pt; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">10.</span><span style="font: normal normal normal 7pt/normal 'Times New Roman'; ">&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span style="font-family: 宋体; ">密码的设置，其余为默认：</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 18pt; text-indent: -18pt; "><span style="font-family: 宋体; ">&nbsp;&nbsp;&nbsp;&nbsp;<img style="border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; " alt="" src="http://www.taoyoyo.net/ttt/upload/20111104_mysql_11.JPG" /></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;&nbsp;&nbsp;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 18pt; text-indent: -18pt; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">11.</span><span style="font: normal normal normal 7pt/normal 'Times New Roman'; ">&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span style="font-family: 宋体; ">执行，使配置生效。</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 18pt; text-indent: -18pt; "><span style="font-family: 宋体; ">&nbsp;&nbsp;&nbsp;&nbsp;<img style="border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; " alt="" src="http://www.taoyoyo.net/ttt/upload/20111104_mysql_12.JPG" /></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;&nbsp;&nbsp;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;&nbsp;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span style="font-family: 宋体; ">配置过程中出现的问题：</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">1.&nbsp;</span></span><span style="font-family: 宋体; ">在最后一个环节，执行到第四步，出现如下所示的错误。</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span style="font-family: 宋体; ">&nbsp;&nbsp;<img style="border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; " alt="" src="http://www.taoyoyo.net/ttt/upload/20111104_mysql_13.JPG" /></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; ">&nbsp;</p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span style="font-family: 宋体; ">此时，按</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Skip</span></span><span style="font-family: 宋体; ">跳出，再重新执行</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">MySQLInstanceConfig</span></span><span style="font-family: 宋体; ">，重复上次的选项，执行就可以通过了。</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span style="font-family: 宋体; ">这个主要出现在</span><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">remove instance</span></span><span style="font-family: 宋体; ">之后。</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><code><span lang="EN" style="font-family: 'Microsoft Sans Serif'; ">2. Client does not support authentication protocol.</span></code></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><code><span lang="EN" style="font-family: 'Microsoft Sans Serif'; ">&nbsp;&nbsp;</span></code><span style="font-family: 宋体; "><code>工具连接数据库时，若出现上述信息，请到命令行方式下对密码进行转换：</code></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><code><span lang="EN" style="font-family: 'Microsoft Sans Serif'; ">&nbsp;</span></code><code><span lang="EN-US" style="font-family: 'Microsoft Sans Serif'; ">mysql&gt; SET PASSWORD FOR &lsquo;root&rsquo;@&rsquo;localhost&rsquo; = OLD_PASSWORD(&lsquo;newpassword&rsquo;);</span></code></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><code><span lang="EN-US" style="font-family: 'Microsoft Sans Serif'; ">&nbsp;</span></code><span lang="EN-US" style="color: black; "><span style="font-family: 'Microsoft Sans Serif'; ">4.1</span></span><span style="color: black; font-family: 宋体; ">版本之后的密码采用</span><span lang="EN-US" style="color: black; "><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;password hashing algorithm</span></span><span style="color: black; font-family: 宋体; ">，有些工具连接数据库可能需要转换。</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span style="font-family: 'Microsoft Sans Serif'; "><span lang="EN-US" style="color: black; ">3</span><code><span lang="EN" style="font-family: 'Microsoft Sans Serif'; ">.&nbsp;</span></code></span><code><span style="font-family: 宋体; ">连接</span></code><code><span lang="EN-US" style="font-family: 'Microsoft Sans Serif'; ">MySQL</span></code><code><span style="font-family: 宋体; ">服务器时，如果不是同一台</span></code><code><span lang="EN-US" style="font-family: 'Microsoft Sans Serif'; ">PC</span></code><span style="font-family: 宋体; "><code>机，出现连接不上。</code></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><code><span lang="EN-US" style="font-family: 'Microsoft Sans Serif'; ">&nbsp;&nbsp;&nbsp;</span></code><code><span style="font-family: 宋体; ">在&ldquo;设置</span></code><code><span lang="EN-US" style="font-family: 'Microsoft Sans Serif'; ">-&gt;</span></code><code><span style="font-family: 宋体; ">控制面板</span></code><code><span lang="EN-US" style="font-family: 'Microsoft Sans Serif'; ">-&gt;Windows&nbsp;</span></code><span style="font-family: 宋体; "><code>防火墙&rdquo;，点击&ldquo;例外&rdquo;标签，&ldquo;添加端口&rdquo;后，出现：</code></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span style="font-family: 宋体; "><code>&nbsp;<img style="border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; " alt="" src="http://www.taoyoyo.net/ttt/upload/20111104_mysql_14.JPG" /></code></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><code><span lang="EN-US" style="font-family: 'Microsoft Sans Serif'; ">&nbsp;&nbsp;</span></code></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;&nbsp;</span></span><span style="font-family: 宋体; ">适当设置范围。端口号为先前设定的端口号。</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">MySQLInstanceConfig</span></span><span style="font-family: 宋体; ">的命令行参数：</span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">To use the Instance Configuration Wizard from the command line the following parameters can be used. These parameters have to be set to run from the command line</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US" style="color: red; "><span style="font-family: 'Microsoft Sans Serif'; ">-n&lt;product name&gt;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US" style="color: red; "><span style="font-family: 'Microsoft Sans Serif'; ">-p&lt;path of installation&gt; (no /bin)</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US" style="color: red; "><span style="font-family: 'Microsoft Sans Serif'; ">-v&lt;version&gt;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Actions to perform</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US" style="color: red; "><span style="font-family: 'Microsoft Sans Serif'; ">-i&nbsp;&nbsp;(install instance)</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US" style="color: red; "><span style="font-family: 'Microsoft Sans Serif'; ">-r&nbsp;&nbsp;(remove instance)</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US" style="color: red; "><span style="font-family: 'Microsoft Sans Serif'; ">-s&nbsp;&nbsp;(stop instance)</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US" style="color: red; "><span style="font-family: 'Microsoft Sans Serif'; ">-q&nbsp;&nbsp;(be quiet)</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US" style="color: red; "><span style="font-family: 'Microsoft Sans Serif'; ">-lfilename&nbsp;&nbsp;(write log file)</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">When launched manually, these can also be submitted</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">-t&lt;.cnf template filename&gt;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">-c&lt;.cnf filename&gt;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Use the following option to define the parameters for the config file generation.</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">ServiceName=$</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">AddBinToPath={yes | no}</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">ServerType={DEVELOPMENT | SERVER | DEDICATED}</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">DatabaseType={MIXED | INNODB | MYISAM}</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">ConnectionUsage={DSS | OLTP}</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">ConnectionCount=#</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">SkipNetworking={yes | no}</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Port=#</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">StrictMode={yes | no}</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Charset=$</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">RootPassword=$</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">RootCurrentPassword=$</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">The return codes of the Wizard in case of an error are.</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">2 ... Configuration template file cannot be found.</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">3 ... The Windows service entry cannot be created.</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">4 ... Could not connect to the Service Control Manager.</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">5 ... The MySQL service cannot be started.</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">6 ... The MySQL service cannot be stopped.</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">7 ... The security settings cannot be applied.</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">8 ... The configuration file cannot be written.</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">9 ... The Windows service entry cannot be removed.</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Examples:</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">The following command installs a MySQL Server 5.0 instance from the directory&nbsp;<br />C:/Programme/MySQL/MySQL Server 5.0 using the service name MySQLCust and settingthe root password to 1234.</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">MySQLInstanceConfig.exe -i -q &quot;-lC:/mysql_install_log.txt&quot; &quot;-nMySQL Server 5.0&quot;&nbsp;<br />&quot;-pC:/Programme/MySQL/MySQL Server 5.0&quot; -v5.0.13 &quot;-t../../res/my-template.ini&quot; &quot;-cC:/mytest.ini&quot;&nbsp;<br />ServerType=DEVELOPMENT DatabaseType=MIXED ConnectionUsage=DSS Port=3311&nbsp;<br />ServiceName=MySQLCust RootPassword=1234</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">If the server can not be started, the exit code is 2.</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">The following command removes the server instance with the name MySQLCust.</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">MySQLInstanceConfig.exe -r -q &quot;-lC:/mysql_install_log.txt&quot; &quot;-nMySQL Server 5.0&quot;&nbsp;<br />&quot;-pC:/Programme/MySQL/MySQL Server 5.0&quot; -v5.0.13 &quot;-cC:/mytest.ini&quot; ServiceName=MySQLCust</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Output into the log file:</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">----------------------------------------</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Welcome to the MySQL Server Instance Configuration Wizard 1.0.6</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Date: 2005-10-19 21:53:16</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Installing service ...</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Product Name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MySQL Server 5.0</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Version:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5.0.13</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Installation Path:&nbsp;&nbsp;&nbsp;&nbsp;C:/Programme/MySQL/MySQL Server 5.0/</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Creating configuration file C:/mytest.ini using template ../../res/my-template.ini.</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Options:</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">DEVELOPMENT</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">MIXED</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">DSS</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">STRICTMODE</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Variables:</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">port: 3311</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">default-character-set: latin1</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">basedir: &quot;C:/Programme/MySQL/MySQL Server 5.0/&quot;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">datadir: &quot;C:/Programme/MySQL/MySQL Server 5.0/Data/&quot;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Creating Windows service entry.</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Service Name: &quot;MySQLCust&quot;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Parameters:&nbsp;&nbsp;&nbsp;&quot;C:/Programme/MySQL/MySQL Server 5.0/bin/mysqld-nt&quot; --defaults-file=&quot;C:/mytest.ini&quot; MySQLCust.</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Windows service MySQLCust installed.</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Service started successfully.</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">The security settings could not be applied to the database because the connection has failed with the following error.</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Error Nr. 1045</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Access denied for user 'root'@'localhost' (using password: NO)</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">----------------------------------------</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Welcome to the MySQL Server Instance Configuration Wizard 1.0.6</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Date: 2005-10-19 21:53:46</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Removing Service...</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">&nbsp;</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Instance stopped.</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Windows Service removed.</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Service Name: MySQLCust</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Configuration file removed.</span></span></p><p class="MsoNormal" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px; text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "><span lang="EN-US"><span style="font-family: 'Microsoft Sans Serif'; ">Filename: C:/mytest.ini</span></span></p></div><p>&nbsp;</p>]]></description><category>MySql</category><comments>http://www.taoyoyo.net/ttt/post/557.html#comment</comments><wfw:comment>http://www.taoyoyo.net/ttt/</wfw:comment><wfw:commentRss>http://www.taoyoyo.net/ttt/feed.asp?cmt=557</wfw:commentRss><trackback:ping>http://www.taoyoyo.net/ttt/cmd.asp?act=tb&amp;id=557&amp;key=43c45f9c</trackback:ping></item><item><title> FCKeditor用法详解</title><author>a@b.com (taoether)</author><link>http://www.taoyoyo.net/ttt/post/556.html</link><pubDate>Tue, 01 Nov 2011 17:05:59 +0800</pubDate><guid>http://www.taoyoyo.net/ttt/post/556.html</guid><description><![CDATA[<p><font class="Apple-style-span" color="#00ffff"><br /></font></p><div class="date" style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; line-height: 18px; margin-top: 5px; margin-right: 0px; margin-bottom: 8px; margin-left: 0px; color: rgb(58, 106, 155); text-align: -webkit-left; background-color: rgb(4, 19, 40); "><span style="color: rgb(0, 255, 255); ">2007-06-27 09:43</span></div><table style="table-layout: fixed; font-family: Arial; background-color: rgb(4, 19, 40); width: 960px; ">    <tbody>        <tr>            <td style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; line-height: 18px; ">            <div id="blog_text" class="cnt" style="font-family: Arial; word-wrap: break-word; word-break: normal; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 20px; color: rgb(58, 106, 155); overflow-x: hidden; overflow-y: hidden; position: relative !important; "><span style="color: rgb(0, 255, 255); ">FCKeditor至今已经到了2.3.1版本了，对于国内的WEB开发者来说，也基本上都已经&ldquo;闻风知多少&rdquo;了，很多人将其融放到自己的项目中，更有很多大型的网站从中吃到了甜头。今天开始，我将一点点的介绍自己在使用FCKeditor过程中总结的一些技巧，当然这些其实是FCK本来就有的，只是很多人用FCK的时候没发现而已 :P<br style="line-height: normal; " />            <br style="line-height: normal; " />            <strong style="line-height: normal; ">1、适时打开编辑器</strong><br style="line-height: normal; " />            <br style="line-height: normal; " />            很多时候，我们在打开页面的时候不需要直接打开编辑器，而在用到的时候才打开，这样一来有很好的用户体验，另一方面可以消除FCK在加载时对页面打开速度的影响，如图所示<br style="line-height: normal; " />            <br style="line-height: normal; " />            <br style="line-height: normal; " />            <img src="http://www.taoyoyo.net/ttt/upload/201111011707117081.gif" width="16" style="line-height: normal; cursor: pointer; " alt="" />&nbsp;</span><a href="http://www.taoyoyo.net/ttt/upload/201111011707115564.gif</span></a><span style="color: rgb(0, 255, 255); ">&nbsp;(2006-9-28 05:45, 5.02 K)<br style="line-height: normal; " />            <br style="line-height: normal; " />            <img src="http://www.taoyoyo.net/ttt/upload/201111011707117505.gif" style="line-height: normal; width: 421px; cursor: pointer; " alt="" /><br style="line-height: normal; " />            点击&ldquo;Open Editor&quot;按钮后才打开编辑器界面<br style="line-height: normal; " />            <br style="line-height: normal; " />            <br style="line-height: normal; " />            <img src="http://www.taoyoyo.net/ttt/upload/201111011707117081.gif" width="16" style="line-height: normal; cursor: pointer; " alt="" />&nbsp;</span><a href="http://www.taoyoyo.net/ttt/upload/201111011707128086.gif</span></a><span style="color: rgb(0, 255, 255); ">&nbsp;(2006-9-28 05:45, 9.13 K)<br style="line-height: normal; " />            <br style="line-height: normal; " />            <img src="http://www.taoyoyo.net/ttt/upload/201111011707124427.gif" style="line-height: normal; width: 420px; cursor: pointer; " alt="" /><br style="line-height: normal; " />            <br style="line-height: normal; " />            实现原理：使用JAVASCRIPT版的FCK，在页面加载时（未打开FCK），创建一个隐藏的TextArea域，这个TextArea的name和ID要和创建的FCK实例名称一致，然后点击&quot;Open Editor&quot;按钮时，通过调用一段函数，使用FCK的ReplaceTextarea()方法来创建FCKeditor，代码如下：<br style="line-height: normal; " />            <br style="line-height: normal; " />            </span>            <div class="msgheader" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 12px; line-height: normal; ">            <div class="right" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; "><a href="http://bbs.blueidea.com/thread-2678394-1-1.html###"><span style="color: rgb(0, 255, 255); ">[Copy to clipboard]</span></a></div>            <span style="color: rgb(0, 255, 255); ">CODE:</span></div>            <div class="msgborder" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 12px; line-height: normal; "><span style="color: rgb(0, 255, 255); ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;script type=&quot;text/javascript&quot;&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; function showFCK(){<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var oFCKeditor = new FCKeditor( 'fbContent' ) ;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; oFCKeditor.BasePath = '/FCKeditor/' ;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; oFCKeditor.ToolbarSet = 'Basic' ;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; oFCKeditor.Width = '100%' ;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; oFCKeditor.Height = '200' ;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; oFCKeditor.ReplaceTextarea() ;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //--&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/script&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;textarea name=&quot;fbContent&quot; id=&quot;fbContent&quot;&gt;textarea&gt;</span></div>            <div style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; line-height: 22px; width: 550px; "><span style="color: rgb(0, 255, 255); "><br style="line-height: normal; " />            <strong style="line-height: normal; ">2、使用FCKeditor 的 API</strong><br style="line-height: normal; " />            <br style="line-height: normal; " />            FCKeditor编辑器，提供了非常丰富的API，用于给End User实现很多想要定制的功能，比如最基本的数据验证，如何在提交的时候用JS判断当前编辑器区域内是否有内容，FCK的API提供了GetLength()方法；<br style="line-height: normal; " />            <br style="line-height: normal; " />            再比如如何通过脚本向FCK里插入内容，使用InsertHTML()等；<br style="line-height: normal; " />            <br style="line-height: normal; " />            还有，在用户定制功能时，中间步骤可能要执行FCK的一些内嵌操作，那就用ExecuteCommand()方法。<br style="line-height: normal; " />            <br style="line-height: normal; " />            详细的API列表，请查看FCKeditor的Wiki。而常用的API，请查看FCK压缩包里的_samples/html/sample08.html。此处就不贴代码了。<br style="line-height: normal; " />            <br style="line-height: normal; " />            <strong style="line-height: normal; ">3、外联编辑条（多个编辑域共用一个编辑条）</strong><br style="line-height: normal; " />            <br style="line-height: normal; " />            这个功能是2.3版本才开始提供的，以前版本的FCKeditor要在同一个页面里用多个编辑器的话，得一个个创建，现在有了这个外联功能，就不用那么麻烦了，只需要把工具条放在一个适当的位置，后面就可以无限制的创建编辑域了，如图<br style="line-height: normal; " />            <br style="line-height: normal; " />            <img src="http://www.taoyoyo.net/ttt/upload/201111011707117081.gif" width="16" style="line-height: normal; cursor: pointer; " alt="" />&nbsp;</span><a href="http://www.taoyoyo.net/ttt/upload/201111011707124668.gif</span></a><span style="color: rgb(0, 255, 255); ">&nbsp;(2006-9-28 05:45, 6.59 K)<br style="line-height: normal; " />            <br style="line-height: normal; " />            <img src="http://www.taoyoyo.net/ttt/upload/201111011707120741.gif" width="408" style="line-height: normal; cursor: pointer; " alt="" /><br style="line-height: normal; " />            <br style="line-height: normal; " />            要实现这种功能呢，需要先在页面中定义一个工具条的容器：&lt;div id=&quot;xToolbar&quot;&gt;&lt;/div&gt;，然后再根据这个容器的id属性进行设置。<br style="line-height: normal; " />            <br style="line-height: normal; " />            ASP实现代码：<br style="line-height: normal; " />            <br style="line-height: normal; " />            </span></div>            <div class="msgheader" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 12px; line-height: normal; ">            <div class="right" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; "><a href="http://bbs.blueidea.com/thread-2678394-1-1.html###"><span style="color: rgb(0, 255, 255); ">[Copy to clipboard]</span></a></div>            <span style="color: rgb(0, 255, 255); ">CODE:</span></div>            <div class="msgborder" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 12px; line-height: normal; "><span style="color: rgb(0, 255, 255); ">&lt;div id=&quot;fckToolBar&quot;&gt;&lt;/div&gt;&nbsp;<br />            &lt;%&nbsp;<br />            Dim oFCKeditor&nbsp;<br />            Set oFCKeditor = New FCKeditor&nbsp;<br />            with oFCKeditor&nbsp;<br />            .BasePath = fckPath&nbsp;<br />            .Config(&quot;ToolbarLocation&quot;) = &quot;Out:fckToolBar&quot;&nbsp;<br />            <br />            .ToolbarSet = &quot;Basic&quot;&nbsp;<br />            .Width = &quot;100%&quot;&nbsp;<br />            .Height = &quot;200&quot;&nbsp;<br />            <br />            .Value = &quot;&quot;&nbsp;<br />            .Create &quot;jcontent&quot;&nbsp;<br />            <br />            .Height = &quot;150&quot;&nbsp;<br />            .Value = &quot;&quot;&nbsp;<br />            .Create &quot;jreach&quot;&nbsp;<br />            end with&nbsp;<br />            %&gt;</span></div>            <div style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; line-height: 22px; width: 550px; "><span style="color: rgb(0, 255, 255); "><br style="line-height: normal; " />            JAVASCRIPT实现代码：<br style="line-height: normal; " />            <br style="line-height: normal; " />            </span></div>            <div class="msgheader" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 12px; line-height: normal; ">            <div class="right" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; "><a href="http://bbs.blueidea.com/thread-2678394-1-1.html###"><span style="color: rgb(0, 255, 255); ">[Copy to clipboard]</span></a></div>            <span style="color: rgb(0, 255, 255); ">CODE:</span></div>            <div class="msgborder" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 12px; line-height: normal; "><span style="color: rgb(0, 255, 255); ">&lt;div id=&quot;xToolbar&quot;&gt;&lt;/div&gt;&nbsp;<br />            FCKeditor 1:&nbsp;<br />            &lt;script type=&quot;text/javascript&quot;&gt;&nbsp;<br />            &lt;!--&nbsp;<br />            // Automatically calculates the editor base path based on the _samples directory.&nbsp;<br />            // This is usefull only for these samples. A real application should use something like this:&nbsp;<br />            // oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.&nbsp;<br />            var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;&nbsp;<br />            <br />            var oFCKeditor = new FCKeditor( 'FCKeditor_1' ) ;&nbsp;<br />            oFCKeditor.BasePath = sBasePath ;&nbsp;<br />            oFCKeditor.Height = 100 ;&nbsp;<br />            oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:parent(xToolbar)' ;&nbsp;<br />            oFCKeditor.Value = 'This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using FCKeditor.' ;&nbsp;<br />            oFCKeditor.Create() ;&nbsp;<br />            //--&gt;&nbsp;<br />            &lt;/script&gt;&nbsp;<br />            &lt;br /&gt;&nbsp;<br />            FCKeditor 2:&nbsp;<br />            &lt;script type=&quot;text/javascript&quot;&gt;&nbsp;<br />            &lt;!--&nbsp;<br />            oFCKeditor = new FCKeditor( 'FCKeditor_2' ) ;&nbsp;<br />            oFCKeditor.BasePath = sBasePath ;&nbsp;<br />            oFCKeditor.Height = 100 ;&nbsp;<br />            oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:parent(xToolbar)' ;&nbsp;<br />            oFCKeditor.Value = 'This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using FCKeditor.' ;&nbsp;<br />            oFCKeditor.Create() ;&nbsp;<br />            //--&gt;&nbsp;<br />            &lt;/script&gt;</span></div>            <div style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; line-height: 22px; width: 550px; "><span style="color: rgb(0, 255, 255); "><br style="line-height: normal; " />            此部分的详细DEMO请参照_samples/html/sample11.html，_samples/html/sample11_frame.html<br style="line-height: normal; " />            <br style="line-height: normal; " />            <strong style="line-height: normal; ">4、文件管理功能、文件上传的权限问题</strong><br style="line-height: normal; " />            <br style="line-height: normal; " />            一直以后FCKeditor的文件管理部分的安全是个值得注意，但很多人没注意到的地方，虽然FCKeditor在各个Release版本中一直存在的一个功能就是对上传文件类型进行过滤，但是她没考虑过另一个问题：到底允许谁能上传？到底谁能浏览服务器文件？<br style="line-height: normal; " />            <br style="line-height: normal; " />            之前刚开始用FCKeditor时，我就出现过这个问题，还好NetRube（FCKeditor中文化以及FCKeditor ASP版上传程序的作者）及时提醒了我，做法是去修改FCK上传程序，在里面进行权限判断，并且再在fckconfig.js里把相应的一些功能去掉。但随之FCK版本的不断升级，每升一次都要去改一次配置程序fckconfig.js，我发觉厌烦了，就没什么办法能更好的控制这种配置么？事实上，是有的。<br style="line-height: normal; " />            <br style="line-height: normal; " />            在fckconfig.js里面，有关于是否打开上传和浏览服务器的设置，在创建FCKeditor时，通过程序来判断是否创建有上传浏览功能的编辑器。首先，我先在fckconfig.js里面把所有的上传和浏览设置全设为false，接着我使用的代码如下：<br style="line-height: normal; " />            <br style="line-height: normal; " />            ASP版本：<br style="line-height: normal; " />            <br style="line-height: normal; " />            </span></div>            <div class="msgheader" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 12px; line-height: normal; ">            <div class="right" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; "><a href="http://bbs.blueidea.com/thread-2678394-1-1.html###"><span style="color: rgb(0, 255, 255); ">[Copy to clipboard]</span></a></div>            <span style="color: rgb(0, 255, 255); ">CODE:</span></div>            <div class="msgborder" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 12px; line-height: normal; "><span style="color: rgb(0, 255, 255); ">&lt;%&nbsp;<br />            Dim oFCKeditor&nbsp;<br />            Set oFCKeditor = New FCKeditor&nbsp;<br />            with oFCKeditor&nbsp;<br />            .BasePath = fckPath&nbsp;<br />            .Config(&quot;ToolbarLocation&quot;) = &quot;Out:fckToolBar&quot;&nbsp;<br />            <br />            if request.cookies(site_sn)(&quot;issuper&quot;)=&quot;yes&quot; then&nbsp;<br />            .Config(&quot;LinkBrowser&quot;) = &quot;true&quot;&nbsp;<br />            .Config(&quot;ImageBrowser&quot;) = &quot;true&quot;&nbsp;<br />            .Config(&quot;FlashBrowser&quot;) = &quot;true&quot;&nbsp;<br />            .Config(&quot;LinkUpload&quot;) = &quot;true&quot;&nbsp;<br />            .Config(&quot;ImageUpload&quot;) = &quot;true&quot;&nbsp;<br />            .Config(&quot;FlashUpload&quot;) = &quot;true&quot;&nbsp;<br />            end if&nbsp;<br />            .ToolbarSet = &quot;Basic&quot;&nbsp;<br />            .Width = &quot;100%&quot;&nbsp;<br />            .Height = &quot;200&quot;&nbsp;<br />            <br />            .Value = &quot;&quot;&nbsp;<br />            .Create &quot;jcontent&quot;&nbsp;<br />            %&gt;</span></div>            <div style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; line-height: 22px; width: 550px; "><span style="color: rgb(0, 255, 255); "><br style="line-height: normal; " />            JAVASCRIPT版本：<br style="line-height: normal; " />            <br style="line-height: normal; " />            </span></div>            <div class="msgheader" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 12px; line-height: normal; ">            <div class="right" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; "><a href="http://bbs.blueidea.com/thread-2678394-1-1.html###"><span style="color: rgb(0, 255, 255); ">[Copy to clipboard]</span></a></div>            <span style="color: rgb(0, 255, 255); ">CODE:</span></div>            <div class="msgborder" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 12px; line-height: normal; "><span style="color: rgb(0, 255, 255); ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var oFCKeditor = new FCKeditor( 'fbContent' ) ;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;%if power = powercode then%&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; oFCKeditor.Config['LinkBrowser'] = true ;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; oFCKeditor.Config['ImageBrowser'] = true ;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; oFCKeditor.Config['FlashBrowser'] = true ;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; oFCKeditor.Config['LinkUpload'] = true ;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; oFCKeditor.Config['ImageUpload'] = true ;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; oFCKeditor.Config['FlashUpload'] = true ;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;%end if%&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; oFCKeditor.ToolbarSet = 'Basic' ;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; oFCKeditor.Width = '100%' ;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; oFCKeditor.Height = '200' ;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; oFCKeditor.Value = '' ;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; oFCKeditor.Create() ;</span></div>            <div style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; line-height: 22px; width: 550px; "><span style="color: rgb(0, 255, 255); "><font size="3" style="line-height: normal; "><strong>在按钮旁边加文字</strong></font><br style="line-height: normal; " />            1打开<br style="line-height: normal; " />            editor/js/ 两个js文件<br style="line-height: normal; " />            <br style="line-height: normal; " />            </span></div>            <div class="msgheader" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 12px; line-height: normal; ">            <div class="right" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; "><a href="http://bbs.blueidea.com/thread-2678394-1-1.html###"><span style="color: rgb(0, 255, 255); ">[Copy to clipboard]</span></a></div>            <span style="color: rgb(0, 255, 255); ">CODE:</span></div>            <div class="msgborder" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 12px; line-height: normal; "><span style="color: rgb(0, 255, 255); ">fckeditorcode_gecko.js<br />            fckeditorcode_ie.js</span></div>            <div style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; line-height: 22px; width: 550px; "><span style="color: rgb(0, 255, 255); "><br style="line-height: normal; " />            第一个是支持非ie浏览器的<br style="line-height: normal; " />            第二个文件是支持ie浏览器的<br style="line-height: normal; " />            <br style="line-height: normal; " />            搜索 FCKToolbarButton<br style="line-height: normal; " />            <br style="line-height: normal; " />            可以看到许多类似这样的语句<br style="line-height: normal; " />            <br style="line-height: normal; " />            </span></div>            <div class="msgheader" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 12px; line-height: normal; ">            <div class="right" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; "><a href="http://bbs.blueidea.com/thread-2678394-1-1.html###"><span style="color: rgb(0, 255, 255); ">[Copy to clipboard]</span></a></div>            <span style="color: rgb(0, 255, 255); ">CODE:</span></div>            <div class="msgborder" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 12px; line-height: normal; "><span style="color: rgb(0, 255, 255); ">case 'Save':B=new FCKToolbarButton('Save',FCKLang.Save,null,null,true,null,3);break;</span></div>            <div style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; line-height: 22px; width: 550px; "><span style="color: rgb(0, 255, 255); "><br style="line-height: normal; " />            'Save'是按钮英文名字<br style="line-height: normal; " />            FCKToolbarButton 的四个参数分别是:<br style="line-height: normal; " />            按钮命令名称,按钮标签文字,按钮工具提示,按钮样式,按钮是否在源代码模式可见,按钮下拉菜单,<br style="line-height: normal; " />            其中将第4项参数设置为 FCK_TOOLBARITEM_ICONTEXT 即可使按钮旁边出现文字,注意没有引号.<br style="line-height: normal; " />            例如：<br style="line-height: normal; " />            ;case 'Preview':B=new FCKToolbarButton('Preview',FCKLang.Preview,null,FCK_TOOLBARITEM_ICONTEXT,true,null,5);<br style="line-height: normal; " />            这样我们就可以将 我们经常用的3种模式源代码、预览、全屏编辑 按钮都加上文字了<br style="line-height: normal; " />            <br style="line-height: normal; " />            ps:本来自己也想发一个，可是整理得不全。<br style="line-height: normal; " />            <br style="line-height: normal; " />            [<em style="line-height: normal; ">&nbsp;本帖最后由 mickeyboy 于 2006-9-22 09:37 编辑&nbsp;</em>]</span></div>            <p style="line-height: normal; "><span style="color: rgb(0, 255, 255); "><br />            <br />            <img src="http://www.taoyoyo.net/ttt/upload/201111011707117081.gif" width="16" style="cursor: pointer; " alt="" /></span><a href="http://www.taoyoyo.net/ttt/upload/201111011707121686.png</span></a><span style="color: rgb(0, 255, 255); ">&nbsp;(2006-9-22 09:19, 3.9 K)<br />            <br />            <img src="http://www.taoyoyo.net/ttt/upload/201111011707122154.png" style="width: 458px; cursor: pointer; " alt="" />&nbsp;<br />            </span></p>            <div style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; line-height: 22px; width: 550px; "><span style="color: rgb(0, 255, 255); "><font size="3" style="line-height: normal; "><strong>php快速上传问题</strong></font><br style="line-height: normal; " />            版本 fck2.3.1<br style="line-height: normal; " />            使用php快速上传的时候有一个问题,如果你指定的是一个动态的路径,比如 upload/YYYMMMDD,那么当文件夹不存在的时候fck似乎不给你建立新文件夹。我加了几行代码才解决<br style="line-height: normal; " />            /filemanager/upload/php/upload.php<br style="line-height: normal; " />            97行插入<br style="line-height: normal; " />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(!(file_exists($sServerDir) and is_dir($sServerDir)))<br style="line-height: normal; " />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br style="line-height: normal; " />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mkdir($sServerDir,0777);<br style="line-height: normal; " />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br style="line-height: normal; " />            <br style="line-height: normal; " />            <font size="3" style="line-height: normal; "><strong>与表单验证程序配合使用</strong></font><br style="line-height: normal; " />            如果你同时使用了表单验证程序来检查输入的内容，可能会发现第一次提交的时候会提示&ldquo;内容为空&rdquo;。然后再点提交就好了。这是因为fck在第一次表单验证程序检查的时候还没有更新关联的文本框。我们需要手动关联一下<br style="line-height: normal; " />            <br style="line-height: normal; " />            </span></div>            <div class="msgheader" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 12px; line-height: normal; ">            <div class="right" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; "><a href="http://bbs.blueidea.com/thread-2678394-1-1.html###"><span style="color: rgb(0, 255, 255); ">[Copy to clipboard]</span></a></div>            <span style="color: rgb(0, 255, 255); ">CODE:</span></div>            <div class="msgborder" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 12px; line-height: normal; "><span style="color: rgb(0, 255, 255); ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var oEditor = FCKeditorAPI.GetInstance('Content') ;//Content是fck实例的名称,也是表单文本框的名称<br />            &nbsp;&nbsp;&nbsp;&nbsp; oEditor.UpdateLinkedField();</span></div>            <div class="msgborder" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 12px; line-height: normal; "><span style="color: rgb(0, 255, 255); ">解释fck样式的工作原理<br />            <br />            </span>            <div style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; width: 550px; "><span style="color: rgb(0, 255, 255); ">fck的样式设置涉及到了两个文件，一个是你定义好的样式表文件.css，另一个是告诉fck样式表如何使用的xml文件，两个文件确一不可。<br style="line-height: normal; " />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; css文件的位置是不做要求的，但是需要你在应用的编辑器的页面上插入样式表文件的链接。这样才能显示出来样式。<br style="line-height: normal; " />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fckstyles.xml 在与editor目录同级的目录下。该文件定义了那些样式可以使用在那些标签里面。<br style="line-height: normal; " />            这就是fck自带的样式xml定义<br style="line-height: normal; " />            <br style="line-height: normal; " />            </span></div>            <div class="msgheader" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; ">            <div class="right" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; "><a href="http://bbs.blueidea.com/thread-2678394-1-1.html###"><span style="color: rgb(0, 255, 255); ">[Copy to clipboard]</span></a></div>            <span style="color: rgb(0, 255, 255); ">CODE:</span></div>            <div class="msgborder" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; "><span style="color: rgb(0, 255, 255); ">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;<br />            <br />            &lt;Styles&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp; &lt;Style name=&quot;Image on Left&quot; element=&quot;img&quot;&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Attribute name=&quot;style&quot; value=&quot;padding: 5px; margin-right: 5px&quot; /&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Attribute name=&quot;border&quot; value=&quot;2&quot; /&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Attribute name=&quot;align&quot; value=&quot;left&quot; /&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp; &lt;/Style&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp; &lt;Style name=&quot;Image on Right&quot; element=&quot;img&quot;&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Attribute name=&quot;style&quot; value=&quot;padding: 5px; margin-left: 5px&quot; /&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Attribute name=&quot;border&quot; value=&quot;2&quot; /&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Attribute name=&quot;align&quot; value=&quot;right&quot; /&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp; &lt;/Style&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp; &lt;Style name=&quot;Custom Bold&quot; element=&quot;span&quot;&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Attribute name=&quot;style&quot; value=&quot;font-weight: bold;&quot; /&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp; &lt;/Style&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp; &lt;Style name=&quot;Custom Italic&quot; element=&quot;em&quot; /&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp; &lt;Style name=&quot;Title&quot; element=&quot;span&quot;&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Attribute name=&quot;class&quot; value=&quot;Title&quot; /&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp; &lt;/Style&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp; &lt;Style name=&quot;Code&quot; element=&quot;span&quot;&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Attribute name=&quot;class&quot; value=&quot;Code&quot; /&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp; &lt;/Style&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp; &lt;Style name=&quot;Title H3&quot; element=&quot;h3&quot; /&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp; &lt;Style name=&quot;Custom Ruler&quot; element=&quot;hr&quot;&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Attribute name=&quot;size&quot; value=&quot;1&quot; /&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Attribute name=&quot;color&quot; value=&quot;#ff0000&quot; /&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp; &lt;/Style&gt;<br />            &lt;/Styles&gt;</span></div>            <div style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; width: 550px; "><span style="color: rgb(0, 255, 255); "><br style="line-height: normal; " />            每一个&lt;style&gt;将来会生成一个样式的菜单项。name名称就是显示在菜单里的文字 ；element定义了该样式可以应用在那种html标签上，&lt;Attribute&gt;的 name 指定了将会修改标签的哪个属性来应用样式 ,value则是修改成的值<br style="line-height: normal; " />            看这个<br style="line-height: normal; " />            <br style="line-height: normal; " />            </span></div>            <div class="msgheader" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; ">            <div class="right" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; "><a href="http://bbs.blueidea.com/thread-2678394-1-1.html###"><span style="color: rgb(0, 255, 255); ">[Copy to clipboard]</span></a></div>            <span style="color: rgb(0, 255, 255); ">CODE:</span></div>            <div class="msgborder" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; "><span style="color: rgb(0, 255, 255); ">&nbsp;&nbsp;&nbsp;&nbsp; &lt;Style name=&quot;Title&quot; element=&quot;span&quot;&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Attribute name=&quot;class&quot; value=&quot;Title&quot; /&gt;<br />            &nbsp;&nbsp;&nbsp;&nbsp; &lt;/Style&gt;</span></div>            <div style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; width: 550px; "><span style="color: rgb(0, 255, 255); "><br style="line-height: normal; " />            如果你在fck选定了文字 &ldquo;经典论坛 &raquo; 前台制作与脚本专栏 &raquo; FCKeditor 实战技巧 - 1 &raquo; 编辑帖子&rdquo; 应用该样式 则原来文字<br style="line-height: normal; " />            就会变成&lt;span class=&quot;Title&quot;&gt;经典论坛 &raquo; 前台制作与脚本专栏 &raquo; FCKeditor 实战技巧 - 1 &raquo; 编辑帖子&lt;/span&gt;<br style="line-height: normal; " />            <br style="line-height: normal; " />            <font style="line-height: normal; ">注意</font>：如果编辑器呈整页编辑状态，那么整页里面也需要插入样式表链接才能显示出来样式。<br style="line-height: normal; " />            </span></div>            </div>            <div class="msgborder" style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 12px; line-height: normal; "><span style="color: rgb(0, 255, 255); ">【问】使用FCKeditor添加文章时，在文章最后多了逗号。<br />            <br />            </span>            <div style="word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; width: 550px; "><span style="color: rgb(0, 255, 255); ">【答】此情况发生在asp环境中。在asp里对于 提交的表单信息中如果有相同name属性的键值对&nbsp;&nbsp; 做&lsquo;逗号连接处理&rsquo;&nbsp;<br style="line-height: normal; " />            你们一定是使用了这样的js方法建立了编辑器<br style="line-height: normal; " />            var oFCKeditor = new FCKeditor( 'editor' ) ;<br style="line-height: normal; " />            oFCoFCKeditor.Create() ;<br style="line-height: normal; " />            然后 又在同一个表单里面 添加了 一个id=&quot;editor&quot; 或者 name =&quot;editor&quot;的 文本域<br style="line-height: normal; " />            造成的！这样的话载入以后，实际上存在了两个 名称为editor表单控件了 所以在提交更新的时候，浏览器会出现逗号。<br style="line-height: normal; " />            <br style="line-height: normal; " />            解决的方法是：第一种：不要在表单里面 添加 多余的 名为 editor 的文本域了<br style="line-height: normal; " />            第二种：使用 fckeditor 的ReplaceTextarea()方法 ：<br style="line-height: normal; " />            <br style="line-height: normal; " />            window.onload = function()<br style="line-height: normal; " />            {<br style="line-height: normal; " />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Automatically calculates the editor base path based on the _samples directory.<br style="line-height: normal; " />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // This is usefull only for these samples. A real application should use something like this:<br style="line-height: normal; " />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // oFCKeditor.BasePath = '/fckeditor/' ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // '/fckeditor/' is the default value.<br style="line-height: normal; " />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;<br style="line-height: normal; " />            <br style="line-height: normal; " />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;<br style="line-height: normal; " />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; oFCKeditor.BasePath&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = sBasePath ;<br style="line-height: normal; " />            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; oFCKeditor.ReplaceTextarea() ;<br style="line-height: normal; " />            }<br style="line-height: normal; " />            具体的可以看 fckeditor的实例中的html实例第二个</span></div>            </div>            </div>            </td>        </tr>    </tbody></table>]]></description><category>网页编程</category><comments>http://www.taoyoyo.net/ttt/post/556.html#comment</comments><wfw:comment>http://www.taoyoyo.net/ttt/</wfw:comment><wfw:commentRss>http://www.taoyoyo.net/ttt/feed.asp?cmt=556</wfw:commentRss><trackback:ping>http://www.taoyoyo.net/ttt/cmd.asp?act=tb&amp;id=556&amp;key=7d629f34</trackback:ping></item><item><title>修改spfile参数的两点发现</title><author>a@b.com (taoether)</author><link>http://www.taoyoyo.net/ttt/post/555.html</link><pubDate>Tue, 27 Sep 2011 18:33:42 +0800</pubDate><guid>http://www.taoyoyo.net/ttt/post/555.html</guid><description><![CDATA[<p>&nbsp;今天修改系统连接数，发现如下：&nbsp;</p><div>发现：</div><div>1，修改spfile中的参数后，用spfile创建pfile，pfile并不会体现出来修改后的参数值。</div><div>2，修改processes，系统会同时修改session，但创建的pfile中，显示的session并不是当前的值。</div><div>&nbsp;</div><div>修改过程：</div><div>--查看当前使用的是spfile</div><div>SHOW PARAMETER PFILE;</div><div>--查看当前processes=450,sessions=500</div><div>SHOW PARAMETER PROCESSES;</div><div>SHOW PARAMETER SESSION;</div><div>--创建并查看pfile中processes=450;sessions=390</div><div>CREATE PFILE FROM SPFILE;</div><div>--修改pfile参数：processes=610</div><div>ALTER SYSTEM SET PROCESSES=610 SCOPE=SPFILE;</div><div>--创建并查看pfile中processes=450;sessions=390<strong> (pfile并不会体现出来修改后的参数值。)？</strong></div><div>CREATE PFILE FROM SPFILE;</div><div>&nbsp;</div><div>--重新启动数据库</div><div>STARTUP NOMOUNT</div><div>SHUTDOWN IMMEDIATE;</div><div>ALTER DATABASE MOUNT;</div><div>ALTER DATABASE OPEN;</div><div>--查看当前processes=610,sessions=676</div><div>SHOW PARAMETER PROCESSES;</div><div>SHOW PARAMETER SESSION;</div><div>--创建并查看pfile中processes=610;sessions=390<strong> (processes已经修改，但session还是值)</strong></div><div>CREATE PFILE FROM SPFILE;</div><div>&nbsp;</div><div>详细过程如下：</div><div>&nbsp;</div><blockquote><div>--查看当前使用的是spfile</div><div>SQL&gt; SHOW PARAMETER PFILE;</div><div>&nbsp;</div><div>NAME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TYPE &nbsp; &nbsp; &nbsp; &nbsp;VALUE</div><div>------------------------------------ ----------- ------------------------------</div><div>spfile &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string &nbsp; &nbsp; &nbsp;E:\ORACLE\PRODUCT\10.2.0\DB_1\</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DATABASE\SPFILEHS01.ORA</div><div>&nbsp;</div><div>--查看当前processes=450,sessions=500</div><div>&nbsp;</div><div>SQL&gt; SHOW PARAMETER PROCESSES;</div><div>&nbsp;</div><div>NAME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TYPE &nbsp; &nbsp; &nbsp; &nbsp;VALUE</div><div>------------------------------------ ----------- ------------------------------</div><div>aq_tm_processes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;integer &nbsp; &nbsp; 0</div><div>db_writer_processes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;integer &nbsp; &nbsp; 3</div><div>gcs_server_processes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; integer &nbsp; &nbsp; 0</div><div>job_queue_processes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;integer &nbsp; &nbsp; 10</div><div>log_archive_max_processes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;integer &nbsp; &nbsp; 2</div><div>processes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;integer &nbsp; &nbsp; 450</div><div>&nbsp;</div><div>SQL&gt; SHOW PARAMETER SESSION;</div><div>&nbsp;</div><div>NAME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TYPE &nbsp; &nbsp; &nbsp; &nbsp;VALUE</div><div>------------------------------------ ----------- ------------------------------</div><div>java_max_sessionspace_size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; integer &nbsp; &nbsp; 0</div><div>java_soft_sessionspace_limit &nbsp; &nbsp; &nbsp; &nbsp; integer &nbsp; &nbsp; 0</div><div>license_max_sessions &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; integer &nbsp; &nbsp; 0</div><div>license_sessions_warning &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; integer &nbsp; &nbsp; 0</div><div>logmnr_max_persistent_sessions &nbsp; &nbsp; &nbsp; integer &nbsp; &nbsp; 1</div><div>session_cached_cursors &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; integer &nbsp; &nbsp; 20</div><div>session_max_open_files &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; integer &nbsp; &nbsp; 10</div><div>sessions &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; integer &nbsp; &nbsp; 500</div><div>shared_server_sessions &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; integer</div><div>&nbsp;</div><div>SQL&gt; CONN / AS SYSDBA</div><div>Connected.</div><div>&nbsp;</div><div>--创建pfile</div><div>SQL&gt; CREATE PFILE FROM SPFILE;</div><div>&nbsp;</div><div>File created.</div><div>&nbsp;</div><div>--查看pfile中processes=450;</div><div>&nbsp;</div><div>--修改processes=610</div><div>SQL&gt; ALTER SYSTEM SET PROCESSES=610 SCOPE=SPFILE;</div><div>&nbsp;</div><div>System altered.</div><div>&nbsp;</div><div>--创建pfile</div><div>SQL&gt; CREATE PFILE FROM SPFILE;</div><div>&nbsp;</div><div>File created.</div><div>&nbsp;</div><div>--查看pfile中processes=450;session=390</div><div><strong>(修改spfile中的参数后，用spfile创建pfile，pfile并不会体现出来修改后的参数值。)</strong></div><div>&nbsp;</div><div>--重新启动数据库</div><div>SQL&gt; SHUTDOWN IMMEDIATE;</div><div>Database closed.</div><div>Database dismounted.</div><div>ORACLE instance shut down.</div><div>SQL&gt; STARTUP NOMOUNT</div><div>ORACLE instance started.</div><div>&nbsp;</div><div>Total System Global Area 2550136832 bytes</div><div>Fixed Size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2153872 bytes</div><div>Variable Size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 446505584 bytes</div><div>Database Buffers &nbsp; &nbsp; &nbsp; &nbsp; 2097152000 bytes</div><div>Redo Buffers &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;4325376 bytes</div><div>SQL&gt; ALTER DATABASE MOUNT;</div><div>&nbsp;</div><div>Database altered.</div><div>&nbsp;</div><div>SQL&gt; ALTER DATABASE OPEN;</div><div>&nbsp;</div><div>Database altered.</div><div>&nbsp;</div><div>--查看当前processes=610,sessions=676</div><div>&nbsp;</div><div>SQL&gt; SHOW PARAMETER PROCESS;</div><div>&nbsp;</div><div>NAME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TYPE &nbsp; &nbsp; &nbsp; &nbsp;VALUE</div><div>------------------------------------ ----------- ------------------------------</div><div>aq_tm_processes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;integer &nbsp; &nbsp; 0</div><div>db_writer_processes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;integer &nbsp; &nbsp; 3</div><div>gcs_server_processes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; integer &nbsp; &nbsp; 0</div><div>job_queue_processes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;integer &nbsp; &nbsp; 10</div><div>log_archive_max_processes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;integer &nbsp; &nbsp; 2</div><div>processes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;integer &nbsp; &nbsp; 610</div><div>SQL&gt; SHOW PARAMETER SESSION;</div><div>&nbsp;</div><div>NAME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TYPE &nbsp; &nbsp; &nbsp; &nbsp;VALUE</div><div>------------------------------------ ----------- ------------------------------</div><div>java_max_sessionspace_size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; integer &nbsp; &nbsp; 0</div><div>java_soft_sessionspace_limit &nbsp; &nbsp; &nbsp; &nbsp; integer &nbsp; &nbsp; 0</div><div>license_max_sessions &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; integer &nbsp; &nbsp; 0</div><div>license_sessions_warning &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; integer &nbsp; &nbsp; 0</div><div>logmnr_max_persistent_sessions &nbsp; &nbsp; &nbsp; integer &nbsp; &nbsp; 1</div><div>session_cached_cursors &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; integer &nbsp; &nbsp; 20</div><div>session_max_open_files &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; integer &nbsp; &nbsp; 10</div><div>sessions &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; integer &nbsp; &nbsp; 676</div><div>shared_server_sessions &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; integer</div><div>SQL&gt; SHOW PARAMETER PFILE</div><div>&nbsp;</div><div>NAME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TYPE &nbsp; &nbsp; &nbsp; &nbsp;VALUE</div><div>------------------------------------ ----------- ------------------------------</div><div>spfile &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string &nbsp; &nbsp; &nbsp;E:\ORACLE\PRODUCT\10.2.0\DB_1\</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DATABASE\SPFILEHS01.ORA</div><div>SQL&gt; CREATE PFILE FROM SPFILE;</div><div>&nbsp;</div><div>File created.</div><div>&nbsp;</div><div>--查看pfile中processes=610;session=390</div><div><strong>(修改processes，系统会同时修改session，但创建的pfile中，显示的session并不是当前的值，还是原来的值。)</strong></div></blockquote><div>&nbsp;</div>]]></description><category>Oracle</category><comments>http://www.taoyoyo.net/ttt/post/555.html#comment</comments><wfw:comment>http://www.taoyoyo.net/ttt/</wfw:comment><wfw:commentRss>http://www.taoyoyo.net/ttt/feed.asp?cmt=555</wfw:commentRss><trackback:ping>http://www.taoyoyo.net/ttt/cmd.asp?act=tb&amp;id=555&amp;key=9f753190</trackback:ping></item><item><title>[转]设置MSFLEXGRID控件可编辑示例</title><author>a@b.com (taoether)</author><link>http://www.taoyoyo.net/ttt/post/554.html</link><pubDate>Wed, 14 Sep 2011 18:01:40 +0800</pubDate><guid>http://www.taoyoyo.net/ttt/post/554.html</guid><description><![CDATA[<p>&nbsp;</p><div>&nbsp;</div><div>在MSFLEXGRID控件中每一个CELL格的内容是不可以由用户直接编辑的，但是我们可以通过一些小技巧来方便的实现这编辑功能来扩展MSFLEXGRID的应用（在实际应用中这是很常用的功能）。</div><div>你只需按下面的做即可轻松实现编辑MSFLEXGRID控件数据的功能</div><div>&nbsp;</div><div>例：</div><div>&nbsp;</div><div>在窗体上放一文本框text1，和一MSFLEXGRID控件flexgrid1，然后加入下例代码：</div><div>　　</div><blockquote><div>Private Sub Form_Load()</div><div>&nbsp; &nbsp; Text1.Move -10000, -10000, 1, 1</div><div>End Sub</div><div>&nbsp;</div><div>Private Sub MSFlexGrid1_EnterCell()</div><div>&nbsp; &nbsp; MSFlexGrid1.CellBackColor = vbBlue</div><div>&nbsp; &nbsp; MSFlexGrid1.CellForeColor = vbWhite</div><div>&nbsp; &nbsp; Text1.Text = MSFlexGrid1.Text</div><div>&nbsp; &nbsp; Text1.SelStart = 0</div><div>&nbsp; &nbsp; Text1.SelLength = Len(Text1.Text)</div><div>End Sub</div><div>&nbsp;</div><div>Private Sub MSFlexGrid1_LeaveCell()</div><div>&nbsp; &nbsp; MSFlexGrid1.CellBackColor = vbWhite &nbsp;</div><div>&nbsp; &nbsp; MSFlexGrid1.CellForeColor = vbBlue</div><div>End Sub</div><div>&nbsp;</div><div>Private Sub MSFlexGrid1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)</div><div>&nbsp; &nbsp; Text1.SetFocus</div><div>End Sub</div><div>&nbsp;</div><div>Private Sub Text1_Change()</div><div>&nbsp; &nbsp; MSFlexGrid1.Text = Text1.Text</div><div>End Sub</div><div>&nbsp;</div><div>Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)</div><div>&nbsp; &nbsp; Select Case KeyCode</div><div>&nbsp; &nbsp; Case vbKeyLeft, vbKeyRight, vbKeyUp, vbKeyDown</div><div>&nbsp; &nbsp; KeyCode = 0</div><div>&nbsp; &nbsp; End Select</div><div>End Sub</div></blockquote><div>&nbsp;</div><div>ok,这样一个可编辑的MSFLEXGRID控件就完成了!!</div><div>&nbsp;</div><div>(来源：http://tech.ddvip.com/2006-07/11539061145751.html)</div>]]></description><category>VB</category><comments>http://www.taoyoyo.net/ttt/post/554.html#comment</comments><wfw:comment>http://www.taoyoyo.net/ttt/</wfw:comment><wfw:commentRss>http://www.taoyoyo.net/ttt/feed.asp?cmt=554</wfw:commentRss><trackback:ping>http://www.taoyoyo.net/ttt/cmd.asp?act=tb&amp;id=554&amp;key=14123360</trackback:ping></item><item><title> [转]MsFlexGrid用法大全</title><author>a@b.com (taoether)</author><link>http://www.taoyoyo.net/ttt/post/553.html</link><pubDate>Wed, 14 Sep 2011 14:01:24 +0800</pubDate><guid>http://www.taoyoyo.net/ttt/post/553.html</guid><description><![CDATA[<div><div>VB中MsFlexGrid控件的使用细则(收集)</div><div>&nbsp;</div><div>&gt;&gt; 将文本赋值给MsFlexGrid的单元格</div><div>MsFlexGrid.TextMatrix(3,1)=&rdquo;Hello&rdquo;</div><div>&nbsp;</div><div>&gt;&gt; 在MsFlexGrid控件单元格中插入背景图形</div><div>Set MsFlexGrid.CellPicture=LoadPicture(&ldquo;C:\temp\1.bmp&rdquo;)</div><div>&nbsp;</div><div>&gt;&gt;选中某个单元</div><div>MsFlexGrid.Row=1</div><div>MsFlexGrid.Col=1</div><div>&nbsp;</div><div>&gt;&gt;用粗体格式化当前选中单元</div><div>MsFlexGrid.CellFontBold=True</div><div>&nbsp;</div><div>&gt;&gt; 添加新的一行</div><div>使用AddItem方法,用Tab字符分开不同单元格的内容</div><div>dim row as string</div><div>row=&rdquo;AAA&rdquo;&amp;vbtab&amp;&rdquo;bbb&rdquo;</div><div>MsFlexFrid1.addItem row</div><div>&nbsp;</div><div>&nbsp;</div><div>&gt;&gt;怎样来实现MSFlexGrid控件单数行背景为白色，双数的行背景为蓝色?</div><div>Dim i As Integer</div><div>With MSFlexGrid1</div><div>.AllowBigSelection = True &rsquo; 设置网格样式</div><div>.FillStyle = flexFillRepeat</div><div>For i = 0 To .Rows - 1</div><div>.Row = i: .Col = .FixedCols</div><div>.ColSel = .Cols() - .FixedCols - 1</div><div>If i Mod 2 = 0 Then</div><div>.CellBackColor = &amp;HC0C0C0 &rsquo; 浅灰</div><div>Else</div><div>.CellBackColor = vbBlue &rsquo; 兰色</div><div>End If</div><div>Next i</div><div>End With</div><div>&nbsp;</div><div>&gt;&gt; MSFlexGrid控件如何移到最后一行</div><div>MSFlexGrid1.TopRow = MSFlexGrid1.Rows &ndash; 1</div><div>&nbsp;</div><div>&gt;&gt;如何判断msflexgrid有无滚动条</div><div>Declare Function GetScrollRange Lib &quot;user32&quot; (ByVal hWnd As Long, ByVal nBar As Long, lpMinPos As</div><div>&nbsp;</div><div>Long, lpMaxPos As Long) As Long</div><div>Public Const SB_HORZ = &amp;H0</div><div>Public Const SB_VERT = &amp;H1</div><div>&nbsp;</div><div>Public Function VsScroll(MshGrid As MSHFlexGrid) As Boolean &rsquo;判断水平滚动条的可见性</div><div>Dim i As Long</div><div>VsScroll = False</div><div>i = GetScrollRange(MshGrid.hWnd, SB_HORZ, lpMinPos, lpMaxPos)</div><div>If lpMaxPos &lt;&gt; lpMinPos Then VsScroll = True</div><div>End Function</div><div>&nbsp;</div><div>Public Function HeScroll(MshGrid As MSHFlexGrid) As Boolean &rsquo;判断垂直滚动条的可见性</div><div>Dim i As Long</div><div>HeScroll = False</div><div>i = GetScrollRange(MshGrid.hWnd, SB_VERT, lpMinPos, lpMaxPos)</div><div>If lpMaxPos &lt;&gt; lpMinPos Then HeScroll = True</div><div>End Function</div><div>&nbsp;</div><div>&gt;&gt;程序运行时，想动态增加MSFlexgrid的列数</div><div>在第2列后插入一列：</div><div>Private Sub Form_Load()</div><div>Me.MSHFlexGrid1.Cols = 5</div><div>MSHFlexGrid1.Rows = 2</div><div>For i = 0 To Me.MSHFlexGrid1.Cols - 1</div><div>Me.MSHFlexGrid1.TextMatrix(0, i) = i</div><div>Me.MSHFlexGrid1.TextMatrix(1, i) = i</div><div>Next</div><div>End Sub</div><div>&nbsp;</div><div>Private Sub Command1_Click()</div><div>Me.MSHFlexGrid1.Cols = Me.MSHFlexGrid1.Cols + 1</div><div>Me.MSHFlexGrid1.ColPosition(5) = 3</div><div>End Sub</div><div>&nbsp;</div><div>&gt;&gt; 请教MSFlexGrid中的对齐功能的使用</div><div>设置MSFlexGrid1.ColAlignment(index)=n</div><div>&nbsp;</div><div>&nbsp;</div><div>&gt;&gt;得到MSFlexGrid控件中当前选中的一行</div><div>msflexgrid1.rowsel就是当前选中行</div><div>&nbsp;</div><div>&gt;&gt; 如何通过代码调节列宽度</div><div>msflexgrid1.colwidth(i)=4000</div><div>&nbsp;</div><div>&gt;&gt;将MsFlexGrid控件的内容输出到文本</div><div>&nbsp;</div><div>2004-03-19 14:25:18</div><div>'OutDataToText</div><div>将MsFlexGrid控件中显示的内容输出到文本文件</div><div>Public Sub OutDataToText(Flex As MSFlexGrid)</div><div>Dim s As String</div><div>Dim i As Integer</div><div>Dim j As Integer</div><div>Dim k As Integer</div><div>Dim strTemp As String</div><div>On Error GoTo Ert</div><div>Me.MousePointer = 11</div><div>On Error Resume Next</div><div>DoEvents</div><div>Dim FileNum As Integer</div><div>FileNum = FreeFile</div><div>Open &quot;d:aa.txt&quot; For Output As #FileNum</div><div>With Flex</div><div>k = .Rows</div><div>For i = 0 To k - 1</div><div>strTemp = &quot;&quot;</div><div>For j = 0 To .Cols - 1</div><div>DoEvents</div><div>strTemp = strTemp &amp; .TextMatrix(i, j) &amp; &quot;,&quot;</div><div>Next j</div><div>Print #FileNum, Left(strTemp, Len(strTemp) - 1)</div><div>Next i</div><div>End With</div><div>Close #FileNum</div><div>Me.MousePointer = 0</div><div>MsgBox &quot;导出成功&quot;</div><div>Ert:</div><div>MsgBox Err.Description</div><div>Me.MousePointer = 0</div><div>End Sub</div><div>&nbsp;</div><div>+++</div><div>增加 MsFlexGrid 的编辑功能</div><div>（作者：佚名 加载日期: 2002/3/31）</div><div>---</div><div>概述</div><div>MsFlexGrid 控件没有提供文本编辑的功能，下面的例子演示了如何利用一个TextBox 实现编辑当前网格的功能。</div><div>在按下一个键后， 就把TextBox 移动到当前的位置， 并激活。 在键入回车或移动到其他网格时，</div><div>就把TextBox 中的内容放到网格中。</div><div>&nbsp;</div><div>实现步骤</div><div>1 打开 VB5， 开启一个新的工程。</div><div>2 在菜单&ldquo;工程&rdquo; 中选择 &ldquo;部件&rdquo;， 在列表中选中 &ldquo;Microsoft FlexGrid Control ..&rdquo;</div><div>3 放一个 MsFlexGrid 控件和一个TextBox 控件(Text1)到 Form1。 修改MsFlexGrid 控件的名称为 Grid1，</div><div>设置Grid1 的行，列 为 4， 固定行，列为 0。 设置 Text1 的 Visiable 为 False， BorderStyle 为None(0)。</div><div>4 在Form1 的代码中增加声明：</div><div>&nbsp;</div><div>Const ASC_ENTER = 13 '回车</div><div>Dim gRow As Integer</div><div>Dim gCol As Integer</div><div>&nbsp;</div><div>5 增加代码到 Grid_KeyPress 过程：</div><div>Private Sub Grid1_KeyPress(KeyAscii As Integer)</div><div>' Move the text box to the current grid cell:</div><div>Text1.Top = Grid1.CellTop + Grid1.Top</div><div>Text1.Left = Grid1.CellLeft + Grid1.Left</div><div>' Save the position of the grids Row and Col for later:</div><div>gRow = Grid1.Row</div><div>gCol = Grid1.Col</div><div>' Make text box same size as current grid cell:</div><div>Text1.Width = Grid1.CellWidth - 2 * Screen.TwipsPerPixelX</div><div>Text1.Height = Grid1.CellHeight - 2 * Screen.TwipsPerPixelY</div><div>' Transfer the grid cell text:</div><div>Text1.Text = Grid1.Text</div><div>' Show the text box:</div><div>Text1.Visible = True</div><div>Text1.ZOrder 0 ' 把 Text1 放到最前面！</div><div>Text1.SetFocus</div><div>' Redirect this KeyPress event to the text box:</div><div>If KeyAscii &lt;&gt; ASC_ENTER Then</div><div>SendKeys Chr$(KeyAscii)</div><div>End If</div><div>End Sub</div><div>&nbsp;</div><div>6 增加代码到 Text1_KeyPress 过程：</div><div>Private Sub Text1_KeyPress(KeyAscii As Integer)</div><div>If KeyAscii = ASC_ENTER Then</div><div>Grid1.SetFocus ' Set focus back to grid, see Text_LostFocus.</div><div>KeyAscii = 0 ' Ignore this KeyPress.</div><div>End If</div><div>End Sub</div><div>&nbsp;</div><div>7 增加代码到 Text1_LostFocus 过程：</div><div>Private Sub Text1_LostFocus()</div><div>Dim tmpRow As Integer</div><div>Dim tmpCol As Integer</div><div>' Save current settings of Grid Row and col. This is needed only if</div><div>' the focus is set somewhere else in the Grid.</div><div>tmpRow = Grid1.Row</div><div>tmpCol = Grid1.Col</div><div>' Set Row and Col back to what they were before Text1_LostFocus:</div><div>Grid1.Row = gRow</div><div>Grid1.Col = gCol</div><div>Grid1.Text = Text1.Text ' Transfer text back to grid.</div><div>Text1.SelStart = 0 ' Return caret to beginning.</div><div>Text1.Visible = False ' Disable text box.</div><div>' Return row and Col contents:</div><div>Grid1.Row = tmpRow</div><div>Grid1.Col = tmpCol</div><div>End Sub</div><div>&nbsp;</div><div>8 好了。 按 F5 开始测试。 您可以自由地在 Grid 中移动， 按回车可以开始或结束编辑。</div><div>&nbsp;</div><div>+++</div><div>关于MSFlexGrid可编辑的两种方法</div><div>---</div><div>2008年09月27日 星期六 下午 04:08</div><div>---</div><div>实现点击MSFlexGrid，就有一个text移上来供编辑：</div><div>下面总结两个方法：</div><div>&nbsp;</div><div>方法一：</div><div>With MSFlexGrid1</div><div>Text1.Move .Left + .CellLeft, .Top + .CellTop, .CellWidth, .CellHeight</div><div>End With</div><div>&nbsp;</div><div>此方法必须设置窗体的ScaleMode为1（缇为单位）。</div><div>&nbsp;</div><div>因为：CellHeight、CellLeft、CellTop 以及 CellWidth 属性，这些属性返回以缇为单位的当前单元的位置和大小，而MSFlexGrid1的.Left ，top是根据窗体的ScaleMode自动调整的（就是窗体是缇，MSFlexGrid1的.Left ，top就是缇，为某一个数，窗体是像素，MSFlexGrid1的.Left ，top就是像素，为另外某一个数。自动换算的。），所以要直接相加必须单位一样，所以必须为缇。</div><div>&nbsp;</div><div>方法二：</div><div>With MSFlexGrid1</div><div>' Text1.Move ScaleX(.CellLeft, 1, 3) + .Left, ScaleY(.CellTop, 1, 3) + .Top, ScaleX(.CellWidth, 1, 3), ScaleY(.CellHeight, 1, 3)</div><div>End With</div><div>&nbsp;</div><div>此方法必须设置窗体的ScaleMode为3（像素为单位）。原因同上。要直接相加必须单位一样。</div><div>&nbsp;</div><div>+++</div><div>使用MsFlexGrid控件的几个函数</div><div>---</div><div>作者：中国论坛网收集 来源：http://www.51one.net 加入时间：2004-8-25</div><div>---</div><div>在VB处理数据显示的时候,使用表格是一种好的方法,虽然DataGrid可以与数据源绑定,但是总有美中不足,就是外观不好看,所以有时应用MsFlexGrid显示数据还是一种比较好的方法,以下几个函数是用来控制MsFlexGrid的程序</div><div>(本人语言表达能力有限,还请见谅)</div><div>&nbsp;</div><div>''MsFlexGrid操作函数</div><div>&nbsp;</div><div>''合并列</div><div>Public Function MergeCol(GridObj As Object, ByVal StartCol As Long, ByVal EndCol As Long, ByVal</div><div>&nbsp;</div><div>ColValue As String, ByVal CurrentRow As Long) As Boolean</div><div>If StartCol &gt; EndCol Or StartCol &gt; GridObj.Cols Or CurrentRow &gt; GridObj.Rows Then</div><div>MsgBox &quot;对不起，行列设置错误！&quot;, vbOKOnly, App.Title</div><div>MergeCol = False</div><div>Exit Function</div><div>End If</div><div>&nbsp;</div><div>For I = StartCol To EndCol</div><div>GridObj.MergeCol(I) = True</div><div>GridObj.TextArray(faIndex(GridObj, CurrentRow, I)) = ColValue</div><div>GridObj.ColAlignment(I) = flexAlignCenterCenter</div><div>Next I</div><div>&nbsp;</div><div>GridObj.MergeRow(CurrentRow) = True</div><div>&nbsp;</div><div>MergeCol = True</div><div>&nbsp;</div><div>End Function</div><div>&nbsp;</div><div>''合并行</div><div>Public Function MergeRow(GridObj As Object, ByVal StartRow As Long, ByVal EndRow As Long, ByVal</div><div>&nbsp;</div><div>RowValue As String, ByVal CurrentCol As Long) As Boolean</div><div>If StartRow &gt; EndRow Or StartRow &gt; GridObj.Rows Or CurrentCol &gt; GridObj.Cols Then</div><div>MsgBox &quot;对不起，行列设置错误！&quot;, vbOKOnly, App.Title</div><div>MergeRow = False</div><div>Exit Function</div><div>End If</div><div>&nbsp;</div><div>For I = StartRow To EndRow</div><div>GridObj.MergeRow(I) = True</div><div>GridObj.TextArray(faIndex(GridObj, I, CurrentCol)) = RowValue</div><div>GridObj.ColAlignment(CurrentCol) = flexAlignCenterCenter</div><div>&nbsp;</div><div>Next I</div><div>GridObj.MergeCol(CurrentCol) = True</div><div>MergeRow = True</div><div>&nbsp;</div><div>End Function</div><div>&nbsp;</div><div>''转换索引</div><div>Public Function faIndex(GridObj As Object, ByVal row As Integer, ByVal col As Integer) As Long</div><div>If row &gt; GridObj.Rows Or row &lt; 0 Or col &gt; GridObj.Cols Or col &lt; 0 Then</div><div>MsgBox &quot;对不起，行列设置错误！&quot;, vbOKOnly, App.Title</div><div>faIndex = -1</div><div>&nbsp;</div><div>Exit Function</div><div>End If</div><div>&nbsp;</div><div>faIndex = row * GridObj.Cols + col</div><div>&nbsp;</div><div>End Function</div><div>&nbsp;</div><div>''插入行</div><div>Public Function SetItem(GridObj As Object, ByVal row As Integer, ByVal col As Integer, ByVal</div><div>&nbsp;</div><div>SetValue As String) As Boolean</div><div>If row &gt; GridObj.Rows Or row &lt; 0 Or col &gt; GridObj.Cols Or col &lt; 0 Then</div><div>MsgBox &quot;对不起，行列设置错误！&quot;, vbOKOnly, App.Title</div><div>SetItem = False</div><div>Exit Function</div><div>End If</div><div>GridObj.TextArray(faIndex(GridObj, row, col)) = SetValue</div><div>&nbsp;</div><div>SetItem = True</div><div>End Function</div><div>&nbsp;</div><div>''得到单元格值</div><div>Public Function GetItem(GridObj As Object, ByVal row As Integer, ByVal col As Integer) As String</div><div>&nbsp;</div><div>If row &gt; GridObj.Rows Or row &lt; 0 Or col &gt; GridObj.Cols Or col &lt; 0 Then</div><div>MsgBox &quot;对不起，行列设置错误！&quot;, vbOKOnly, App.Title</div><div>GetItem = &quot;&quot;</div><div>Exit Function</div><div>End If</div><div>GetItem = GridObj.TextArray(faIndex(GridObj, row, col))</div><div>End Function</div><div>&nbsp;</div><div>在msflexgrid控件中每一个cell格的内容是不可以由用户直接编辑的但是我们可以通过一些小技</div><div>巧来方便的实现这编辑功能来扩展msflexgrid的应用（在实际应用中这是很常用的功能）。</div><div>&nbsp;</div><div>你只需按下面的做即可轻松实现编辑msflexgrid控件数据的功能</div><div>&nbsp;</div><div>例在窗体上放一文本框txtvalue，和一msflexgrid控件grid</div><div>&nbsp;</div><div>&lsquo;文本框控件的keypress事件</div><div>private sub txtvalue_keypress(keyascii as integer)</div><div>&lsquo;放入一些处理过程，如只需输入数字时的处理</div><div>&nbsp;</div><div>dim i</div><div>i=1</div><div>end sub</div><div>&nbsp;</div><div>private sub txtvalue_change()</div><div>grid.text = txtvalue.text</div><div>end sub</div><div>&nbsp;</div><div>&nbsp;</div><div>'在grid的entercell事件中加入下例代码</div><div>private sub grid_entercell()</div><div>txtvalue.text = grid.text</div><div>txtvalue.selstart = 0</div><div>txtvalue.sellength = len(txtvalue.text)</div><div>end sub</div><div>&nbsp;</div><div>'当用户输入数据时直接调用文本框的keypress事件</div><div>private sub grid_keypress(keyascii as integer)</div><div>txtvalue_keypress keyascii</div><div>end sub</div><div>&nbsp;</div><div>ok,这样一个可编辑的msflexgrid控件就完成了，简单吧!!</div><div>&nbsp;</div><div>原理</div><div>当用户点击msflexgrid中的某个cell格要输入数据时,产生entercell事件，在这里我们对文本</div><div>框进行初始化，输入当前cell格中的内容，并且选中所有文本。当用户要按下按键进行输入时，就直</div><div>接调用txtvalue的事件，由文本框来处理.&nbsp;</div></div>]]></description><category>VB</category><comments>http://www.taoyoyo.net/ttt/post/553.html#comment</comments><wfw:comment>http://www.taoyoyo.net/ttt/</wfw:comment><wfw:commentRss>http://www.taoyoyo.net/ttt/feed.asp?cmt=553</wfw:commentRss><trackback:ping>http://www.taoyoyo.net/ttt/cmd.asp?act=tb&amp;id=553&amp;key=13273f37</trackback:ping></item><item><title>我只想寻求一下支持，让人评评理!</title><author>a@b.com (taoether)</author><link>http://www.taoyoyo.net/ttt/post/548.html</link><pubDate>Thu, 01 Sep 2011 16:56:25 +0800</pubDate><guid>http://www.taoyoyo.net/ttt/post/548.html</guid><description><![CDATA[<p><span class="Apple-style-span" style="font-family: Simsun; line-height: normal; font-size: medium; "><div style="background-color: rgb(255, 255, 255); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 160%; "><p>我只想寻求一下支持，让人评评理!</p><p>&nbsp;</p><p>不错，我就是想让人来评评理!</p><p>都说婚姻，家庭中没有对错，不能讲理&hellip;&hellip;</p><p>确实，对于一般家庭生活来说，是，没有谁对谁错，家也不是讲理的地方&hellip;&hellip;</p><p>但我认为这个不是绝对的!</p><p>假如一个男人暴力倾向，天天没事打老婆，你也不能说这个男人有错么？你还得教育这个女人要怎么变化各种方式去感化他么？</p><p>大家常说什么&ldquo;泼妇&rdquo;&ldquo;负心男&rdquo;，是不是他们都没有错，是不是都是他们对方的错，是不是都应该让他们的对方在自己身上找原因，让他们的对方改变态度，变化爱的方式去感化他们&hellip;&hellip;</p><p>所以，没有什么事是那么绝对的，了解一下情况(不是说空杯么&hellip;&hellip;)，然后再根据情况判断吧&hellip;&hellip;</p><p>&nbsp;</p><p>当然，我不是想让你听我说两句，就来说Y不好，说Y不对，帮我大骂Y，把Y打倒在地&hellip;&hellip;</p><p>我只是想找人来评评理，如果能够认同我，能帮我劝劝Y，看看能不能改变Y的态度。</p><p>因为Y认为她的都是对的，而且我已经找不到可以说动她的人!</p><p>&nbsp;</p><p>当然，说Y怎么不对，怎么不好，这只是我的想法。</p><p>你可以怀疑，你可以指责我也有错，这都没有关系!</p><p>但你最其码的应该多了解一下吧，不能一上来就全是我的责任，都让我来改进来弥补&hellip;&hellip;说点虚头巴脑的东西&hellip;&hellip;</p><p>确实婚姻需要经营，需要讲究方式，但那些不都是相互的么&hellip;&hellip;</p><p>&nbsp;</p><p>一点也不去了解，一味的以自己的理解，以自己的经验去理解和判断事情，你就能肯定天下所有这样的事都在你意料之中，都是你所设想的那样! 你一听就能理解其中的原因&hellip;&hellip;</p><p>我有点反感，可能我说的不太好，反面让他们觉得我过错多一些。</p><p><span class="Apple-style-span">也可能他们认为</span>这是<span class="Apple-style-span">劝我们最好的方式了!</span></p><p>&nbsp;</p><p>李云凤说Y不对，并提到海燕给父母盖房的事&hellip;&hellip;</p><p>韩丽马上说&ldquo;云凤越这样讲，陶越心里不平衡&rdquo;，小宋还说&ldquo;你是火上浇油啊&rdquo;</p><p>他们俩倒很一致&hellip;&hellip;</p><p>呵呵，你以为我傻到什么份上啊!&nbsp;她不说，我就不知道么，我是聋子，我是瞎子，唉&hellip;&hellip;</p><p>其实每次看到人家家庭和和睦睦的，我特别羡慕，虽然那可能只是表面现象!</p><p>原来是怕我不平衡，但这是问题的根源，怎么绕得过去呢。</p><p>原来李的几句&ldquo;大实话&rdquo;，是别人一直想避开的&hellip;&hellip;</p><p>每个人的思维果然都是不一样的，确实是这样。</p><p>但实在不知道他们为什么要这么想&hellip;&hellip;</p><p>难道我听了这话，我就更恨Y了，更认为Y坏了&hellip;&hellip;</p><p>难道她不说，我就觉得Y好得象朵花一样，觉得Y对我父母也好得不得了了？也会觉得别人也都和Y一样对待父母&hellip;&hellip;</p><p>我很傻，但没有傻到那份上!</p><p>其实，与他们所想象的相反，我一点也没有不平衡，火气也没有变大，相反，我感觉很舒服，终于有人说句公道话!</p><p>劝别人，最其码的，你得让人认同你，然后才可能取得效果，不是这样么!</p><p>你一味的在那按自己的思路想，按自己的经验想啊，怎么发生的矛盾，怎么才能化解&hellip;&hellip;但事实未必如你所想的啊!</p><p>有句话：不幸的家庭是各种各样的，但幸福的家庭大同小异&hellip;&hellip;</p><p>面对多种多样的情况，不能一概而论啊，不能想得太简单啊&hellip;&hellip;!</p><p>&nbsp;</p><p>但不管怎么说，人家都是为了我好，感谢一下!</p><p>&nbsp;+++</p><p>终于找到了那句话，太经典了，原来记在这里： http://www.taoyoyo.net/ttt/post/112.html，应该是庆余年吧里一位网友说的，我记得我记下了呢!</p><blockquote><p><span style="color: rgb(153, 51, 102); "><span style="font-size: large; ">关心我们的人很多，但真正理解并尊重我们的想法的人没几个。我一直都这么固执的认为：很少有人能真正的为他人着想，我们都在用自己心里的那杆称衡量我们身边的人和事，也都固执的。</span></span></p></blockquote><p>值得我们每天都背一遍!!!</p><div>&nbsp;</div></div></span></p>]]></description><category>随笔</category><comments>http://www.taoyoyo.net/ttt/post/548.html#comment</comments><wfw:comment>http://www.taoyoyo.net/ttt/</wfw:comment><wfw:commentRss>http://www.taoyoyo.net/ttt/feed.asp?cmt=548</wfw:commentRss><trackback:ping>http://www.taoyoyo.net/ttt/cmd.asp?act=tb&amp;id=548&amp;key=c91a0a6a</trackback:ping></item><item><title>[转]别指望谁能理解你，自己做好自己事情</title><author>a@b.com (taoether)</author><link>http://www.taoyoyo.net/ttt/post/547.html</link><pubDate>Thu, 01 Sep 2011 12:12:19 +0800</pubDate><guid>http://www.taoyoyo.net/ttt/post/547.html</guid><description><![CDATA[<p>&nbsp;&nbsp;　　别指望谁能理解你，自己做好自己事情</p><div style="background-color: rgb(255, 255, 255); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 160%; ">　　(想找一句话，没有找到，找到了这篇东西，保存一下!)</div><div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 160%; ">　　世界上的一切矛盾的起源，是因为人与人之间的理解不对称，对某一件事情，大家各自的观察角度和看法不一样，所以导致了各类矛盾的出现。&nbsp;</div><div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 160%; ">　　在工作中，我们几乎面临着各式各样的理解不对称，例如身边的朋友，同事，老板，客户，乃至家人，就是不能很好的理解你，自然也就不太可能配合你，工作是如此，生活也是如此。想找到一个理解自己的人实在是太难，往往穷其一身，也找不到一个，所以，许多人甚是感叹，人生得一知己，死已足哎，把这事提到生死的高度，提升到这个高度，也说明了这个事难度之大。巴金先生也说：&ldquo;理解万岁&rdquo;，这反过来也说明了一个问题，人与人之间的互相理解，几乎是件不可能的事情，为什么人与人之间的理解就这么难？&nbsp;</div><div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 160%; ">　　现在科技技术已经可以把人送到数万公里之外的月亮上去挖石头，但却无法搞清楚距离你只有十公分的那个人心里在想什么，无法准确获知对方的状态，了解是理解的前提，即便是对方想了解你，也会因为没有办法获知你的真实状况而无门可入，再者，每个人心中，有许多目标是不可告人的，个人真正的目标和理想往往是高度私人化的，有些是黑暗的，无法公布于众的，也就是没法说出来的，最多也只能表达一部分而已，表达出来的信息不完整不真实，别人对你的真实状况也就不可能进行有效的了解，若谈理解，最多也就是在某一两个单点上的理解，不可能全部理解。在这个问题上要学会知足，别人能理解你一两个单点已经不错了。&nbsp;</div><div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 160%; ">　　并且，每一个人都是高度独立的个体，其背景，经历，价值观，看事的角度，思维习惯，目标取向等等都是千差万别的，对某件事，某个人的理解都是从自己的角度出发的，世界上没有两片相同的叶子，更何况这么复杂的人呢。父母与自己应该是最贴心的，但都很难互相理解，更何况其他关系单薄的人呢？&nbsp;</div><div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 160%; ">　　再有，这世界上唯一不变的道理的就是&ldquo;变&rdquo;，社会环境在变，人在变，自己的价值观和思维习惯在变，个人的目标取向也在变，这些与人有关连的内外部因素都在变，这也导致人与人之间的理解更加困难，&nbsp;</div><div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 160%; ">　　我们潜意识里希望别人对我们能有个全方面的理解，甚至是渴求别人的理解，却又不能告诉别人一个真实的自己，这本身就是有矛盾的，加之一切都在变，理解的困难又是增加了许多。&nbsp;</div><div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 160%; ">　　不过，换个角度想一下，我们为什么需要别人对自己的理解呢？表面上来看，这是试图获得别人对自己的认可，自己对自己的价值不确定，自己的价值非得要建立在被别人认可的基础上，自己的认可不算数，或者说，自己心中的自我是软弱的，无法承托自己的希望和未来，反而要把这些东西寄托在别人的身上。换而言之，这就是自卑的表现&nbsp;</div><div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 160%; ">　　许多人抱怨自己在公司里不得志，眼见许多不如自己的人却获得飞快的发展，自己空有一身才学却无人能识，由于事业发展不利，家人关系也会受些影响，内忧外患，于是就感叹这世上咋就没有人能够理解自己的呢？苦闷也好，郁闷也好，因此而形成，其实，所谓的不得志，就是被动的等待别人来发现自己，承认自己的价值所在，并给予自己机会。事实上，在如今这个竞争日趋激烈的社会里，这种被动等待的思想早已经落伍了，现在要的是主动的，多渠道的，更大范围的来展现自己，而不是坐在那里干等着别人来主动发现你。换而言之，这些所谓的郁闷苦闷，以及觉得别人理解不了自己，这些状态都是自找的。渴望和等待别人来理解自己，一是压根犯不着，二是这等于自己给自己下达了一个不可能的任务&nbsp;</div><div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 160%; ">　　别指望谁能理解你，自己做好自己事情吧，成功不是别人给的，而是自己一步步做出来的，在现实中，每个人都是在为自己负责，那有那么多精力来理解你，再说了，有那个必要吗？你又不是上帝，并且，在事实中，许多成功的人往往是孤独的，理解他们的人很少，或是压根就没有，成功者并不在别人对自己的理解太当回事，而大多是属于那种自己理解自己，自己认可自己，也许就是因为这点，才能促进他们取得成功的原因所在。套用句时髦的话来说：走自己的路，让别人打车去吧。</div><div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 160%; ">　　(作者：潘文富，来源：http://www.sinoec.net/Article/reason/hr/Article_50619.html)</div><div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 160%; ">　　+++</div><div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 160%; ">　　我确实自卑，想得到别人的认可，看来没有必要&hellip;&hellip;婆婆妈妈的解释来解释去，何必呢，只能让别人增加对自己的看法和成见。话一说出来的都会变样!</div><div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 160%; ">　　以后不解释~~看看黄药师，受了冤枉也不解释，人家不屑，呵呵，向老黄学习!</div><div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 160%; ">　　那句话没有找到，是贴吧里一个网友说的：没有誰是真正的为对方着想，都只是按自己的想法&hellip;&hellip;</div><div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 160%; ">&nbsp;</div><div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 160%; ">PS：</div><div><div>　　终于找到了那句话，太经典了，原来在这里 http://www.taoyoyo.net/ttt/post/112.html，应该是庆余年吧里一位网友说的，我记得我记下了呢!</div><blockquote><div><span style="color: rgb(153, 51, 102); "><span style="font-size: large; ">　　关心我们的人很多，但真正理解并尊重我们的想法的人没几个。</span></span></div><div><span style="color: rgb(153, 51, 102); "><span style="font-size: large; ">　　我一直都这么固执的认为：很少有人能真正的为他人着想，我们都在用自己心理的那杆称衡量我们身边的人和事，也都固执的。</span></span></div></blockquote><div>　　值得我们每天都背一遍!!!</div></div><div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: 160%; ">&nbsp;</div></div><p>&nbsp;</p>]]></description><category>评论</category><comments>http://www.taoyoyo.net/ttt/post/547.html#comment</comments><wfw:comment>http://www.taoyoyo.net/ttt/</wfw:comment><wfw:commentRss>http://www.taoyoyo.net/ttt/feed.asp?cmt=547</wfw:commentRss><trackback:ping>http://www.taoyoyo.net/ttt/cmd.asp?act=tb&amp;id=547&amp;key=baf64143</trackback:ping></item><item><title>假箱包利润高，真箱包利润也高……</title><author>a@b.com (taoether)</author><link>http://www.taoyoyo.net/ttt/post/546.html</link><pubDate>Wed, 03 Aug 2011 19:17:01 +0800</pubDate><guid>http://www.taoyoyo.net/ttt/post/546.html</guid><description><![CDATA[<p>回家路上听广播（中国之声）说，好像是在广州，破获一个制造假冒箱包的集团。</p><p>他们造的包包括什么ＬＶ的，成本不过百十元，销往日韩，可以卖到三到五千元，主持人说真是百倍的利润啊。</p><p>接着又说，经过箱包专家鉴定，他们造的假箱包品质可以达到Ａ上水平，主持人说：这真可谓以假乱真了。</p><p>接着主持人告诫听众，说一定要擦亮眼睛，不要一掷千金买假货了。</p><p>&nbsp;</p><p>但我听了这个新闻，却想到另一方面：</p><p>假箱包之所以卖这么贵，当然是跟着真箱包价格走的，这假箱包成本不过百十元，就可以卖到几千元，这造假箱包的利润是挺大的。</p><p>但这假箱包的品质与真货不相上下，那真箱包的成本可以认为与假箱包也不相上下，可想而知，这些名牌箱包的利润有多大。</p><p>当然这里面有品牌的价值，但那是不是也差得太多了！</p><p>&nbsp;</p><p>我是个实用主义者，对那些一掷千金买这些东西，真是不理解！</p><p>确实够厉害的，用百十元成本，造出几千元的包，而且品质还有保证，真是够厉害的。</p><p>而且他们还可以卖到日韩，赚取外汇，真要为他们叫好了！</p><p>&nbsp;</p><p>&nbsp;</p>]]></description><category>随笔</category><comments>http://www.taoyoyo.net/ttt/post/546.html#comment</comments><wfw:comment>http://www.taoyoyo.net/ttt/</wfw:comment><wfw:commentRss>http://www.taoyoyo.net/ttt/feed.asp?cmt=546</wfw:commentRss><trackback:ping>http://www.taoyoyo.net/ttt/cmd.asp?act=tb&amp;id=546&amp;key=b1920424</trackback:ping></item></channel></rss>

