Support

Admin Tools

#15102 change database collation falls back to utf8_general_ci

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 nicholas on Thursday, 21 February 2013 14:05 CST

formfranska

Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages? Chapter 2. Using Admin Tools, Changing your database collation)? Yes
Have I searched the tickets before posting? Yes
Have I read the documentation before posting (which pages?Chapter 2. Using Admin Tools, Changing your database collation, https://www.akeebabackup.com/home/news/56-releases/1074-admintools-2-0.html About the bug fix: "Changing the database prefix and collation would not work on MySQL 4.1 hosts. Disabled these features for MySQL versions earlier than 5.0.")? Yes
Joomla! version: (5.2.9)
PHP version: (5.3.13)
MySQL version: (5.1.66-cll-lve)
Host: (oderland.se)
Admin Tools version: (2.4.4)

Info from phpMyAdmin:

DATABASE SERVER
Server: Localhost via UNIX socket
Software: MySQL
Software version: 5.1.66-cll-lve - MySQL Community Server (GPL) (Cloud Linux Jan 17 2013 09:52:24)
Protocol version: 10
User:
Server charset: UTF-8 Unicode (utf8)

WEBSERVER
cpsrvd 11.34.1.7
Database client version: libmysql - 4.1.22
PHP extension: mysql Documentation

Description of my issue:

In AT when trying to use "Change Database Collation" I select utf8_swedish_ci and then I press Apply. I get the confirmation message "Database collation changed" but the dropdown selection menu has popped back to utf8_general_ci again and also when I browse the site, menu with alphabetical order I can confirm that it hasn't worked. Also in phpMyAdmin it says utf8_general_ci under Server connection collation and also for all the tables in the database.

What do you think I'm doing wrong? I'd so much prefer to use the AT feature to change the collation from utf8_general_ci to utf8_swedish_ci because I really don't know exactly what I'm doing when in phpMyAdmin :-)

nicholas
Akeeba Staff
Manager

This actually means that your host doesn't allow you to change the database collation. You have to contact your host.

Please note that whenever you go to the "Change Database Collation" page the utf8_general_ci is always selected by default. This happens because there is no failsafe way to read the existing database collation. So I decided to just pre-select what works for 99% of sites.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

formfranska

Yes, I understood that utf8_general_ci is default but after I've selected utf8_swedish_ci and pressed Apply I do get the confirmation message that it has changed (please see the screen shot attached) but at the same time it pops back to utf8_swedish_ci by itself.

I just called my host and they say there are no restrictions for me to change my own databases (collation or otherwise). In fact they also tried it because they had AT installed as well. They tried it on 2 different Joomla installs and the same thing happened at their side...

Also, I do have my db user configured with all previleges (please see the screen shot attached).

Sorry about this Nicholas :-) Would you have any more suggestions?

nicholas
Akeeba Staff
Manager

Congrats, Anna, you discovered a bug that went unnoticed for over a year :) I have fixed it in the latest dev release. Would you mind installing it and testing it?

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

formfranska

Oh, for once in my life ! :-)

OK, I've installed Admin Tools version rev87AACD3. Now the articles are sorted in the right order, even with Swedish characters å ä ö !

Then my intention was to confirm this by checking in phpMyAdmin... And that's weird (at least to me) cause as far as I can se it says utf8_general_ci in every table except down at the bottom in the "Sum row" where it says utf8_swedish_ci. I attached a screen shot again in case...

But maybe it should be like that. Anyway the sorting of articles on the website works fine now :-)

So this was also my first time installing an alpha. When you have released the stable I can just upgrade as usual "on top of" that one, right?

nicholas
Akeeba Staff
Manager

This feature in Admin Tools is supposed to change the database collation and the collation of the table columns, but not tables themselves (dragons lurk ahead).

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

formfranska

Aha, I definitely need to learn about MySQL databases (I'm a complete novice :-)

Thank you so much for fixing this issue. I was thinking it's weird that nobody missed this feature (and discovered the bug) for so long but I think that many users of AT just have no idea about all the features available... I've just started to discover (and dare to use :-) several of them lately and I'm so so pleased!

Greetings

nicholas
Akeeba Staff
Manager

In most languages the utf8_general_ci is perfect and follows the language ordering rules set forth in each country. Things start get funky with umlauts. The default behaviour is the German sorting but northern European languages beg to seriously differ. That's why you needed to change the collation. Apparently you're the first person to care about proper Swedish language sorting. It happens :)

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
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!