Project

General

Profile

Actions

Bug #18561

closed

Error when creating Database in Version 4.2.0RC1

Added by Erwin Hontheim over 16 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Install Tool
Target version:
-
Start date:
2008-04-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When doing the compare database (update as well as installing doing an fresh installation) the following error occurs:

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /homepages/30/d155523077/htdocs/typo3cms/typo3_src-4.2.0RC1/t3lib/class.t3lib_db.php on line 1047

The refered script from line 1034 - 1052 shows the following code:
/** * Returns information about the character sets supported by the current DBM * This function is important not only for the Install Tool but probably for DBALs as well since they might need to look up table specific information in order to construct correct queries. In such cases this information should probably be cached for quick delivery. * * This is used by the Install Tool to convert tables tables with non-UTF8 charsets * Use in Install Tool only! * * @return array Array with Charset as key and an array of "Charset", "Description", "Default collation", "Maxlen" as values
*/
function admin_get_charsets() {
$output = array();

$columns_res = mysql_query('SHOW CHARACTER SET', $this->link);
while ($row = mysql_fetch_assoc($columns_res)) {
$output[$row['Charset']] = $row;
}
return $output;
}

After the first compare all tables are installed but the following statements are left open:
ALTER TABLE cache_hash ENGINE=InnoDB;
Current value: ENGINE=
(over all 8 statements like the one above)

Clicking on Update doesn't solve the problem. It stays unchanged.

Taking a look into the database via phpmyadmin the tables, for example the above mentioned table cach_hash, shows that the engine has been set to InnoDB.

MySQL 4.0
PHP 5.2.7

Install-Tool
2: Database Analyser
Compare

Settings in 5: All Configuration
UTF8-filesystem yes
TTFLocaleConv = utf-8
setDBinit = SET NAMES utf-8; SET CHARACTER SET utf-8;
(issue imported from #M8018)


Files

warning.gif (16.2 KB) warning.gif Administrator Admin, 2008-04-16 10:53
innodb.gif (14.8 KB) innodb.gif Administrator Admin, 2008-04-16 10:53
installing_extension.gif (25.7 KB) installing_extension.gif Administrator Admin, 2008-04-16 10:57
Actions #1

Updated by Erwin Hontheim over 16 years ago

As before with bug #18433 the same warning returns when installing an extension, for example indexed_search

Actions #2

Updated by Ingo Renner over 16 years ago

can't confirm

Actions #3

Updated by Erwin Hontheim over 16 years ago

But I can confirm it all day long. See uploaded screen shots.

Did you test it with the same constellation, i.e. MySQL4.0

I digged a bit deeper into the MySQL Reference and found the comment:

SHOW CHARACTER SET is available as of MySQL 4.1.0.

Which definetely means: Installation with MySQL 4.0.x will FAIL.

Actions #4

Updated by Christian Brunner over 16 years ago

why don't you update your mysql installation? mysql 4.0 is really old...

btw.: what is php 5.2.7? the latest version is 5.2.6RC5

Actions #5

Updated by Erwin Hontheim over 16 years ago

"why don't you update your mysql installation? mysql 4.0 is really old..."

I would if I could ...

It's a managed server.

Nevertheless. Installations with MySQL are not unusual

By the way: It's PHP 5.2.5

Actions #6

Updated by Ingo Renner over 16 years ago

won't fix as MySQL 4.0 is not supported anymore - not even from MySQL itself. For TYPO3 4.2 you need at least MySQL 4.1

Actions

Also available in: Atom PDF