]]>mysql 涓枃涔辯爜 涓枃璇誨啓閿欒闂 鐨勮В鍐沖姙娉?/title>http://www.aygfsteel.com/LoveBegin/archive/2010/02/10/312456.html蹇冩儏蹇冩儏Tue, 09 Feb 2010 16:52:00 GMThttp://www.aygfsteel.com/LoveBegin/archive/2010/02/10/312456.htmlhttp://www.aygfsteel.com/LoveBegin/comments/312456.htmlhttp://www.aygfsteel.com/LoveBegin/archive/2010/02/10/312456.html#Feedback0http://www.aygfsteel.com/LoveBegin/comments/commentRss/312456.htmlhttp://www.aygfsteel.com/LoveBegin/services/trackbacks/312456.html
緙栬緫mysql鐨勯厤緗枃浠秏y.ini,璁劇疆瀛楃闆嗕負gbk
[client] port=3306 [mysql] default-character-set=gbk # SERVER SECTION # ---------------------------------------------------------------------- # # The following options will be read by the MySQL Server. Make sure that # you have installed the server correctly (see above) so it reads this # file. # [mysqld] # The TCP/IP Port the MySQL Server will listen on port=3306 #Path to installation directory. All paths are usually resolved relative to this. basedir="D:/Program Files/MySQL/MySQL Server 5.1/" #Path to the database root datadir="D:/Program Files/MySQL/MySQL Server 5.1/Application Data/Data/" # The default character set that will be used when a new schema or table is # created and no character set is defined default-character-set=gbk # The default storage engine that will be used when create new tables when default-storage-engine=INNODB
浣跨敤MySQL Workbench璁捐鏁版嵁搴?錛屾暟鎹簱鍜岃〃鍧囦嬌鐢ㄩ粯璁ょ殑瀛楃闆?
鍦⊿ervlet涓漿鎹㈠瓧絎︾紪鐮?/li>
String name = request.getParameter("name"); name =new String(name.getBytes("ISO-8859-1"));