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


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


          網站導航:
          博客園   IT新聞   Chat2DB   C++博客   博問  
           

          導航

          統計

          常用鏈接

          留言簿(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
          主站蜘蛛池模板: 咸丰县| 东莞市| 彝良县| 象州县| 东港市| 东阿县| 虹口区| 泊头市| 乌拉特前旗| 塔城市| 安义县| 五寨县| 澎湖县| 五河县| 枞阳县| 东港市| 康乐县| 拉萨市| 安阳县| 寻乌县| 乌拉特前旗| 武陟县| 新安县| 北川| 阿拉善右旗| 铁岭市| 南皮县| 兰考县| 承德市| 南阳市| 侯马市| 蒲江县| 西宁市| 鄂伦春自治旗| 突泉县| 桂东县| 西乡县| 武川县| 绥中县| 翼城县| 黔南|