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 閱讀(748) 評論(0)  編輯  收藏


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


          網站導航:
           

          導航

          統(tǒng)計

          常用鏈接

          留言簿(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
          主站蜘蛛池模板: 巴马| 乳源| 固始县| 新宾| 太保市| 渝北区| 凤城市| 绥江县| 进贤县| 雷州市| 蒲江县| 临猗县| 武义县| 阿尔山市| 湄潭县| 芷江| 石柱| 洛扎县| 海南省| 修武县| 麻城市| 沛县| 城步| 弥勒县| 博罗县| 孙吴县| 古浪县| 栖霞市| 嘉荫县| 涞源县| 英德市| 梅河口市| 盐池县| 阜新市| 德格县| 时尚| 上栗县| 宝兴县| 湘西| 调兵山市| 赤壁市|