Bug #18561
closedError when creating Database in Version 4.2.0RC1
0%
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
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
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.
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
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
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