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
          主站蜘蛛池模板: 剑川县| 乐清市| 屯门区| 濮阳市| 邮箱| 东山县| 东方市| 泊头市| 隆回县| 乌鲁木齐市| 寿阳县| 西畴县| 息烽县| 贺兰县| 体育| 镇康县| 新蔡县| 闵行区| 兰坪| 铜川市| 昆明市| 上杭县| 白沙| 郯城县| 长治市| 罗定市| 门源| 获嘉县| 措勤县| 东港市| 沂南县| 林芝县| 大埔区| 丰城市| 陆良县| 营山县| 阜康市| 循化| 三明市| 樟树市| 抚远县|