原创 命令啓動Mysql
@echo off copy C:\Program Files\MySQL\MySQL Server 5.5\php.ini %SystemRoot% /y >nul copy C:\Program Files\MySQL\MySQL
原创 工作日計算方法 工作日加減
import java.text.ParseException; import java.text.SimpleDateFormat; import org.apache.commons.lang.time.DateUtils; p
原创 resin3連接池配置
<database> <character-encoding>utf-8</character-encoding> <jndi-name>jdbc/eBuilder</jndi-name> <driver type="org.gj
原创 mysql 授權用戶遠程登陸
你想myuser使用mypassword從任何主機連接到mysql服務器的話。 GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%'IDENTIFIED BY 'mypassword' WITH GR
原创 lucene 4.7 (2)全文檢索之查詢
package org.apache.lucene.demo; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contribut
原创 mysql 允許遠程登陸
當安裝完數據庫後,會發現由於權限控制,導致不能遠程連接。 這需要我們手動去打開遠程連接。 有2種方法: 一種是允許所有客戶端連接 GRANT ALL PRIVILEGES ON *.* TO '用戶名'@'%' IDENTI
原创 c3p0
#驅動 c3p0.driverClass=net.sourceforge.jtds.jdbc.Driver #地址 c3p0.jdbcUrl=jdbc:jtds:sqlserver://10.95.1.20:1433/eBuilder_
原创 linux設置時間
設置時間爲13:13分 date -s 13:13:25 (1)將時間調整爲10月11日凌晨1點55分:data 10110155(2)將系統時間設定成2005年8月8日: date -s 2005/08/08(3
原创 Mysql 修復表
數據庫:mysql -uroot -p 1.異常日誌:/var/log/mysqld.log 2.數據目錄:/www/date/mysql 修復順壞表:up_link myisamchk -r -c /
原创 table不超過最大值。
$(function(){ var tableMax=580; $("table").each(function(){ if($(this).attr("width")>tableMax||$(this).css("width")>t
原创 dwr 日期時間轉換
/*時間格式化 http://www.naoqiu.com*/ Date.prototype.format = function (format) { var o = { "M+": this.getMonth(
原创 lucene4.7(3) 全文檢索之 相關類
public class DBIndex{ public static final config _$=new config(); public static class config{ public static fina
原创 msql 亂碼
mysql> SHOW VARIABLES LIKE 'character_set_%';+--------------------------+----------------------------+| Variable_name
原创 Apache dbcp 連接池
java操作(dbcp.jar) BasicDataSource basicDataSource=new BasicDataSource(); basicDataSource.setDriverClassNam
原创 lucene4.7 (1)全文檢索之根據數據庫內容創建索引
package org.apache.lucene.demo; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contribut