[TYPO3-german] mySQL Error bei der Installation von Apache solr (2.9.0-dev)

Felix admin at feelx.net
Thu Mar 28 13:34:51 CET 2013


Am 28.03.2013 10:14, schrieb Olivier Dobberkau:
 > War das dann kein Solr Problem?
 >
 > Olivier
 >
Hallo Oliver

Nein im Install-Tool  (oder localconf.php) ist folgende Option:
 > [multiplyDBfieldSize]
 > Double: 1-5: Amount used to multiply the DB field size when the 
install tool is evaluating the database size (eg. "2.5"). This is only 
useful e.g. if your database is ISO-8859-1 encoded but you want to use 
UTF-8 for your site. For Western European sites using UTF-8 the need 
should not be for more than twice the normal single-byte size (2) and 
for Chinese / Asian languages 3 should suffice. NOTICE: It is 
recommended to change the native database charset instead! (see TYPO3 
wiki: UTF-8 support for more information). NOTICE: This option is 
deprecated since TYPO3 4.5, and will not be used anymore in 4.7+. Please 
use proper tools to set your installation to native UTF-8.

Als ich irgendwann zwischen v4.2 und v4.4 auf UTF8 umstellte, habe ich 
diesen Wert auf 2.5 erhöht und dies schlicht vergessen :(
In der ext_tables.sql von solr werden verschiedene Felder als Key 
angelegt mit Feldtyp varchar. Keyword, z.b. als Varchar(250). 
Multipliziert mit 2,5 ergibt sich eine Feldgrösse von 625. TYPO3 machte 
daraus also automatsich Feldtyp TEXT. Wodurch MySQL natürlich nachher 
den 1170er Fehler geschmissen hat.

multiplyDBfieldSize = 1 hat das Problem gelöst und solr wurde mit den 
vorgesehenen Feldgrössen installiert (und funktioniert wunderbar!).

Wie oben steht ist diese Funktion in TYPO3 v4.7 ohnehin nicht mehr 
vorhanden. Installationen mit Version 4.5 können aber unter Umständen 
von diesem Problem noch betroffen sein.

Danke nochmals für Eure Hilfe. An dieses "multiplyDBfieldSize" habe ich 
gar nicht gedacht.

lg
Felix


More information about the TYPO3-german mailing list