MenuBar
Blog †
Movable Type Publishing Platform †
PostgreSQLを使用する場合の設定 †
- マニュアル
mt/docs/mtinstall.html をよく読む。
- DBの作成
#!/bin/sh
$DB_NAME=mt
# postgres ユーザーで作業
$ su - postgres
# httpdを起動させているユーザーと同じ名前をpostgresにも登録
$ createuser --no-adduser --no-createdb --pwprompt apache
# データベース作成
$ createdb -E UNICODE -O apache $DB_NAME
# 権限付与
$ psql -c "GRANT ALL ON DATABASE $DB_NAME TO apache;" $DB_NAME
- mt.cfgの編集
実際に設置するURLに変更
CGIPath http://www.your-site.com/mt/
以下の行を追加
ObjectDriver DBI::postgres
Database mt
DBUser apache
PostgreSQLを使用し、mt-load.cgi実行時にエラーが出る †
全テーブルデータ削除SQL †
truncate mt_author;
truncate mt_blog;
truncate mt_category;
truncate mt_comment;
truncate mt_entry;
truncate mt_fileinfo;
truncate mt_ipbanlist;
truncate mt_log;
truncate mt_notification;
truncate mt_permission;
truncate mt_placement;
truncate mt_plugindata;
truncate mt_session;
truncate mt_tbping;
truncate mt_template;
truncate mt_templatemap;
truncate mt_trackback;
設定ファイル †
mt3.151_setting.zip
MTBlogTimes †
更新時刻をグラフィカルに表示
http://nilesh.org/mt/blogtimes/