IMHO MySQL v4.1 is not a major upgrade from v3 or even v4.0 but its major pain in the @$$..
Well, anyway, after upgrading I've noticed that database size in ACP shows
n/a After investigation I found out that some database "variables" for tables in v4.1 has been changed. One of them is "Type" parameter that used to determin what type of table is it (MyISAM, ISAM, HEAP, InnoDB, etc). As of v4.1 this "variable" was renamed to "Engine" which makes 4images ignore it and show "n/a" instead.
The fix is very simple, in includes/db_utils.php find:
if (eregi('^(MyISAM|ISAM|HEAP|InnoDB)$', $row['Type'])) {
Replace with:
if ((isset($row['Type']) && eregi('^(MyISAM|ISAM|HEAP|InnoDB)$', $row['Type'])) || (isset($row['Engine']) && eregi('^(MyISAM|ISAM|HEAP|InnoDB)$', $row['Engine']))) {
This fix should not affect any other versions of MySQL.
P.S.
Also some people may see some error messages such as:
Notice: Undefined index: Type in /path/to/4images/includes/db_utils.php on line 184
this fix should solve it too.