コメントありがとうございます。 申し訳ございません。 10年近い前の記事と言うこ…
moduleをインストールするときに‘TYPE=MyISAM’でコケる
php5.5系にXOOPSのmoduleをインストールしようとすると以下のエラーが発生
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘TYPE=MyISAM’ at line XXX
MySQL5.5では、TYPE=MyISAMが無効になっているのが原因
解決策
class/database/sqlutility.phpを書き換える
public static function splitMySqlFile(&$ret, $sql)
{
// 次の1行を追加
$sql = str_replace('TYPE=MyISAM','ENGINE=MyISAM',$sql);
$sql = trim($sql);
検索

コメントを残す