gembin

          OSGi, Eclipse Equinox, ECF, Virgo, Gemini, Apache Felix, Karaf, Aires, Camel, Eclipse RCP

          HBase, Hadoop, ZooKeeper, Cassandra

          Flex4, AS3, Swiz framework, GraniteDS, BlazeDS etc.

          There is nothing that software can't fix. Unfortunately, there is also nothing that software can't completely fuck up. That gap is called talent.

          About Me

           

          MySQL basis

          basic steps to play with mysql

          # 1) login mysql with root
               mysql -u root -p
          # 2) update password for root (optional)
          UPDATE mysql.user SET password=PASSWORD('newPasswordForRoot'WHERE User='root';
          FLUSH PRIVILEGES;

          # 3) create a new user 'user1'

          CREATE USER user1 IDENTIFIED BY 'mypassword'
          # 4) grant all privileges for this user 
          GRANT ALL PRIVILEGES ON *.* TO 'user1'@'localhost' IDENTIFIED BY 'mypassword'
          FLUSH PRIVILEGES;

          # 5) create a database with char set utf-8

          create database mydatabase character set utf8;
          set character_set_client=utf8;
          set character_set_connection=utf8;
          set character_set_database=utf8;
          set character_set_results=utf8;
          set character_set_server=utf8;


          # 6) switch to a database
          use mydatabase;
          show tables;

          # 7) Sample JDBC connection URL

          jdbc:mysql://localhost:3306/mydatabase?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&failOverReadOnly=false


          posted on 2012-05-22 00:25 gembin 閱讀(749) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           

          導航

          統計

          常用鏈接

          留言簿(6)

          隨筆分類(440)

          隨筆檔案(378)

          文章檔案(6)

          新聞檔案(1)

          相冊

          收藏夾(9)

          Adobe

          Android

          AS3

          Blog-Links

          Build

          Design Pattern

          Eclipse

          Favorite Links

          Flickr

          Game Dev

          HBase

          Identity Management

          IT resources

          JEE

          Language

          OpenID

          OSGi

          SOA

          Version Control

          最新隨筆

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          free counters
          主站蜘蛛池模板: 如皋市| 滦南县| 江门市| 常州市| 长寿区| 铁力市| 天柱县| 浠水县| 白朗县| 常州市| 上犹县| 谷城县| 黄石市| 扶风县| 绥江县| 达孜县| 余庆县| 衡南县| 都昌县| 金山区| 文安县| 桓仁| 宜川县| 延长县| 蒙阴县| 阿拉善盟| 伊吾县| 赣州市| 临西县| 高唐县| 体育| 中方县| 仁怀市| 公主岭市| 古丈县| 宜君县| 阿瓦提县| 安徽省| 叙永县| 宜宾市| 石屏县|