锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品久久久福利,久久精品天天中文字幕人妻,精品免费久久久久久久http://m.shnenglu.com/fenglin/category/15344.html鍒涙柊銆佸垱鎰忋佹寫鎴?/description>zh-cnTue, 03 May 2011 03:54:08 GMTTue, 03 May 2011 03:54:08 GMT60淇敼MYSQL root鐢ㄦ埛瀵嗙爜http://m.shnenglu.com/fenglin/articles/140575.html椋庢灄椋庢灄Thu, 24 Feb 2011 02:40:00 GMThttp://m.shnenglu.com/fenglin/articles/140575.htmlhttp://m.shnenglu.com/fenglin/comments/140575.htmlhttp://m.shnenglu.com/fenglin/articles/140575.html#Feedback0http://m.shnenglu.com/fenglin/comments/commentRss/140575.htmlhttp://m.shnenglu.com/fenglin/services/trackbacks/140575.htmlhaha
灝唕oot瀵嗙爜璁劇疆涓篽aha錛屾墽琛屾湰鍛戒護(hù)鍚庯紝瑕佹眰杈撳叆鍘焤oot瀵嗙爜錛屾紜悗錛屽嵆鍙慨鏀規(guī)垚鍔熴?

椋庢灄 2011-02-24 10:40 鍙戣〃璇勮
]]>
甯哥敤鏁版嵁搴撶殑JDBC榪炴帴浠g爜http://m.shnenglu.com/fenglin/articles/134492.html椋庢灄椋庢灄Wed, 24 Nov 2010 03:38:00 GMThttp://m.shnenglu.com/fenglin/articles/134492.htmlhttp://m.shnenglu.com/fenglin/comments/134492.htmlhttp://m.shnenglu.com/fenglin/articles/134492.html#Feedback0http://m.shnenglu.com/fenglin/comments/commentRss/134492.htmlhttp://m.shnenglu.com/fenglin/services/trackbacks/134492.html
  • 1銆丱racle8/8i/9i鏁版嵁搴擄紙thin妯″紡錛?/strong>   
  • Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();   
  • String url="jdbc:oracle:thin:@localhost:1521:orcl";   
  • //orcl涓烘暟鎹簱鐨凷ID   
  • String user="test";   
  • String password="test";   
  • Connection conn= DriverManager.getConnection(url,user,password);   
  •   
  • 2銆丏B2鏁版嵁搴?/strong>   
  • Class.forName("com.ibm.db2.jdbc.app.DB2Driver ").newInstance();   
  • String url="jdbc:db2://localhost:5000/sample";   
  • //sample涓轟綘鐨勬暟鎹簱鍚?nbsp;  
  • String user="admin";   
  • String password="";   
  • Connection conn= DriverManager.getConnection(url,user,password);   
  •   
  • 3銆丼ql Server7.0/2000/2005鏁版嵁搴?nbsp;
  • /*浣跨敤鐨勬槸4.0椹卞姩錛屾JAR鍖呭悕縐頒負(fù)sqljdbc4.jar錛屾枃浠跺ぇ灝忎負(fù) 524 KB (537,303 瀛楄妭) 錛屾枃浠朵慨鏀規(guī)椂闂翠負(fù)‎2010‎騫?#8206;4‎鏈?#8206;19‎鏃ワ紝‏‎10:12:00*/  
  •  public static void main(String[] args) {
      String driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver";
      String url="jdbc:sqlserver://192.168.1.113:3329;DatabaseName=kinsys";
      String username="sa";
      String password="";
      
      Connection con = null;
      try{
       Class.forName(driverClassName);
       con = DriverManager.getConnection(url, username, password);
       System.out.println("Connection successed.");
      }catch(Exception e){
       e.printStackTrace();
      }
     }
  •   
  • 4銆丼ybase鏁版嵁搴?/strong>   
  • Class.forName("com.sybase.jdbc.SybDriver").newInstance();   
  • String url =" jdbc:sybase:Tds:localhost:5007/myDB";   
  • //myDB涓轟綘鐨勬暟鎹簱鍚?nbsp;  
  • Properties sysProps = System.getProperties();   
  • SysProps.put("user","userid");   
  • SysProps.put("password","user_password");   
  • Connection conn= DriverManager.getConnection(url, SysProps);   
  •   
  • 5銆両nformix鏁版嵁搴?/strong>   
  • Class.forName("com.informix.jdbc.IfxDriver").newInstance();   
  • String url =   
  • "jdbc:informix-sqli://123.45.67.89:1533/myDB:INFORMIXSERVER=myserver;   
  • user=testuser;password=testpassword";   
  • //myDB涓烘暟鎹簱鍚?nbsp;  
  • Connection conn= DriverManager.getConnection(url);   
  •   
  • 6銆丮ySQL鏁版嵁搴?/span>
  • /*org.gjt.mm.mysql.Driver鏄棭鏈熺殑椹卞姩鍚嶇О錛屽悗鏉ュ氨鏀瑰悕涓篶om.mysql.jdbc.Driver錛岀幇鍦ㄤ竴鑸兘鎺ㄨ崘浣跨敤 com.mysql.jdbc.Driver銆傚湪鏈鏂扮増鏈殑mysql jdbc椹卞姩涓紝涓轟簡(jiǎn)淇濇寔瀵硅佺増鏈殑鍏煎錛屼粛鐒朵繚鐣欎簡(jiǎn)org.gjt.mm.mysql.Driver錛屼絾鏄疄闄呬笂 org.gjt.mm.mysql.Driver涓皟鐢ㄤ簡(jiǎn)com.mysql.jdbc.Driver錛屽洜姝ょ幇鍦ㄨ繖涓や釜椹卞姩娌℃湁浠涔堝尯鍒?/span>*/   
  • Class.forName("com.mysql.jdbc.Driver").newInstance();   
  • String url ="jdbc:mysql://localhost/myDB?user=soft&password=soft1234&useUnicode=true&characterEncoding=8859_1"  //瑙e喅涓枃鏄劇ず闂 
  • //myDB涓烘暟鎹簱鍚?nbsp;  
  • Connection conn= DriverManager.getConnection(url);   
  •   
  • 7銆丳ostgreSQL鏁版嵁搴?/strong>   
  • Class.forName("org.postgresql.Driver").newInstance();   
  • String url ="jdbc:postgresql://localhost/myDB"   
  • //myDB涓烘暟鎹簱鍚?nbsp;  
  • String user="myuser";   
  • String password="mypassword";   
  • Connection conn= DriverManager.getConnection(url,user,password); 


椋庢灄 2010-11-24 11:38 鍙戣〃璇勮
]]>
SSH&MySQL鏁版嵁瀛樺彇涔辯爜http://m.shnenglu.com/fenglin/articles/134031.html椋庢灄椋庢灄Thu, 18 Nov 2010 14:39:00 GMThttp://m.shnenglu.com/fenglin/articles/134031.htmlhttp://m.shnenglu.com/fenglin/comments/134031.htmlhttp://m.shnenglu.com/fenglin/articles/134031.html#Feedback0http://m.shnenglu.com/fenglin/comments/commentRss/134031.htmlhttp://m.shnenglu.com/fenglin/services/trackbacks/134031.html
mysql> select * from tbl_Category;
+----+--------------------+--------------------+----------+
| id | descr              | name               | parentId |
+----+--------------------+--------------------+----------+
|  1 | 錕斤拷?????錕????       | 錕斤拷?????錕????       |     NULL |
|  2 | ????錕斤拷??????       | ????錕斤拷??????       |     NULL |
|  3 | ??錕?錕???????       | ??錕?錕???????       |     NULL |
|  4 | ???????錕????       | ???????錕????       |     NULL |
|  5 | ?錕斤拷錕斤拷?錕??錕??       | ?錕斤拷錕斤拷?錕??錕??       |     NULL |
|  6 | ?錕???????錕?錕?????? | ?錕???????錕?錕?????? |     NULL |
+----+--------------------+--------------------+----------+
6 rows in set (0.10 sec)

涓轟簡(jiǎn)鑳藉鐞哢nicode緙栫爜錛屾渶濂藉皢鏁版嵁搴撳簱鐨勭紪鐮佽緗負(fù)UTF8(榪欐牱灝卞彲浠ヤ笉綆℃槸鍝浗鏂囧瓧閮借兘姝e父鏄劇ず)錛岃繛鎺ユ椂涔熺敤UTF8鏉ュ鐞嗐傛垜浠厛鏌ョ湅褰撳墠鏁版嵁鐨勭紪鐮佽緗儏鍐碉細(xì)
mysql> show variables like 'character_set_%';
+--------------------------+----------------------------+
| Variable_name            | Value                      |
+--------------------------+----------------------------+
| character_set_client     | latin1                     |
| character_set_connection | latin1                     |
| character_set_database   | utf8                       |
| character_set_filesystem | binary                     |
| character_set_results    | latin1                     |
| character_set_server     | latin1                     |
| character_set_system     | utf8                       |
| character_sets_dir       | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
8 rows in set (0.00 sec)
浠ヤ笂鏄湭璁劇疆鍓嶇殑緙栫爜鎯呭喌錛岄氳繃浠ヤ笅鍛戒護(hù)鏉ヨ緗紪鐮侊細(xì)
mysql> set character_set_client=utf8;
Query OK, 
0 rows affected (0.00 sec)
浣跨敤set鍛戒護(hù)灝嗙浉搴旂殑鍙傛暟璁劇疆鐩稿簲鐨勫鹼紝璇瘋嚜宸變竴涓竴涓緗紝涓嬮潰鏄緗ソ浜?jiǎn)鐨勩?br>
mysql> show variables like 'character_set_%';
+--------------------------+----------------------------+
| Variable_name            | Value                      |
+--------------------------+----------------------------+
| character_set_client     | utf8                       |
| character_set_connection | utf8                       |
| character_set_database   | utf8                       |
| character_set_filesystem | binary                     |
| character_set_results    | utf8                     |
| character_set_server     | utf8                       |
| character_set_system     | utf8                       |
| character_sets_dir       | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
8 rows in set (0.00 sec)
鍒版涓烘錛孧ySQL鏁版嵁搴撶紪鐮佽鎴戜滑璁劇疆濂戒簡(jiǎn)銆?br>鍦ㄨ繛鎺ySQL鏁版嵁搴撴椂錛屼嬌鐢ㄥ涓嬭繛鎺ヤ覆錛?br>
jdbc.url=jdbc:mysql://192.168.1.114:3306/szblcz?useUnicode=true&characterEncoding=UTF-8
鎴戣繖閲屾槸閰嶇疆鍦ㄤ竴涓狿roperties鏂囦歡閲屻?span style="COLOR: red; FONT-SIZE: 14pt">useUnicode=true&characterEncoding=UTF-8 榪欎袱涓弬鏁拌搗鍒頒簡(jiǎn)鑷沖叧閲嶈鐨勪綔鐢ㄣ?/span>
鍒拌繖閲屼竴鍒囧啀嫻嬭瘯涓涓嬶紝搴旇娌¢棶棰樹簡(jiǎn)銆?

椋庢灄 2010-11-18 22:39 鍙戣〃璇勮
]]>
Ubuntu涓嬪畨瑁匨ySQL錛屽茍璁╄繙紼嬪鎴風(fēng)璁塊棶http://m.shnenglu.com/fenglin/articles/132209.html椋庢灄椋庢灄Tue, 02 Nov 2010 14:37:00 GMThttp://m.shnenglu.com/fenglin/articles/132209.htmlhttp://m.shnenglu.com/fenglin/comments/132209.htmlhttp://m.shnenglu.com/fenglin/articles/132209.html#Feedback0http://m.shnenglu.com/fenglin/comments/commentRss/132209.htmlhttp://m.shnenglu.com/fenglin/services/trackbacks/132209.html1銆佸畨瑁匨ySQL

瑕佸畨瑁?MySQL錛屽彲浠ュ湪緇堢鎻愮ず絎﹀悗榪愯涓嬪垪鍛戒護(hù)錛?/span>

sudo apt-get install mysql-server mysql-client #涓斾細(xì)璁╀綘杈撳叆涓嬈oot鐢ㄦ埛瀵嗙爜

涓鏃﹀畨瑁呭畬鎴愶紝MySQL 鏈嶅姟鍣ㄥ簲璇ヨ嚜鍔ㄥ惎鍔ㄣ?/span>

sudo start mysql #鎵嬪姩鍚姩mysql
sudo stop mysql #鎵嬪姩鍋滄mysql

褰撲綘淇敼浜?jiǎn)閰嵕|枃浠跺緦錛屼綘闇瑕侀噸鍚?mysqld 鎵嶈兘浣胯繖浜涗慨鏀圭敓鏁堛?/p> 2銆佷慨鏀歸厤緗枃浠?/span>
淇敼/etc/mysql/my.cnf鏂囦歡錛屽皢姝ゆ枃浠朵腑鐨?br>

bind-address = 192.168.1.10 #鍚庨潰榪欎釜IP鍦板潃涓篗ySQL鏈嶅姟鍣ㄧ殑IP鍦板潃
淇濆瓨騫墮鍑恒?br>3銆佺粰榪滅▼瀹㈡埛绔垎閰嶈闂潈闄?/strong>
1錛夊湪鍛戒護(hù)琛屾墽琛岋細(xì)
mysql -u root -p

(杈撳叆mysql鐨剅oot瀵嗙爜)

2錛夊湪鍛戒護(hù)琛屾墽琛屼互涓嬪懡浠わ紝鏌ョ湅褰撳墠鏈夊摢浜涚敤鎴鳳細(xì)

mysql> use mysql;
mysql> select host,user,password from user;

3)緇欒繙紼嬪鎴風(fēng)鎺堟潈

mysql>grant all privileges on *.* to  root@192.168.1.101  identified by 'password'

 娉ㄦ剰錛?錛?錛?92.168.1.101鏄榪炴帴鍒版Mysql鏁版嵁搴撶殑瀹㈡埛绔殑IP鍦板潃錛岃屼笉鏄疢ysql鏁版嵁搴撴墍鍦ㄦ暟鎹簱鏈嶅姟鍣ㄧ殑IP鍦板潃錛屽垏璁?br>           錛?錛塸assword灝辨槸Mysql鏁版嵁搴搑oot鐢ㄦ埛鐨刾assword,鏍規(guī)嵁瀹為檯鎯呭喌闇瑕佷慨鏀?/span>

鍐欎簡(jiǎn)涓▼搴忔祴璇曚笅錛屼竴鍒嘜K錛?br>鎶?.0妗嗘灦鍗歌澆浜?jiǎn)锛屽啀閲嶅惎锛孲QL SERVER2005涔熷彲浠ユ甯鎬嬌鐢ㄤ簡(jiǎn)錛侊紒錛侊紒錛?/span>



椋庢灄 2010-11-02 22:37 鍙戣〃璇勮
]]>
国产精品视频久久| 人妻精品久久久久中文字幕一冢本 | 午夜不卡888久久| 亚洲欧美久久久久9999| 亚洲国产一成久久精品国产成人综合 | 亚洲伊人久久大香线蕉苏妲己| 91久久精品视频| 精品久久久中文字幕人妻| 久久国产色AV免费看| 久久久久婷婷| 精品亚洲综合久久中文字幕| 久久亚洲精品无码观看不卡| 97久久精品无码一区二区| 久久99精品国产麻豆蜜芽| 亚洲乱码精品久久久久..| 久久久精品一区二区三区| 色老头网站久久网| 亚洲国产精品久久| 久久亚洲AV成人无码国产| 久久综合九色综合欧美就去吻| 97久久国产亚洲精品超碰热 | 久久精品国产亚洲av麻豆色欲 | 亚洲欧美日韩久久精品第一区| 一本大道久久a久久精品综合| 日本欧美久久久久免费播放网| 久久精品国产精品亚洲艾草网美妙 | 久久se精品一区二区| 久久久精品国产免大香伊| 精品久久久久一区二区三区| 久久久噜噜噜www成人网| 久久人妻无码中文字幕| 久久久久亚洲AV无码专区桃色| 精品免费久久久久久久| 色88久久久久高潮综合影院| 亚洲精品久久久www| 久久国产成人亚洲精品影院| 久久99热国产这有精品| 99精品久久精品一区二区| 久久Av无码精品人妻系列| 久久精品国产久精国产一老狼| 亚洲国产成人精品无码久久久久久综合|