还是整理到这一些吧.

--------------------
Date: Thu, 26 Dec 2002 08:30:38 -0700
Message-ID:
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.4510
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Importance: Normal
In-Reply-To: <1644311.1040819435174.JavaMail.postfix@mx24.mail.sohu.com>
Thank you for your E-mail. The key word in all successful business
transactions is education. This is not always easy, it is not always
convenient but indeed very important. There will be people around you who
will not understand but they are not looking at the bigger picture. Just
remember this" DO NOT GO WHERE THE PATH MAY LEAD, GO INSTEAD WHERE THERE IS
NO PATH AND LEAVE A TRAIL", Ralph Waldo Emerson.
Kind Regards
Kathy Grady
Director of Customer Service
Rich Dad's Office
www.richdad.com
800.317.3905
480.998.6971
---------------------------------------
1644311.1040819435174.javamail.postfix@mx24.mail.sohu.com>
1. 个人服务器情况下
默认的WEB服务器是不支持WAP数据发送的, 但是, 只需要轻松配置一下服务器对应的MIME格式,
就可轻松升级! 具体做法如下:
A. IIS 服务器
设定方式: 打开(开始)-->(程序)-->(WindowsNT4.0 Option Pack)-->
(Microsoft Internet Information Server)-->(Internet服务管理员)
在打开的窗口里面选中Server, 右键选择"属性", 增加如下的MIME格式:
文件类型 MIME
·WML text/vnd.WAP.wml
·WMLC application/vnd.WAP.wmlc
·WMLS text/vnd.WAP.wmlscript
·WMLSC application/vnd.WAP.wmlscriptc
·WBMP image/vnd.WAP.wbmp
B. PWS 4.0
1. 打开注册表编辑器, 在HKEY_CLASSES_ROOT下面新建一个主键".WML";
2. 在HKEY_CLASSES_ROOT\.WML下面新建一个字符串, 命名为"Content Type",
值为 "text/vnd.WAP.wml";
3. 在HKEY_LOCAL_MACHINE\Software\CLASSES\MIME\Database\Content Type新建一个主键"text/vnd.WAP.wml"
4. 在"text/vnd.WAP.wml"主键下面新建一个字符串, 名称"Extension", 值为".WML";
5. 依次重复以上2, 3, 4步骤, 建立其他的MIME类型
C. LINUX APACHE
使用管理员身份登入系统, 在命令行, 输入"ps -ef"命令兰看看当前的www服务是否正常,
然后使用vi来编辑"/etc/httpd/conf/srm.conf"文件, 在AddType处增加如下类型:
AddType text/vnd.WAP.wml .wml
AddType application/vnd.WAP.wmlc .wmlc
AddType text/vnd.WAP.wmls .wmlscript
AddType application/vnd.WAP.wmlsc .wmlscriptc
AddType image/vnd.WAP.wbmp .wbmp
保存后, 将 httpd 重新启动即可。
在商务谈判中,对方的底价、时限、权限及最基本的交易条件等内容,均属机密。 谁掌握了对方的这些底牌,谁就会赢得谈判的主动。因此,在谈判初期,双方都会 围绕这些内容施展各自的探测技巧,下面就有关技巧做一些介绍。□
一、火力侦察法。
主动抛出一些带有挑衅性的话题,刺激对方表态,然后,再根 据对方的反应,判断其虚实。比如,甲买乙卖,甲向乙提出了几种不同的交易品种 ,并询问这些品种各自的价格。乙一时搞不清楚对方的真实意图,甲这样问,既像 是打听行情,又像是在谈交易条件;既像是个大买主,又不敢肯定。面对甲的期待 ,乙心里很矛盾,如果据实回答,万一对方果真是来摸自己底的,那自己岂不被 动?但是自己如果敷衍应付,有可能会错过一笔好的买卖,说不定对方还可能是位 可以长期合作的伙伴呢。在情急之中,乙想:我何不探探对方的虚实呢?于是,他急 中生智地说:“我是货真价实,就怕你一味贪图便宜。”我们知道,商界中奉行 着这样的准则:“一分钱一分货”、“便宜无好货”。乙的回答,暗含着对甲的挑 衅意味。除此而外,这个回答的妙处还在于,只要甲一接话,乙就会很容易地把握 甲的实力情况,如果甲在乎货的质量,就不怕出高价,回答时的口气也就大;如果 甲在乎货源的紧俏,就急于成交,口气也就显得较为迫切。在此基础上,乙就会很 容易确定出自己的方案和策略了。
二、迂回询问法。
通过迂回,使对方松懈,然后乘其不备,巧妙探得对方的底牌。 在主客场谈判中,东道主往往利用自己在主场的优势,实施这种技巧。东道方为了 探得对方的时限,就极力表现出自己的热情好客,除了将对方的生活做周到的安排 外,还盛情地邀请客人参观本地的山水风光,领略风土人情、民俗文化,往往会在 客人感到十分惬意之时,就会有人提出帮你订购返程机票或车船票。这时客方 往往会随口就将自己的返程日期告诉对方,在不知不觉中落入了对方的圈套里。至 于对方的时限,他却一无所知,这样,在正式的谈判中,自己受制于他人也就不足 为怪了。□
三、聚焦深入法。
先是就某方面的问题做扫描的提问,在探知对方的隐情所在之后 ,然后再进行深入,从而把握问题的症结所在。例如,一笔交易(甲卖乙买)双方 谈得都比较满意,但乙还是迟迟不肯签约,甲感到不解,于是他就采用这种方法达 到了目的。首先,甲证实了乙的购买意图。在此基础上,甲分别就对方对自己的信 誉、对甲本人、对甲的产品质量、包装装潢、交货期、适销期等逐项进行探问,乙 的回答表明,上述方面都不存在问题。最后,甲又问到货款的支付方面,乙表示目 前的贷款利率较高。甲得知对方这一症结所在之后,随即又进行深入,他从当前市 场的销势分析,指出乙照目前的进价成本,在市场上销售,即使扣除贷款利率,也 还有较大的利润。这一分析得到了乙的肯定,但是乙又担心,销售期太长,利息负 担可能过重,这将会影响最终的利润。针对乙的这点隐忧,甲又从风险的大小方面 进行分析,指出即使那样,风险依然很小,最终促成了签约。
四、示错印证法。
探测方有意通过犯一些错误,比如念错 字、用错词语,或把价格报 错等种种示错的方法,诱导对方表态,然后探测方再借题发挥,最后达到目的。例 如,在某时装区,当某一位顾客在摊前驻足,并对某件商品多看上几眼时,早已将 这一切看在眼里的摊主就会前来搭话说:“看得出你是诚心来买的,这件衣服很合 你的意,是不是?”察觉到顾客无任何反对意见时,他又会继续说:“这衣服标价150元,对你优惠,120元,要不要?”如果对方没有表态,他可能又说:“你今天身上带的钱可能不多,我 也想开个张,打本卖给你,100元,怎么样?”顾客此时会有些犹豫,摊主又会 接着说:“好啦,你不要对别人说,我就以120元卖给你。”早已留心的顾客往 往会迫不及待地说:“你刚才不是说卖100元吗?怎么又涨了?”此时,摊主 通常会煞有介事地说:“是吗?我刚才说了这个价吗?啊,这个价我可没什么赚啦 。”稍做停顿,又说,“好吧,就算是我错了,那我也讲个信用,除了你以外,不会再有这个价了,你也不要告诉别人,100元,你拿去好了!”话说到此,绝大 多数顾客都会成交。这里,摊主假装口误将价涨了上去,诱使顾客做出反应,巧妙 地探测并验证了顾客的购买需求,收到引蛇出洞的效果。在此之后,摊主再将涨上来的价让出去,就会很容易地促成交易。
(转)
偶寝室一MM上网认识了同学校内研究生院的一GG(以下称为A),在聊了许久后,决定要见
面.MM拉上我们寝室几个姐妹一同前往,A也拉上他们寝室共同赴阵.
见面挺自然的,大家都像已经很熟的朋友一样交谈着.回到寝室后,我们那位可爱的MM说
看上了他们寝室的另外一个GG(称B).我们在对其进行劝阻失败后,决定,助MM一臂之力.
星期三有场晚会,我们班有发票子.于是我们从别的同学那里搜刮到4张多的票票.然后
MM发消息给A,说自己这里多出4张票,叫他和他寝室的几位GG一同前往.对了,忘说了,我们在
票上是花了点心思的.一共八张票,有六张分别是6排的35,33,31,29,27,25,还有两张是6排
的12,14.当晚,我们八人到音乐厅门口,MM说想去WC,然后让B帮她把包包拿着.我们三个说,
这样吧,你在这里等一下她,我们先进去了.于是就把6排12,14座的两张票给B,我们六个就先
进去了.
晚会一结束,我们三个就催着另外三个GG从左边出口走,他们俩从右边出口走.我们等了
一会,说,他们可能先走了吧,自己先回去好了.于是我们就回到寝室.B自然就有责任把MM安
全送到寝室了.
MM不负众望,问到了B的QQ号码~也得知了B没有女朋友.第一战略大成功~
MMBG我们一顿午饭~
我们第二步计划是在神不知,鬼不觉的情况下,查到B的手机号码.于是MM先在QQ上问清
楚B今天什么时间有课.趁他出门,我们就往他们寝室打电话.我们叫了隔壁一神秘女子给他
们打的电话,以免他们听出来.
神秘女子:B在吗?
答:不在,上课去了
神秘女子:啊!?(语气焦急)那他手机号码多少?我找他有急事啊!
答:哦,你等等啊......13XXXXXXXXX
神秘女子:谢谢啊,谢谢啊,再见
答:不用,再见
成功!
MM再次BG我们~
MM有了手机号码后,就给B的手机发消息,说是要借本书.B问道,你怎么知道我手机号码
?MM答曰:我只是看你的手机跟QQ绑定,上面有显示啊.B大惊:啊!不是吧,我没绑定啊!MM答:
肯定是无意中绑了的,我也是这样,随便发个消息就绑定了.这样要扣钱的,哎~现在这些公司
为了赚钱真黑啊!......
可怜B不知道,就算绑定了也不会显示号码的~(好笨的男人)
之后经我们调查,B要在学校运动会上参加三级跳远,而同个时间会举行女子1500米.于
是被称为全寝室运动神经最发达的笔者被迫参加女子1500(哭~~~)MMBG了笔者N个雪糕~
当天,MM伙同寝室另外两人到场给偶加油,在跳远的地方"偶遇"到B(感觉真不厚道).B就
要开始比赛了,他把外套脱下放在地上,MM说:"我来拿吧,反正我还帮木头(笔者)拿,我今天
就当你们后勤部长好了."
趁B在比赛,MM偷偷溜回寝室.
当晚,MM给B打电话,内容如下.
"对不起啊,我跑去给木头加油,她一跑完我就陪着她一起走了,忘了你的衣服还在我这
里呢~我现在给你送过去吧,你去楼下等我啊."
B自然要绅士一点,说"不了,我到你们楼下来拿吧."
......
当晚,MM很晚才回来,严刑逼供下她才招出.
MM下楼把衣服给B后,说:真不好意思啊.
B说:没有没有,我还要谢谢你才是呢.
MM说,你快回去吧,肯定很累了,我还没吃饭,我现在出去买点东西吃.
B说:这样啊,那我请你吃饭好了~当是谢谢你了
于是......他们俩就去吃饭了......
差不多就是这样了,此后,他们俩就发展得很自然了.现在甜蜜啊~`````

个人原创 转载请注明17133983原创 我的QQ:17133983
由于MySQL 4.1版本开始密码的hash算法改变,所以连接数据库时可能会出现Client does not support authentication protocol问题。
解决办法1:
进入你的MySQL目录的bin目录下
运行
MySQL --user=root --pass==root的密码
mysql> UPDATE mysql.user SET Password = OLD_PASSWORD('连接用户的密码')
-> WHERE User = '要连接的用户名';
mysql> FLUSH PRIVILEGES;
解决办法2:
更新PHP里MySQL模块的版本以支持新版本的MySQL
他也不是什么原创,只是翻译了下官方资料. 呵呵... 不过支持啊!
A.2.3 Client does not support authentication protocol
http://dev.mysql.com/doc/mysql/en/Old_client.html
MySQL 4.1 and up uses an authentication protocol based on a password hashing algorithm that is incompatible with that used by older clients. If you upgrade the server to 4.1, attempts to connect to it with an older client may fail with the following message:
shell> mysql
Client does not support authentication protocol requested
by server; consider upgrading MySQL client
To solve this problem, you should use one of the following approaches:
- Upgrade all client programs to use a 4.1.1 or newer client library.
- When connecting to the server with a pre-4.1 client program, use an account that still has a pre-4.1-style password.
- Reset the password to pre-4.1 style for each user that needs to use a pre-4.1 client program. This can be done using the
SET PASSWORDstatement and theOLD_PASSWORD()function:mysql> SET PASSWORD FOR
Alternatively, use
-> 'some_user'@'some_host' = OLD_PASSWORD('newpwd');UPDATEandFLUSH PRIVILEGES:mysql> UPDATE mysql.user SET Password = OLD_PASSWORD('newpwd')Substitute the password you want to use for ``newpwd'' in the preceding examples. MySQL cannot tell you what the original password was, so you'll need to pick a new one.
-> WHERE Host = 'some_host' AND User = 'some_user';
mysql> FLUSH PRIVILEGES; - Tell the server to use the older password hashing algorithm:
- Start
mysqldwith the--old-passwordsoption. - Assign an old-format password to each account that has had its password updated to the longer 4.1 format. You can identify these accounts with the following query:
mysql> SELECT Host, User, Password FROM mysql.user
For each account record displayed by the query, use the
-> WHERE LENGTH(Password) > 16;HostandUservalues and assign a password using theOLD_PASSWORD()function and eitherSET PASSWORDorUPDATE, as described earlier.
- Start
For additional background on password hashing and authentication, see section 5.5.9 Password Hashing in MySQL 4.1.
5.5.9 Password Hashing in MySQL 4.1
http://dev.mysql.com/doc/mysql/en/Password_hashing...
MySQL user accounts are listed in the user table of the mysql database. Each MySQL account is assigned a password, although what is stored in the Password column of the user table is not the plaintext version of the password, but a hash value computed from it. Password hash values are computed by the PASSWORD() function.
MySQL uses passwords in two phases of client/server communication:
- When a client attempts to connect to the server, there is an initial authentication step in which the client must present a password that has a hash value matching the hash value stored in the
usertable for the account that the client wants to use. - After the client connects, it can (if it has sufficient privileges) set or change the password hashes for accounts listed in the
usertable. The client can do this by using thePASSWORD()function to generate a password hash, or by using theGRANTorSET PASSWORDstatements.
In other words, the server uses hash values during authentication when a client first attempts to connect. The server generates hash values if a connected client invokes the PASSWORD() function or uses a GRANT or SET PASSWORD statement to set or change a password.
The password hashing mechanism was updated in MySQL 4.1 to provide better security and to reduce the risk of passwords being intercepted. However, this new mechanism is understood only by the 4.1 server and 4.1 clients, which can result in some compatibility problems. A 4.1 client can connect to a pre-4.1 server, because the client understands both the old and new password hashing mechanisms. However, a pre-4.1 client that attempts to connect to a 4.1 server may run into difficulties. For example, a 4.0 mysql client that attempts to connect to a 4.1 server may fail with the following error message:
shell> mysql -h localhost -u root
Client does not support authentication protocol requested
by server; consider upgrading MySQL client
The following discussion describes the differences between the old and new password mechanisms, and what you should do if you upgrade your server to 4.1 but need to maintain backward compatibility with pre-4.1 clients. Additional information can be found in section A.2.3 Client does not support authentication protocol.
Note: This discussion contrasts 4.1 behavior with pre-4.1 behavior, but the 4.1 behavior described here actually begins with 4.1.1. MySQL 4.1.0 is an ``odd'' release because it has a slightly different mechanism than that implemented in 4.1.1 and up. Differences between 4.1.0 and more recent versions are described further in section 5.5.9.2 Password Hashing in MySQL 4.1.0.
Prior to MySQL 4.1, password hashes computed by the PASSWORD() function are 16 bytes long. Such hashes look like this:
mysql> SELECT PASSWORD('mypass');
+--------------------+
| PASSWORD('mypass') |
+--------------------+
| 6f8c114b58f2ce9e |
+--------------------+
The Password column of the user table (in which these hashes are stored) also is 16 bytes long before MySQL 4.1.
As of MySQL 4.1, the PASSWORD() function has been modified to produce a longer 41-byte hash value:
mysql> SELECT PASSWORD('mypass');
+-----------------------------------------------+
| PASSWORD('mypass') |
+-----------------------------------------------+
| *43c8aa34cdc98eddd3de1fe9a9c2c2a9f92bb2098d75 |
+-----------------------------------------------+
Accordingly, the Password column in the user table also must be 41 bytes long to store these values:
- If you perform a new installation of MySQL 4.1, the
Passwordcolumn will be made 41 bytes long automatically. - If you upgrade an older installation to 4.1, you should run the
mysql_fix_privilege_tablesscript to increase the length of thePasswordcolumn from 16 to 41 bytes. (The script does not change existing password values, which remain 16 bytes long.)
A widened Password column can store password hashes in both the old and new formats. The format of any given password hash value can be determined two ways:
- The obvious difference is the length (16 bytes versus 41 bytes).
- A second difference is that password hashes in the new format always begin with a `*' character, whereas passwords in the old format never do.
The longer password hash format has better cryptographic properties, and client authentication based on long hashes is more secure than that based on the older short hashes.
The differences between short and long password hashes are relevant both for how the server uses passwords during authentication and for how it generates password hashes for connected clients that perform password-changing operations.
The way in which the server uses password hashes during authentication is affected by the width of the Password column:
- If the column is short, only short-hash authentication is used.
- If the column is long, it can hold either short or long hashes, and the server can use either format:
- Pre-4.1 clients can connect, although because they know only about the old hashing mechanism, they can authenticate only for accounts that have short hashes.
- 4.1 clients can authenticate for accounts that have short or long hashes.
For short-hash accounts, the authentication process is actually a bit more secure for 4.1 clients than for older clients. In terms of security, the gradient from least to most secure is:
- Pre-4.1 client authenticating for account with short password hash
- 4.1 client authenticating for account with short password hash
- 4.1 client authenticating for account with long password hash
The way in which the server generates password hashes for connected clients is affected by the width of the Password column and by the --old-passwords option. A 4.1 server generates long hashes only if certain conditions are met: The Password column must be wide enough to hold long values and the --old-passwords option must not be given. These conditions apply as follows:
- The
Passwordcolumn must be wide enough to hold long hashes (41 bytes). If the column has not been updated and still has the pre-4.1 width of 16 bytes, the server notices that long hashes cannot fit into it and generates only short hashes when a client performs password-changing operations usingPASSWORD(),GRANT, orSET PASSWORD. This is the behavior that occurs if you have upgraded to 4.1 but have not yet run themysql_fix_privilege_tablesscript to widen thePasswordcolumn. - If the
Passwordcolumn is wide, it can store either short or long password hashes. In this case,PASSWORD(),GRANT, andSET PASSWORDgenerate long hashes unless the server was started with the--old-passwordsoption. That option forces the server to generate short password hashes instead.
The purpose of the --old-passwords option is to allow you to maintain backward compatibility with pre-4.1 clients under circumstances where the server would otherwise generate long password hashes. The option doesn't affect authentication (4.1 clients can still use accounts that have long password hashes), but it does prevent creation of a long password hash in the user table as the result of a password-changing operation. Were that to occur, the account no longer could be used by pre-4.1 clients. Without the --old-passwords option, the following undesirable scenario is possible:
- An old client connects to an account that has a short password hash.
- The client changes its own password. Without
--old-passwords, this results in the account having a long password hash. - The next time the old client attempts to connect to the account, it cannot, because the account now has a long password hash that requires the new hashing mechanism during authentication. (Once an account has a long password hash in the user table, only 4.1 clients can authenticate for it, because pre-4.1 clients do not understand long hashes.)
This scenario illustrates that, if you must support older pre-4.1 clients, it is dangerous to run a 4.1 server without using the --old-passwords option. By running the server with --old-passwords, password-changing operations will not generate long password hashes and thus do not cause accounts to become inaccessible to older clients. (Those clients cannot inadvertently lock themselves out by changing their password and ending up with a long password hash.)
The downside of the --old-passwords option is that any passwords you create or change will use short hashes, even for 4.1 clients. Thus, you lose the additional security provided by long password hashes. If you want to create an account that has a long hash (for example, for use by 4.1 clients), you must do so while running the server without --old-passwords.
The following scenarios are possible for running a 4.1 server:
Scenario 1: Short Password column in user table:
- Only short hashes can be stored in the
Passwordcolumn. - The server uses only short hashes during client authentication.
- For connected clients, password hash-generating operations involving
PASSWORD(),GRANT, orSET PASSWORDuse short hashes exclusively. Any change to an account's password results in that account having a short password hash. - The
--old-passwordsoption can be used but is superfluous because with a shortPasswordcolumn, the server will generate only short password hashes anyway.
Scenario 2: Long Password column; server not started with --old-passwords option:
- Short or long hashes can be stored in the
Passwordcolumn. - 4.1 clients can authenticate for accounts that have short or long hashes.
- Pre-4.1 clients can authenticate only for accounts that have short hashes.
- For connected clients, password hash-generating operations involving
PASSWORD(),GRANT, orSET PASSWORDuse long hashes exclusively. A change to an account's password results in that account having a long password hash.
As indicated earlier, a danger in this scenario is that it is possible for accounts that have a short password hash to become inaccessible to pre-4.1 clients. A change to such an account's password made via GRANT, PASSWORD(), or SET PASSWORD results in the account being given a long password hash. From that point on, no pre-4.1 client can authenticate to that account until the client upgrades to 4.1.
To deal with this problem, you can change a password in a special way. For example, normally you use SET PASSWORD as follows to change an account password:
mysql> SET PASSWORD FOR 'some_user'@'some_host' = PASSWORD('mypass');
To change the password but create a short hash, use the OLD_PASSWORD() function instead:
mysql> SET PASSWORD FOR 'some_user'@'some_host' = OLD_PASSWORD('mypass');
OLD_PASSWORD() is useful for situations in which you explicitly want to generate a short hash.
Scenario 3: Long Password column; server started with --old-passwords option:
- Short or long hashes can be stored in the
Passwordcolumn. - 4.1 clients can authenticate for accounts that have short or long hashes (but note that it is possible to create long hashes only when the server is started without
--old-passwords). - Pre-4.1 clients can authenticate only for accounts that have short hashes.
- For connected clients, password hash-generating operations involving
PASSWORD(),GRANT, orSET PASSWORDuse short hashes exclusively. Any change to an account's password results in that account having a short password hash.
In this scenario, you cannot create accounts that have long password hashes, because the --old-passwords option prevents generation of long hashes. Also, if you create an account with a long hash before using the --old-passwords option, changing the account's password while --old-passwords is in effect results in the account being given a short password, causing it to lose the security benefits of a longer hash.
The disadvantages for these scenarios may be summarized as follows:
In scenario 1, you cannot take advantage of longer hashes that provide more secure authentication.
In scenario 2, accounts with short hashes become inaccessible to pre-4.1 clients if you change their passwords without explicitly using OLD_PASSWORD().
In scenario 3, --old-passwords prevents accounts with short hashes from becoming inaccessible, but password-changing operations cause accounts with long hashes to revert to short hashes, and you cannot change them back to long hashes while --old-passwords is in effect.
Subsections
- 5.5.9.1 Implications of Password Hashing Changes for Application Programs
- 5.5.9.2 Password Hashing in MySQL 4.1.0
5.5.9.2 Password Hashing in MySQL 4.1.0 Password hashing in MySQL 4.1.0 differs from hashing in 4.1.1 and up. The 4.1.0 differences are: Password hashes are 45 bytes long rather than 41 bytes. The PASSWORD() function is non-repeatable. That is, with a given argument X, successive calls to PASSWORD(X) generate different results. These differences make authentication in 4.1.0 incompatible with that of releases that follow it. If you have upgraded to MySQL 4.1.0, it is recommended that you upgrade to a newer version as soon as possible. After you do, reassign any long passwords in the user table so that they are compatible with the 41-byte format.
5.5.8 Causes of Access denied Errors
http://dev.mysql.com/doc/mysql/en/Access_denied.ht...
If you encounter problems when you try to connect to the MySQL server, the following items describe some courses of action you can take to correct the problem.
- Make sure that the server is running. If it is not running, you cannot connect to it. For example, if you attempt to connect to the server and see a message such as one of those following, one cause might be that the server is not running:
shell> mysql
It might also be that the server is running, but you are trying to connect using a TCP/IP port, named pipe, or Unix socket file different from those on which the server is listening. To correct this when you invoke a client program, specify a
ERROR 2003: Can't connect to MySQL server on 'host_name' (111)
shell> mysql
ERROR 2002: Can't connect to local MySQL server through socket
'/tmp/mysql.sock' (111)--portoption to indicate the proper port, or a--socketoption to indicate the proper named pipe or Unix socket file. To find out what port is used, and where the socket is, you can do:shell> netstat -l | grep mysql
- The grant tables must be properly set up so that the server can use them for access control. For some distribution types (such as binary distributions on Windows on RPM distributions on Linux), the installation process initializes the
mysqldatabase containing the grant tables. For distributions that do not do this, you should initialize the grant tables manually by running themysql_install_dbscript. For details, see section 2.9.2 Unix Post-Installation Procedures. One way to determine whether you need to initialize the grant tables is to look for a `mysql' directory under the data directory. (The data directory normally is named `data' or `var' and is located under your MySQL installation directory.) Make sure that you have a file named `user.MYD' in the `mysql' database directory. If you do not, execute themysql_install_dbscript. After running this script and starting the server, test the initial privileges by executing this command:shell> mysql -u root test
The server should let you connect without error. - After a fresh installation, you should connect to the server and set up your users and their access permissions:
shell> mysql -u root mysql
The server should let you connect because the MySQLrootuser has no password initially. That is also a security risk, so setting the password for therootaccounts is something you should do while you're setting up your other MySQL users. For instructions on setting the initial passwords, see section 2.9.3 Securing the Initial MySQL Accounts. - If you have updated an existing MySQL installation to a newer version, did you run the
mysql_fix_privilege_tablesscript? If not, do so. The structure of the grant tables changes occasionally when new capabilities are added, so after an upgrade you should always make sure that your tables have the current structure. For instructions, see section 2.10.7 Upgrading the Grant Tables. - If a client program receives the following error message when it tries to connect, it means that the server expects passwords in a newer format than the client is capable of generating:
shell> mysql
For information on how to deal with this, see section 5.5.9 Password Hashing in MySQL 4.1 and section A.2.3
Client does not support authentication protocol requested
by server; consider upgrading MySQL clientClient does not support authentication protocol. - If you try to connect as
rootand get the following error, it means that you don't have an entry in theusertable with aUsercolumn value of'root'and thatmysqldcannot resolve the hostname for your client:Access denied for user ''@'unknown' to database mysql
In this case, you must restart the server with the--skip-grant-tablesoption and edit your `/etc/hosts' or `\windows\hosts' file to add an entry for your host. - Remember that client programs will use connection parameters specified in option files or environment variables. If a client program seems to be sending incorrect default connection parameters when you don't specify them on the command line, check your environment and any applicable option files. For example, if you get
Access deniedwhen you run a client without any options, make sure that you haven't specified an old password in any of your option files! You can suppress the use of option files by a client program by invoking it with the--no-defaultsoption. For example:shell> mysqladmin --no-defaults -u root version
The option files that clients use are listed in section 4.3.2 Using Option Files. Environment variables are listed in section F Environment Variables. - If you get the following error, it means that you are using an incorrect
rootpassword:shell> mysqladmin -u root -pxxxx ver
If the preceding error occurs even when you haven't specified a password, it means that you have an incorrect password listed in some option file. Try the
Access denied for user 'root'@'localhost' (using password: YES)--no-defaultsoption as described in the previous item. For information on changing passwords, see section 5.6.5 Assigning Account Passwords. If you have lost or forgotten therootpassword, you can restartmysqldwith--skip-grant-tablesto change the password. See section A.4.1 How to Reset the Root Password. - If you change a password by using
SET PASSWORD,INSERT, orUPDATE, you must encrypt the password using thePASSWORD()function. If you do not usePASSWORD()for these statements, the password will not work. For example, the following statement sets a password, but fails to encrypt it, so the user will not be able to connect afterward:mysql> SET PASSWORD FOR 'abe'@'host_name' = 'eagle';
Instead, set the password like this:mysql> SET PASSWORD FOR 'abe'@'host_name' = PASSWORD('eagle');ThePASSWORD()function is unnecessary when you specify a password using theGRANTstatement or themysqladmin passwordcommand, both of which automatically usePASSWORD()to encrypt the password. See section 5.6.5 Assigning Account Passwords. localhostis a synonym for your local hostname, and is also the default host to which clients try to connect if you specify no host explicitly. However, connections tolocalhoston Unix systems do not work if you are using a MySQL version older than 3.23.27 that uses MIT-pthreads:localhostconnections are made using Unix socket files, which were not supported by MIT-pthreads at that time. To avoid this problem on such systems, you can use a--host=127.0.0.1option to name the server host explicitly. This will make a TCP/IP connection to the localmysqldserver. You can also use TCP/IP by specifying a--hostoption that uses the actual hostname of the local host. In this case, the hostname must be specified in ausertable entry on the server host, even though you are running the client program on the same host as the server.- If you get an
Access deniederror when trying to connect to the database withmysql -u user_name, you may have a problem with theusertable. Check this by executingmysql -u root mysqland issuing this SQL statement:mysql> SELECT * FROM user;
The result should include an entry with theHostandUsercolumns matching your computer's hostname and your MySQL username. - The
Access deniederror message will tell you who you are trying to log in as, the client host from which you are trying to connect, and whether or not you were using a password. Normally, you should have one entry in theusertable that exactly matches the hostname and username that were given in the error message. For example, if you get an error message that containsusing password: NO, it means that you tried to log in without an password. - If the following error occurs when you try to connect from a host other than the one on which the MySQL server is running, it means that there is no row in the
usertable with aHostvalue that matches the client host:Host ... is not allowed to connect to this MySQL server
You can fix this by setting up an account for the combination of client hostname and username that you are using when trying to connect. If you don't know the IP number or hostname of the machine from which you are connecting, you should put an entry with'%'as theHostcolumn value in theusertable and restartmysqldwith the--logoption on the server machine. After trying to connect from the client machine, the information in the MySQL log will indicate how you really did connect. (Then change the'%'in theusertable entry to the actual hostname that shows up in the log. Otherwise, you'll have a system that is insecure because it allows connections from any host for the given username.) On Linux, another reason that this error might occur is that you are using a binary MySQL version that is compiled with a different version of theglibclibrary than the one you are using. In this case, you should either upgrade your operating system orglibc, or download a source distribution of MySQL version and compile it yourself. A source RPM is normally trivial to compile and install, so this isn't a big problem. - If you specify a hostname when trying to connect, but get an error message where the hostname is not shown or is an IP number, it means that the MySQL server got an error when trying to resolve the IP number of the client host to a name:
shell> mysqladmin -u root -pxxxx -h some-hostname ver
This indicates a DNS problem. To fix it, execute
Access denied for user 'root'@'' (using password: YES)mysqladmin flush-hoststo reset the internal DNS hostname cache. See section 7.5.6 How MySQL Uses DNS. Some permanent solutions are:- Try to find out what is wrong with your DNS server and fix it.
- Specify IP numbers rather than hostnames in the MySQL grant tables.
- Put an entry for the client machine name in
/etc/hosts. - Start
mysqldwith the--skip-name-resolveoption. - Start
mysqldwith the--skip-host-cacheoption. - On Unix, if you are running the server and the client on the same machine, connect to
localhost. Unix connections tolocalhostuse a Unix socket file rather than TCP/IP. - On Windows, if you are running the server and the client on the same machine and the server supports named pipe connections, connect to the hostname
.(period). Connections to.use a named pipe rather than TCP/IP.
- If
mysql -u root testworks butmysql -h your_hostname -u root testresults inAccess denied(where your_hostname is the actual hostname of the local host), you may not have the correct name for your host in theusertable. A common problem here is that theHostvalue in the user table entry specifies an unqualified hostname, but your system's name resolution routines return a fully qualified domain name (or vice versa). For example, if you have an entry with host'tcx'in theusertable, but your DNS tells MySQL that your hostname is'tcx.subnet.se', the entry will not work. Try adding an entry to theusertable that contains the IP number of your host as theHostcolumn value. (Alternatively, you could add an entry to theusertable with aHostvalue that contains a wildcard; for example,'tcx.%'. However, use of hostnames ending with `%' is insecure and is not recommended!) - If
mysql -u user_name testworks butmysql -u user_name other_db_namedoes not, you have not granted database access for other_db_name to the given user. - If
mysql -u user_nameworks when executed on the server host, butmysql -h host_name -u user_namedoesn't work when executed on a remote client host, you have not enabled access to the server for the given username from the remote host. - If you can't figure out why you get
Access denied, remove from theusertable all entries that haveHostvalues containing wildcards (entries that contain `%' or `_'). A very common error is to insert a new entry withHost='%'andUser='some_user', thinking that this will allow you to specifylocalhostto connect from the same machine. The reason that this doesn't work is that the default privileges include an entry withHost='localhost'andUser=''. Because that entry has aHostvalue'localhost'that is more specific than'%', it is used in preference to the new entry when connecting fromlocalhost! The correct procedure is to insert a second entry withHost='localhost'andUser='some_user', or to delete the entry withHost='localhost'andUser=''. After deleting the entry, remember to issue aFLUSH PRIVILEGESstatement to reload the grant tables. - If you get the following error, you may have a problem with the
dborhosttable:Access to database denied
If the entry selected from thedbtable has an empty value in theHostcolumn, make sure that there are one or more corresponding entries in thehosttable specifying which hosts thedbtable entry applies to. - If you are able to connect to the MySQL server, but get an
Access deniedmessage whenever you issue aSELECT ... INTO OUTFILEorLOAD DATA INFILEstatement, your entry in theusertable doesn't have theFILEprivilege enabled. - If you change the grant tables directly (for example, by using
INSERT,UPDATE, orDELETEstatements) and your changes seem to be ignored, remember that you must execute aFLUSH PRIVILEGESstatement or amysqladmin flush-privilegescommand to cause the server to re-read the privilege tables. Otherwise, your changes have no effect until the next time the server is restarted. Remember that after you change therootpassword with anUPDATEcommand, you won't need to specify the new password until after you flush the privileges, because the server won't know you've changed the password yet! - If your privileges seem to have changed in the middle of a session, it may be that a MySQL administrator has changed them. Reloading the grant tables affects new client connections, but it also affects existing connections as indicated in section 5.5.7 When Privilege Changes Take Effect.
- If you have access problems with a Perl, PHP, Python, or ODBC program, try to connect to the server with
mysql -u user_name db_nameormysql -u user_name -pyour_pass db_name. If you are able to connect using themysqlclient, the problem lies with your program, not with the access privileges. (There is no space between-pand the password; you can also use the--password=your_passsyntax to specify the password. If you use the-poption alone, MySQL will prompt you for the password.) - For testing, start the
mysqldserver with the--skip-grant-tablesoption. Then you can change the MySQL grant tables and use themysqlaccessscript to check whether your modifications have the desired effect. When you are satisfied with your changes, executemysqladmin flush-privilegesto tell themysqldserver to start using the new grant tables. (Reloading the grant tables overrides the--skip-grant-tablesoption. This allows you to tell the server to begin using the grant tables again without stopping and restarting it.) - If everything else fails, start the
mysqldserver with a debugging option (for example,--debug=d,general,query). This will print host and user information about attempted connections, as well as information about each command issued. See section E.1.2 Creating Trace Files. - If you have any other problems with the MySQL grant tables and feel you must post the problem to the mailing list, always provide a dump of the MySQL grant tables. You can dump the tables with the
mysqldump mysqlcommand. As always, post your problem using themysqlbugscript. See section 1.4.1.3 How to Report Bugs or Problems. In some cases, you may need to restartmysqldwith--skip-grant-tablesto runmysqldump.
中国历史(1)
1、已知的在中国境内生活的最古老的原始人类,是“元谋猿人”。在中国云南省元谋盆地发现的颗古人类牙齿化石,经科学鉴定,距今约有70多万年了。
2、约70——20万年前,“北京猿人”(简称“北京人”),生活在北京周口店龙骨山的洞穴里。
![]() |
山顶洞人复原胸像 |
3、北京人(右图)已经知道使用天然火。人类第一次取得了支配一种自然力的能力。
4、到了大约18000年前,仍然在北京周口店龙骨山里,生活着一批被称作 “山顶洞人”的远古人类。他们已经具有明显的黄种人的体态特征。
5、山顶洞人不仅会人工取火,而且制造出了中国缝制工艺史上的第一枚骨针,骨针约同火柴棍般粗细,长82毫米。
6、距今六七千年前,中国出现了古老的彩陶文化和黑陶文化。
7、陕西西安半坡文化的彩陶,十分精美。人面网纹盆上各种纹饰,是原始美术、原始文字和原始艺术的结晶。
8、山东龙山文化的黑陶,乌黑光亮,有着金属器皿一样的光泽。
9、长江流域的浙江省余姚市河姆渡文化,与黄河流域的半坡文化同样古老,7000年前那里的人们已经会用大型木构件建筑房屋。
10、大约4000多年前,发生了一些部落战争。黄帝是其中一个部落的首领,因为他深得人心又聪明勇敢,取得了最后胜利。
第一天:
很早就申请过Google AdSense 广告服务.( https://www.google.com/adsense/ )
但因为我的站点一直没有正式运作. 所以我最近才添加这个广告服务.
以前在使用其它广告商的赚取服务. 但是没有见到任何收获.
从目前来看,GOOGLE的广告点击计算确实体现着. 但是我还没有累计够$100支付标准. 所以他们是否能够实际完整支付收入, 就不知道了. 还需要我们去验证.
等到我收到第一笔收入时应该庆贺下. :-)

第二天:
看来Google AdSense 也不是容易, 今天突然接到帐户被停止的通知. 确实让我非常意外. 根据通知说我可能存在作假问题. 使用什么自动工具了.

我到是想有个自动工具,那样我一天就可以有收入了. 估计他们看到我的点击率高. 那也是想帮助我的人留意多点了下. 却被认为........

反正权利都在他们手里,说你什么就是什么. 本来就感觉靠这广告很难有收获的. 我以前使用别的广告很久,基本上没见多少收入,只是第一次看到这个可以显示比较多的点击率. 主要是搜索里的广告多,一次点几个不同广告,也是常理之中. 如果要是真想作假,怎么也让它更快点. 呵呵........
随他们去吧.... 就当玩了. 哪天高兴,再参加下. 哈哈....

你们谁有得到收入的,给说说,听听也好.
【1、最基本的弹出窗口代码】
<SCRIPT LANGUAGE="javascript">
<!--
window.open ('page.html')
-->
</SCRIPT>
因为着是一段javascripts代码,所以它们应该放在<SCRIPT LANGUAGE="javascript">标签和</script>之间。<!-- 和 -->是对一些版本低的浏览器起作用,在这些老浏览器中不会将标签中的代码作为文本显示出来。要养成这个好习惯啊。window.open ('page.html') 用于控制弹出新的窗口page.html,如果page.html不与主窗口在同一路径下,前面应写明路径,绝对路径(http://)和相对路径(../)均可。用单引号和双引号都可以,只是不要混用。这一段代码可以加入HTML的任意位置,<head>和</head>之间可以,<body>间</body>也可以,越前越早执行,尤其是页面代码长,又想使页面早点弹出就尽量往前放。
【2、经过设置后的弹出窗口】
下面再说一说弹出窗口的设置。只要再往上面的代码中加一点东西就可以了。 我们来定制这个弹出的窗口的外观,尺寸大小,弹出的位置以适应该页面的具体情况。
<SCRIPT LANGUAGE="javascript">
<!--
window.open ('page.html', 'newwindow', 'height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=n o, status=no') //这句要写成一行
-->
</SCRIPT>
参数解释:
<SCRIPT LANGUAGE="javascript"> js脚本开始;
window.open 弹出新窗口的命令;
'page.html' 弹出窗口的文件名;
'newwindow' 弹出窗口的名字(不是文件名),非必须,可用空''代替;
height=100 窗口高度;
width=400 窗口宽度;
top=0 窗口距离屏幕上方的象素值;
left=0 窗口距离屏幕左侧的象素值;
toolbar=no 是否显示工具栏,yes为显示;
menubar,scrollbars 表示菜单栏和滚动栏。
resizable=no 是否允许改变窗口大小,yes为允许;
location=no 是否显示地址栏,yes为允许;
status=no 是否显示状态栏内的信息(通常是文件已经打开),yes为允许;
</SCRIPT> js脚本结束
【3、用函数控制弹出窗口】
下面是一个完整的代码。
<html>
<head>
<script LANGUAGE="JavaScript">
<!--
function openwin() {
window.open ("page.html", "newwindow", "height=100, width=400, toolbar =no, menubar=no, scrollbars=no, resizable=no, location=no, status=no") //写成一行
}
//-->
</script>
</head>
<body onload="openwin()">
任意的页面内容...
</body>
</html>
这里定义了一个函数openwin(),函数内容就是打开一个窗口。在调用它之前没有任何用途。怎么调用呢?
方法一:<body onload="openwin()"> 浏览器读页面时弹出窗口;
方法二:<body onunload="openwin()"> 浏览器离开页面时弹出窗口;
方法三:用一个连接调用:
<a href="#" onclick="openwin()">打开一个窗口</a>
注意:使用的“#”是虚连接。
方法四:用一个按钮调用:
<input type="button" onclick="openwin()" value="打开窗口">
【4、同时弹出2个窗口】
对源代码稍微改动一下:
<script LANGUAGE="JavaScript">
<!--
function openwin() {
window.open ("page.html", "newwindow", "height=100, width=100, top=0, left=0,toolbar=no, menubar=no, scrollbars=no, resizable=no, location=n o, status=no")//写成一行
window.open ("page2.html", "newwindow2", "height=100, width=100, top=1 00, left=100,toolbar=no, menubar=no, scrollbars=no, resizable=no, loca tion=no, status=no")//写成一行
}
//-->
</script>
为避免弹出的2个窗口覆盖,用top和left控制一下弹出的位置不要相互覆盖即可 。最后用上面说过的四种方法调用即可。
注意:2个窗口的name(newwindows和newwindow2)不要相同,或者干脆全部为空。
【5、主窗口打开文件1.htm,同时弹出小窗口page.html】
如下代码加入主窗口<head>区:
<script language="javascript">
<!--
function openwin() {
window.open("page.html","","width=200,height=200")
}
//-->
</script>
加入<body>区:
<a href="1.htm" onclick="openwin()">open</a>即可。
【6、弹出的窗口之定时关闭控制】
下面我们再对弹出的窗口进行一些控制,效果就更好了。如果我们再将一小段 代码加入弹出的页面(注意是加入page.html的HTML中,可不是主页面中,否则 ...),让它10秒后自动关闭是不是更酷了?
首先,将如下代码加入page.html文件的<head>区:
<script language="JavaScript">
function closeit()
{
setTimeout("self.close()",10000) //毫秒
}
</script>
然后,再用<body onload="closeit()"> 这一句话代替page.html中原有的<BODY>这一句就可以了。(这一句话千万不要忘记写啊!这一句的作用是调用关闭窗 口的代码,10秒钟后就自行关闭该窗口。)
【7、在弹出窗口中加上一个关闭按钮】
<FORM>
<INPUT TYPE='BUTTON' VALUE='关闭' onClick='window.close()'>
</FORM>
呵呵,现在更加完美了!
【8、内包含的弹出窗口-一个页面两个窗口】
上面的例子都包含两个窗口,一个是主窗口,另一个是弹出的小窗口。通过下面的例子,你可以在一个页面内完成上面的效果。
<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
function openwin()
{
OpenWindow=window.open("", "newwin", "height=250, width=250,toolbar=no ,scrollbars="+scroll+",menubar=no");
//写成一行
OpenWindow.document.write("<TITLE>例子</TITLE>")
OpenWindow.document.write("<BODY BGCOLOR=#ffffff>")
OpenWindow.document.write("<h1>Hello!</h1>")
OpenWindow.document.write("New window opened!")
OpenWindow.document.write("</BODY>")
OpenWindow.document.write("</HTML>")
OpenWindow.document.close()
}
</SCRIPT>
</head>
<body>
<a href="#" onclick="openwin()">打开一个窗口</a>
<input type="button" onclick="openwin()" value="打开窗口">
</body>
</html>
看看OpenWindow.document.write()里面的代码不就是标准的HTML吗?只要按照 格式写更多的行即可。千万注意多一个标签或少一个标签就会出现错误。记得用 OpenWindow.document.close()结束啊。
【9、终极应用--弹出的窗口之Cookie控制】
回想一下,上面的弹出窗口虽然酷,但是有一点小毛病(沉浸在喜悦之中,一定 没有发现吧?)比如你将上面的脚本放在一个需要频繁经过的页面里(例如首页),那么每次刷新这个页面,窗口都会弹出一次,是不是非常烦人?:-(
有解决的办法吗?Yes! ;-) Follow me.我们使用cookie来控制一下就可以了。
首先,将如下代码加入主页面HTML的<HEAD>区:
<script>
function openwin(){
window.open("page.html","","width=200,height=200")
}
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
function loadpopup(){
if (get_cookie('popped')==''){
openwin()
document.cookie="popped=yes"
}
}
</script>
然后,用<body onload="loadpopup()">(注意不是openwin而是loadpop啊!)替换主页面中原有的<BODY>这一句即可。你可以试着刷新一下这个页面或重新进 入该页面,窗口再也不会弹出了。真正的Pop-Only-Once!
IIS Web服务器安全加固步骤:
up/1100399534.html
宜 - 在投递履历表时将求职信一并寄出。
宜 - 尽量精简到题。
宜 - 开首段落明确有力 - 求职信首段可能是雇主在翻阅到你的履历表前唯一会看的部份。
宜 - 注明希望获得面试的机会。例如说些类似「衷心希望贵公司给予本人一个 面试的机会」的话。
宜 - 重点描述履历表内与所申请工作有关的部份。
宜 - 强调正面信息。
宜 - 将求职信寄给专责招聘工作的有关人士。
宜 - 先提及所申请的职位及说明知悉该织位空缺的来源。你可以「本人有意申请XXX一职」作为点题。
宜 - 解释申请该职位及你认为自己适合从事该行业的原因。
宜 - 说些类似「随附奉的履历表可见,本人对担任XXX一职具良好资格。」
宜 - 探用有力字眼:取得、建立、成功。
宜 - 复核求职信及履历表上的错字。
宜 - 求职信最好经第三者校对及审阅。
宜 - 列明随附于求职信的东西:「本人谨奉上履历表等。」
宜 - 写上电话号码,以便公司与你联络。
宜 - 利用求职信告诉雇主履历表内没有提及的事情,例如:「本人已准备经常前往中国大陆工作。」
宜 - 以你的联络电话作结。
忌 - 自吹自擂。
忌 - 解释辞去现职的原因。
忌 - 自命对所申请的公司非常了解,其实你所知的只是皮毛而已。
忌 - 于申请书采用特别字体及图案。
忌 - 采用白色以外的颜色纸张。
忌 - 采用修饰的词藻以展示运用词汇的能力。
忌 - 过份冗长。求职信旨在吸引雇主翻看附奉的履历表。你可强调其中一至两项重要成就。读者在好奇心的驱使下,将会翻阅其它内容。
忌 - 以「祈为垂注」或类似语句结尾。
引用内容:
求职信的形式
在信的左上角,写上你的电话号码,好让对方可以知道如何随时联络到你。信首开始可以大楷字写上你应征的工作职写,因为收件人可能同时在选录多种职称的人才。
若果知道收件人的姓名,则上款写Dear Mr.Wong 或Dear Mr.Chan 等,若果不知道收件人的姓名,则上款写Dear Sir,请记着,在信末结尾时,若果上款是 Dear Mr.Wong 或Dear Mr.Chan 等知道收件人姓名的,则在你的签名上所写的是Yours sincerely,若果上款是 Dear Sir,即不知道收件人姓名,则所写的是 Yours faithfully。不过在现代信件中,这些分别已经越来越不大,用 Yours truly,或 Yours respectfully也可以。
你的签名空间大约须四至五行,不要太小的空间也不要太大的空间,你的签名也不宜过份潦草,因为签名往往如其人,过份潦草或故作""大班""签,可能会给收信人对你的性格产生误会。
引用内容:
求职信的用词语气
‧ 上款尽可能列明公司名称或收信人姓氏,不要只写敬启者,否则会显得太行货。
‧ 对收信人的称呼应只写对方的姓氏而不带名字,可再加上专称(例如博士或教授等名衔)以示尊敬。
‧ 在第一段就要开宗明义,说明聘请消息的来源,及写得明确有力,因为这一小段文可能是雇主唯一会翻阅的内文,及决定是否找你面试的关键。
‧ 文中必须突出自己的资历及背景,如何符合应征职位的要求,例如在以上应征计算机程序员的例子中,便要将自己在计算机方面的知识全部列出,以吸引雇主的注意。
‧ 简介自己的背景时,不要夸大其词,吹嘘自己的工作能力,写一些与事实不符的数据;同时,也毋须妄自菲薄,过分谦卑,因为这样雇主会觉得你缺乏自信,根本不会给予面试机会。简言之,只要态度诚恳,言之有物便可以。
‧ 信中多以对方公司的利益为出发点,例如强调你一旦加入对公司的贡献;相反,不要过分突显自己的立场。
‧ 结尾加上盼望答复的说话,可加强诚意。
‧ 可用一些有力的字眼加强语气,例如建立、热衷、浓厚兴趣等。
‧ 祝颂语不宜过于文绉绉,例如「敬祝时祺」等传统用语,对现代人都显得很陌生,若不慎抛错书包更会贻笑大方,故只要写得有礼便可。
‧ 若有学历或其它证明文件随信附上,要清楚列明。
引用内容:
求职信的格式布局
‧ 加上标题,道明来意,清楚写明自己所应征的职位,方便对方阅读之余,也有利于存盘纪录。
‧ 内容必须分段清晰,每段有独立主旨,条理简明,扼要精简,皆因雇主或人事部一天间可能会收到数以百封应征信,如果你的信冗长不堪,将难逃被投篮的命运。
‧ 段与段之间隔行书写,每段起首留空间,会显得更易于阅读。
‧ 无论是手写或是计算机打字,一定要以端正整齐为原则,应多花工夫核正别字或错漏,否则印象分会大减。
‧ 不要用铅笔、红笔书写。
‧ 信纸信封不要折皱或有污渍,更不要有其它公司或酒店的标记或名称。






User Comments
essential information for Microsoft Access MySQL users:
sometimes, when you use Microsoft Access to update tables, you get unexpected "access denied for user: '@YOUR_IP_ADDRESS'" errors, which is to be solved in the following way:
Microsoft Access 2000/2002 Jet/ODBC database engine uses default anonymous logins by default, and you should tweak the following registry key so that the ODBC DSN's options were used, instead:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\ODBC]
"TryJetAuth"=dword:00000000
hope this helps,
Andrew Eigus
Astros Information Technologies - Riga
I have a small network in my home. My RH8.something server has DHCP and DNS for my small domain (.home.tesmer.org). I do not have DNS names for the hosts on DHCP.
When trying to run MySQLCC in WinXP on a DHCP'd host, I continually got "[gummy] ERROR 2013: Lost connection to MySQL server during query" (gummy is the dns name of the host running the MySQL instance).
I added skip-name-resolve under [mysqld] in my.cnf and restarted the mysqld using the init script, and viola, it worked.
when you are simply trying to:
C:\mysql\bin>mysql -uroot -p mysql
and you get:
ERROR 1044: Access denied for user: '@127.0.0.1' to database 'mysql'
Here is what I do. The key is to supply your real ip address for the -h (host) parameter. On windows, from the command prompt type 'ipconfig' to see your ip address. Once you have that, do the following:
C:\mysql\bin>mysql -h 192.168.0.1 -u root -p mysql
Enter password: ****************
// then I explicitly add root@127.0.0.1 to the user table, so after this I can log in as you would expect
GRANT ALL PRIVILEGES ON *.* TO root@localhost IDENTIFIED BY 'root-password' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO root@127.0.0.1 IDENTIFIED BY 'root-password' WITH GRANT OPTION;
// delete anon accounts
DELETE FROM mysql.user WHERE password='';
FLUSH PRIVILEGES;
It works for me
One other way is when you set the initial password for the root user, also set it on 127.0.0.1:
SET PASSWORD FOR root@localhost=PASSWORD('new_password');
SET PASSWORD FOR root@127.0.0.1=PASSWORD('root-password');
FLUSH PRIVILEGES;
"Access denied for user: 'root@localhost' (Using password: YES)"
Then this may work for you.
When connecting to the MySQL server from a remote location You have to specify the "hosts"(remote location IP's) that you will be accessing the database from.
You must have access to CPANEL and have MySQL features enabled for this solution to work. A simple way to check if you have these features is to go into the CPANEL and look for the MySQL Databases Section.
If you have it listed, go into it.
Down towards the bottom of the page that loads you will see a heading called "Access Hosts".
By default you will only see "localhost" listed below this heading. This means only database access from the localhost(yourserver) is allowed.
You can add more hosts to this list by using the text box provided with the title "Host:"
For Example: if you wanted to give access to the MySQL server to a remote computer with this static IP address: 211.233.2.24 all you would simply do is type in the IP address in the textbox and hit the "add host" button.
If you had an entire network that you needed to give access to the MySQL server simply use the wildcard "%" symbol eg. 211.233.2.%
SECURITY WARNING: If you do not have a static IP address, using a wildcard "%" may open a security hole that can lead to unauthorized access to the MySQL server from a remote address. Make certain you delete all added hosts if you are not intending on using them and only set up wildcards if no one outside your network has access to the IP range you have specified.
Hope this helps - I know it did for me. :)
My local network is on DHCP with addresses assigned in the 192.168.0.100 to .199 range, so there is no guarantee what IP I will have when administering the DB. However, rather than grant privs to root@'%', I granted privs to root@'192.168.0.1%' so that it is a little more secure. Full command:
GRANT ALL PRIVILEGES ON *.* TO root@'192.168.0.1%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;
this seems to grant access to '192.168.0.10' - '192.168.0.19' as well, might wanna specify as '192.168.0.1__'(2 underscores) so that it accepts 2 (and only 2) wild characters.
I had problems connecting to MySQL over tcp/3306
on debian stable, localhost. It was not enabling networking
in my.cnf, but it was a missing entry in /etc/hosts.allow
I added the following to /etc/hosts.allow:
mysqld 127.0.0.1
I discovered the problem when trying to connect from Java
using the latest stable J/Connector. The error given
was "Communication link failure: null" which was not so
specific.
Since Java only allows you to connect over tcp, you have
no other alternative. If you experience similar problems
from Java, please test to do the following:
telnet localhost 3306
If you are connected and immediately after that disconnected
before the mysqld answers, it might be the missing entry in
hosts.allow .
You can also see if your tcp connection works by forcing
the mysql client to connect over tcp/3306:
mysql -u root -h 127.0.0.1 -P 3306 -p
The error given if you have a network problem, is:
ERROR 2013: Lost connection to MySQL server during query
If you run into this, using debian, then my advice is
to add a line accordingly to /etc/hosts.allow
The reason for this happening on debian, is that
the apt-get package for mysql-server is compiled
with tcp-wrapper support. This is not mentioned
in the file README.debian, so it may come as a surprise
to you. It did to me, to say the least.
Rikard
I spent DAYS trying to track this problem down! :-)
Anyway, with a fresh install I was trying to connect to MySQL from a remote server - but I was getting messages that it could not connect.
I made sure I had users with correct priveleges, made sure mysqld was running on and listening to port 3306..... and it was ALL because of one line in my my.cnf file!!
bind-address=127.0.0.1
I removed that line - restarted mysql and now I have no problem connecting to MySQL from anywhere but localhost!
Perhaps "bind-address" should be listed as one of the potential causes. ;-)
The "2003 CR_CONN_HOST_ERROR" seems to occur while rapidly opening and closing connections across a network...so keep the connection open.
Essential information for Microsoft Access MySQL users:
sometimes, when you use Microsoft Access to update tables, you get unexpected "access denied for user: '@YOUR_IP_ADDRESS'" errors, which is to be solved in the following way:
Microsoft Access 2000/2002 Jet/ODBC database engine uses default anonymous logins by default, and you should tweak the following registry key so that the ODBC DSN's options were used, instead:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\ODBC]
"TryJetAuth"=dword:00000000
hope this helps,
Ronald
For
ERROR 2003: Can't connect to MySQL server on '127.0.0.1' (111)
and no entries in the error.log or mysql.log
If it's not bind-address then it's probably skip-networking. Turn that off and it worked for me running debian - the /etc/hosts.allow option didn't help me with that on!
Essential information for Microsoft Access MySQL users:
sometimes, when you use Microsoft Access to update tables, you get unexpected "access denied for user: '@YOUR_IP_ADDRESS'" errors, which is to be solved in the following way:
Microsoft Access 2000/2002 Jet/ODBC database engine uses default anonymous logins by default, and you should tweak the following registry key so that the ODBC DSN's options were used, instead:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\ODBC]
"TryJetAuth"=dword:00000000
hope this helps,
Ronald
Hi.
If your have problems conneecting to your mysql server in a debian installation the problem can be that the networking is disabled for security reasons.
I detected the problem cause i was unable to connect using jdbc to my local mysql server, i had always a java.net.ConnectException MESSAGE: Connection refused.
To solve it you should comment the line containing skip-networking:
#skip-networking
After doing this you should reboot the mysql server with:
/etc/init.d/mysql restart
And voila everything will work fine.
Hope this helps
I was setting up MySQL from the instructions from the O'Reilly PHP and MySQL book and encountered "ERROR 1045: Access denied for user: 'username@localhost' (Using password: YES)". Well the instruction said to add the 'username' with the SQL statement as:
GRANT SELECT, INSERT, UPDATE, DELETE, LOCK TABLES ON winestores.* TO username@127.0.0.1 IDENTIFIED by 'password';
After doing this as root, I quit and tried to log back in with the new user. I got the ERROR 1045.
I fixed it by logging back in as root and reissuing the SQL statement again except with 'username@localhost'. It worked!
I don't know why? Maybe it is the difference between IPs of '127.0.0.1' and 'localhost'???
Hope this helps!
Add your own comment.