Support

Admin Tools

#19767 change database collation

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by tampe125 on Monday, 07 April 2014 04:25 CDT

user59703
I have some components with database collation hungarian and I had some problems with mixed collations so I decided to change all of them to UTF8_general_ci. First time I had serious problems because I received erorr messages such as mixed collation and I could not even get back my backend so I had to modify manually some database tables's collation. Finally the error disappeared but still some tables had the hungarian collation so Idecided to continue and try againto change the database collation. This time I receive this error.

1062 Duplicate entry 'sort' for key 'idx_term' SQL=ALTER TABLE `dzsum_finder_terms` MODIFY COLUMN `term` varchar(75) NOT NULL COLLATE utf8_general_ci, MODIFY COLUMN `stem` varchar(75) NOT NULL COLLATE utf8_general_ci, MODIFY COLUMN `soundex` varchar(75) NOT NULL COLLATE utf8_general_ci, MODIFY COLUMN `language` char(3) NOT NULL DEFAULT '' COLLATE utf8_general_ci, DEFAULT CHARACTER SET UTF8 COLLATE utf8_general_ci

What could be the problem?
Apparently my site works OK.

Thanks.
Zoltán

tampe125
Akeeba Staff
Hello Zoltán,

can you please try emptying your #__finder_* tables, change their collation and then re-index your site again?
Their content is volatile, so you won't lose any data.

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user59703
Hi Davide,

I will try it during weekend and return to you with the results. I am not familiar with the databases therefore I may need a little more detailed help.
- I guess emptying the tables is not so complicated =I should not delete the tables only their contents?
- to change their collation I can do it
- but I do not know certainly how to re-index my site?

Thank you.
Zoltán

tampe125
Akeeba Staff
To empty your tables you have to connect to your database, usually hosts offer phpMyAdmin to do that.
Then you have to select all the tables that have the word _finder_ inside that and select the option TRUNCATE.
In this way you will delete all the content, but not the table.

If you have some problems you should contact your host for support.
In this page you can find all you info you need to enable the finder again.

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user59703
Hi Davide,

I did what you proposed. I could change collation as I wanted and finally got green message with successful change. Thank you. Almost everything is fine but one error message. When I try to index the site I receive an "Undefined undefined null" message. I suppose this has nothing to do with Admintools. You may close this topic as solved, nevertheless if you have any idea what could be now the problem I would appreciate it.

Thank you again for fast and efficient support.
Zoltán

tampe125
Akeeba Staff
You're welcome Zoltàn!

Sadly I can't help you with the error message you got, since that's a Joomla issue ;(

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user59703
All right, no problem. Thanks again. You may close this issue as solved.

Zoltán

tampe125
Akeeba Staff
You're welcome!

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!