cookieit.blogspot.com
Cookie for IT: MySQL dump table data to csv
http://cookieit.blogspot.com/2014/08/mysql-dump-table-data-to-csv.html
星期二, 8月 05, 2014. MySQL dump table data to csv. Mysqldump -u root -p - tab=/tmp world sample - fields-terminated-by=',' - lines-terminated-by=' r n'. Fields-terminated-by=',' 以","號為分格. Lines-terminated-by=' r n' 結尾分行附號. World sample 表示 world 資料庫內的 sample Table. 將 sample.txt 改為 sample.csv 即可以 excel 開啟. 訂閱: 張貼留言 (Atom). MySQL dump table data to csv.
cookieit.blogspot.com
Cookie for IT: 四月 2010
http://cookieit.blogspot.com/2010_04_01_archive.html
星期一, 4月 05, 2010. CentOS 下安裝 JIRA MySQL. 第一步先安裝 JDK 1.6. 1修改 /etc/profile 檔,於檔尾加入以下設定. Export JAVA HOME=/usr/local/jdk1.6. 1 以 Yum 來安裝MySQL : yum install mysql. 2執行 MySQL Server: service mysql start. 3登入 MySQL Command Mode: mysql -u root. 4建立Jira 資料庫: create database jiradb;. 5建立資料庫 user: GRANT ALL PRIVILEGES ON jiradb.* TO 'sa'@'localhost' IDENTIFIED BY 'sql' WITH GRANT OPTION;. 1到 JIRA 網站下載測試版本 atlassian-jira-enterprise-4.0.2-standalone.tar.gz。 DriverClassName="com.mysql.jdbc.Driver". JAVA OPTS="-Xms25...
cookieit.blogspot.com
Cookie for IT: 十月 2010
http://cookieit.blogspot.com/2010_10_01_archive.html
星期五, 10月 29, 2010. VViewVC 可利用 Browser 於線上檢視版本控制的程式碼變更及程式碼差異,利於 Code Review。 1請於 http:/ www.viewvc.org/ 下載最新版的 ViewVC,目前最新版本為 viewvc-1.1.7.tar.gz. 2執行 tar -zxvf viewvc-1.1.7.tar.gz 解壓縮後,進入viewvc-1.1.7 目錄下並執行 ./viewvc-install. 指令,執行後預設會安裝至 /usr/local/viewvc-1.1.7 目錄下。 3接下來就要指定 SVN Repository 的目錄,請修改 /usr/local/viewvc-1.1.7/viewvc.conf 找到 root parents 參數,將此參數指定為 SVN 的主目錄 root parents = /var/www/svn: svn 。 4為了讓 Apache 可以執行 viewvc,請修改 httpd.conf 加入以下兩行指令:. 6執行 service httpd restart 重新啟動 Apache 即可。
cookieit.blogspot.com
Cookie for IT: 一月 2010
http://cookieit.blogspot.com/2010_01_01_archive.html
星期五, 1月 15, 2010. 1修改 server.xml 將 Connector port=8080 tag 後加入. URIEncoding=UTF-8 useBodyEncodingForURI=true 兩個屬性。 2修改Web AP 的 web.xml ,加入 Set Character Encoding Filter(可以在 tomcat 的 servlet-examples內的 classes/filters 目錄下找到). Filter-name Set Character Encoding /filter-name. Filter-class filters.SetCharacterEncodingFilter /filter-class. Param-value EUC JP /param-value. 訂閱: 文章 (Atom).
cookieit.blogspot.com
Cookie for IT: MySQL Show Schema Table Size
http://cookieit.blogspot.com/2014/07/mysql-show-schema-table-size.html
星期四, 7月 17, 2014. MySQL Show Schema Table Size. MySQL Run 了一段時間後,想檢視每個 table 的大小,可執行以下指令,尤其是當使用 ndbcluster engine 特別要注意 table 大小,因 table 資料全放在 Memory. SELECT table name AS "Table", round( (data length index length) / 1024 / 1024), 2) "Size in MB" FROM information schema.TABLES WHERE table schema = "world";. 訂閱: 張貼留言 (Atom). MySQL Show Schema Table Size.
cookieit.blogspot.com
Cookie for IT: 十一月 2010
http://cookieit.blogspot.com/2010_11_01_archive.html
星期五, 11月 05, 2010. 1將 DOS 文件轉成 Linux 文件,去掉 M:. Tr -d r < 原始檔 > 目的檔. 2搜尋內含某字串的所有檔案列表:. Grep 字串 -rl 目錄. 3將檔案內含某字串取代為另一字串:. Sed -i s/某字串/取代字串/g `grep 字串 -rl 目錄`. 4抓取 FTP 目錄下所有檔案:. Wget -b -m -c ftp:/ 使用者ID:密碼@ftp.demo.com.tw/目錄. 訂閱: 文章 (Atom).
cookieit.blogspot.com
Cookie for IT: 三月 2014
http://cookieit.blogspot.com/2014_03_01_archive.html
星期三, 3月 19, 2014. Eclipse Run Tomcat with Maven without war. Auto reload tomcat when change source java/html/js if you develop web app with Eclipse. 1.Modify maven pom.xml within the build plugins . /plugins /build element. 2Add Maven Run Config (Running without build war and run directly). Base Directory: ${workspace loc:/webname} Goals: clean compile tomcat7:run. 3Remember install http:/ ifedorenko.github.com/m2e-extras/ source finder when run debug on maven. 訂閱: 文章 (Atom).
cookieit.blogspot.com
Cookie for IT: 十月 2012
http://cookieit.blogspot.com/2012_10_01_archive.html
星期二, 10月 09, 2012. Windows AD search with linux ldapsearch. Ldapsearch -x -LLL -h ip -D userdn -w password -b base dc -s sub (objectClass=user) givenName examples: ldapsearch -x -LLL -h adldap.local -D CN=john,DC=test,DC=com -w test -bdc=test,dc=com -s sub (objectClass=user) givenName. 訂閱: 文章 (Atom). Windows AD search with linux ldapsearch.
cookieit.blogspot.com
Cookie for IT: 三月 2012
http://cookieit.blogspot.com/2012_03_01_archive.html
星期五, 3月 09, 2012. 1先於 $JBOSS HOME server default deploy 目錄下建立 oracle-ds.xml,其內容如下:? IBM WebSphere MQ 6.0 CentOS 5.2. Jdk-1 5 0 22-linux-i586.bin. MQ 60 Linux on x86 platform CD. 602-WS-MQ-LinuxIA32-FP0011.tar.gz MQ Patch file. 2安裝 jdk 至 /usr/local/jdk1.5.0 22 目錄下. Mv jdk-1 5 0 22-linux-i586.bin /usr/local/. Chmod x jdk-1 5 0 22-linux-i586.bin. Jdk-1 5 0 22-linux-i586.bin. 3mount MQ 6.0 Linux on x86 platform CD 到 /mnt/mq. 4因為 CD 為唯讀,但我們須修改 mqlicense.sh 所以先 tar 一份起來. Tar -czvf mq6.tar.gz /mnt/mq. Rpm -U MQ...
cookieit.blogspot.com
Cookie for IT: 七月 2014
http://cookieit.blogspot.com/2014_07_01_archive.html
星期四, 7月 17, 2014. MySQL Show Schema Table Size. MySQL Run 了一段時間後,想檢視每個 table 的大小,可執行以下指令,尤其是當使用 ndbcluster engine 特別要注意 table 大小,因 table 資料全放在 Memory. SELECT table name AS "Table", round( (data length index length) / 1024 / 1024), 2) "Size in MB" FROM information schema.TABLES WHERE table schema = "world";. 訂閱: 文章 (Atom). MySQL Show Schema Table Size.