本文以全新視角比較三款免費/低成本、跨平台、生產環境廣泛部署的 Linux 資料庫:mSQL、MySQL、PostgreSQL。作者以日常使用者身份,從安裝配置、SQL 實作、C 語言客戶端開發、效能基準測試四個維度深度評測。
postgres 使用者:useradd -c "PostgreSQL Administrator" -d /opt/postgresql -g users postgres./configure --prefix=/opt/pgsql --with-perlmake install、make all、make install/opt/pgsql/lib 加入 /etc/ld.so.conf 並 ldconfigcd interface/perl5 && make installpostgres 環境變數(.profile):PATH、MANPATH、PGLIB、PGDATA、LC_COLLATE=C、LC_CTYPE=Csource .profile 後執行 initdb 初始化資料庫mysql-3.22.26a.tar.gz,./configure --prefix=/opt/mysqlmake → make install(root)scripts/mysql_install_db(root)/opt/mysql/bin/safe_mysqld &(root)mysql 使用者並移交目錄擁有權(後續將涵蓋 mSQL 安裝、資料庫設計與 SQL 實作、C API 客戶端開發差異、多工效能基準測試、綜合結論與功能對比表。)