MT3.11-ja ダイナミックページのSQL/DB Error

dynamic page設定を行い、個別リンクをクリックするとダイナミックページにジャンプするはずが、エラー発生したときのメモ。

SQL/DB Error -- [
Error establishing a database connection!
Are you sure you have the correct user/password?
Are you sure that you have typed the correct hostname?
Are you sure that the database server is running?
SQL/DB Error -- [
Error selecting database ******!
Are you sure it exists?
Are you sure there is a valid database connection?
SQL/DB Error -- []
Error executing error template.

まず疑うのは mt-db-pass.cgi, mt.cfgのパーミッション。
Milano::Monolog: Movable Type 3.1 日本語版リリース


/mt/php/extlib/ezsql/ezsql_mysql.php: 49行目付近

$this->dbh = @mysql_connect($dbhost,$dbuser,$dbpassword);


print $dbhost, $dbuser, $dbpassword;

などを入れて、変数内容を表示させて設定したdb passwordが表示されればパーミッションが原因ではない。

Well, I was unable to solve the problem, but after some digging on Google, I installed MySql v4.0.22 instead of 4.1 and the problem went away. Other people described the problem as some sort of incompatibility between PHP & MySql & login methods - but I didn't really get into it.