< Movable Type | メイン | 台風のせいで… >

2006年09月17日

 ■ Movable Type その2

MySQL の準備。

root パスワードの設定

$ mysqladmin5 -u root password 'password'

root でログイン

$ mysql5 -u root -p
Enter password:password
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 111 to server version: 5.0.24

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

一般ユーザー (dbuser) を作成

mysql> grant select,insert,delete,update,create,drop,file,
alter,index on *.* to dbuser@localhost identified by 'password';
Query OK, 0 rows affected (0.00 sec)

ユーザーの追加を有効に

mysql> flush privileges;
Query OK, 0 rows affected (0.02 sec)

データベース (mt3) を作成

mysql> create database mt3;
Query OK, 1 row affected (0.03 sec)

MySQLをログアウト

mysql> exit
Bye

mt-config.cgi を編集して設定

cd /Users/www/cgi-bin/mt
sudo cp -p mt-config.cgi-original mt-config.cgi
sudo vi /Users/www/cgi-bin/mt/mt-config.cgi

CGIPath と StaticWebPath をサイトの設定にあわせて書き換え、 MySQL 関係のところも先ほど作った DB にあわせる。 Postgres や SQLite の設定は全部コメントアウト。

あとは cgi ディレクトリに Web ブラウザでログインし、blog ディレクトリを設定する。 blog を作成して一丁上がり。

投稿者 gema : 2006年09月17日 18:32

トラックバック

このエントリーのトラックバックURL:
https://gema.luna2.org/cgi-bin/mt/mt-tb.cgi/7

コメント

コメントしてください




保存しますか?

(書式を変更するような一部のHTMLタグを使うことができます)