bestlong 怕失憶筆記

當健忘由隨機逐漸趨向常態時,作筆記是非常必要的

Entries for the ‘Database’ Category

執行 mysqlbinlog 出現 unknown variable ‘default-character-set=utf8’

執行的過程如下:

1
2
3
4
5
[root@www ~]# mysqlbinlog mysql-bin.000001
mysqlbinlog: unknown variable 'default-character-set=utf8'
[root@www ~]# mysqlbinlog
mysqlbinlog: unknown variable 'default-character-set=utf8'
[root@www ~]#

這是應該 mysqlbinlog 不支援 default-character-set 這個參數所導致
因為我在 my.cnf 中做了設定

1
2
[client]
default-character-set=utf8

這會讓所有的 Client Program 都被套用這個參數,所以碰上不支援的就掛了
不過可以改使用 loose-* 的參數前綴設定如下:

1
2
[client]
loose-default-character-set=utf8

這樣就可讓此參數變成非強制性的設定,程式也就可以執行了。
不過還是會出現警告訊息 Warning: mysqlbinlog: unknown variable ‘loose-default-character-set=utf8’
要是這樣也不能接受那就只有將 [client] 的 default-character-set 設定移除,讓 Client Program 自行打理了。

Leave a Comment

開發Delphi資料庫程式時不建議使用函數InsertRecord與AppendRecord

InsertRecord() 與 AppendRecord() 是 Delphi 的資料插入與新增的函數。雖然這兩個功能可以簡易方便的使用,若是在程式中大量使用,最後將會面臨欄位對應的問題。

為什麼呢?

當有需要調整DataSet元件中的欄位順序(我想應該會常常發生)或資料庫欄位的順序的時候,你就需要同步修改這兩個函數的資料順序,所以用的範圍越多問題越大。連調整欄位順序都有影響就是高度耦合的問題。

接手的舊系統就是有一堆這樣的狀況,只好先作苦力將全部程式碼都轉換過,再開始動資料庫。

Leave a Comment

MSDE 2000 管理筆記

SQL Server Desktop Engine (MSDE) 2000

連線至 Microsoft 桌面引擎
http://support.microsoft.com/kb/319930/ZH-TW/

使用 Osql 公用程式管理 SQL Server Desktop Engine (MSDE 2000)
http://support.microsoft.com/kb/325003/ZH-TW/

如何藉由使用 Transact – SQL 備份 Microsoft Data Engine 資料庫
http://support.microsoft.com/kb/241397/ZH-TW/

Leave a Comment

資料庫管理工具 DbaMgr – DbaMgr2K

開發資料庫程式使用 MSDE 2000 資料庫卻沒有管理工具,可以使用此工具

A little alternative administrative console for Microsoft MSDE 1.0 and MSDE 2000 written in Microsoft Visual Basic 6.0




DbaMgr requires Ado2.5 (MDAC2.5) and portion of SQL Server 7.0 Client Components containing SQL-DMO;
DbaMgr2k requires Ado2.6 (MDAC2.6) and portion of SQL Server 2000 Client Components containing SQL-DMO.

SQL Server 7.0 installations require DbaMgr, that can not connect to SQL Server 2000.
On the contrary, SQL Server 2000 installations require DbaMgr2k, that can not connect to SQL Server 7.0.

http://www.asql.biz/en/DbaMgr.aspx

Leave a Comment

資料庫管理工具 Aqua Data Studio

開發資料庫程式使用 MSDE 2000 資料庫卻沒有管理工具,可以使用此工具

Aqua Data Studio is a database developer’s complete Integrated Development Environment (IDE).

The IDE provides three major areas of functionality:
A) Database query and administration tool
B) Suite of compare tools for databases, source control and filesystems.
C) a complete and integrated source control client for Subversion (SVN) and CVS.

Database IDE:
The database query and administration tools allow developers to easily create, edit, and execute SQL scripts, as well as browse and visually modify database structures. Aqua Data Studio provides an integrated database environment with a single consistent interface to all major relational databases. This allows the database administrator or developer to tackle multiple tasks simultaneously from one application.

Compare Tools:
The suite of compare tools allows the user to easily view the differences of RDBMS servers, databases and schemas for database tasks. The tools also allow the user to view the differences of files, directory structures, source control files and full revisions.

Version Control:
The version control client provides a complete client to Subversion and CVS repositories, allowing the user to easily manage all source control repositories within one easy to use IDE.

OS Support: Windows | Linux | OSX | Solaris | Java Platform

RDBMS Support: (Oracle – 10g/9i/8i) (DB2 UDB – 9/8/7) (MS SQL Server – 2005/2000/7/MSDE) (Sybase ASE – 15/12.x/11.x) (Sybase Anywhere – 10/9/8) (Sybase IQ – 12.x) (Informix IDS – 10/9.x/7.x) (PostgreSQL – 8.x/7.x) (MySQL – 5/4.x/3.x) (Generic JDBC Platform) (Generic ODBC)

http://www.aquafold.com/

Comments (1)

  • 工商服務

    廣告讀取中...
  • 近期留言

  • 標籤

  • 彙整