Closed (fixed)
Project:
Drupal core
Version:
4.7.0-beta4
Component:
mysql database
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Jan 2006 at 23:07 UTC
Updated:
27 Feb 2006 at 11:48 UTC
Jump to comment: Most recent file
Comments
Comment #1
agentrickardIt gets worse. When I logged out, I can no longer log back in. When I try, I get:
Comment #2
agentrickardRunning MYSQL 4.1.13. I tried dropping the drupal database and re-installing with utf8_general_ci collation.
Under that setup, I am able to login after creating the first account. But if I try to edit my account, I get this errror:
When I logout after this, I can no longer login with either my original Drupal-defined password, or my new, user-defined password.
QUESTIONS:
What is the proper COLLATION of the core Drupal database table in MySQL?
Is this whole issue Drupal-related or PEBKAC?
Comment #3
andyb commentedI had the exact same problem, but it looks like there's a fix.
For me, I had a 4.7.0-beta3 running. After deploying 4.7.0-beta4 I was getting the exact same collation errors. After visiting http://my.site/update.php and running the database update script everything was fine again. There are a large number of ALTER TABLE statements that reset the default character set to utf8 on the Drupal tables.
Not sure if it helps you, but maybe it would be worth downloading the official -beta4 release and running the update script.
Comment #4
moshe weitzman commentedComment #5
(not verified) commentedComment #6
jsaints commentedI found this same error in drupal 4.7 beta 4. I developed a website on a server (ubuntu breezy) that uses mysql 4.0.x. When I moved the site to a Fedora (core 4) server running mysql 4.1.11 I encounter the error
Attached is a patch that fixes the problem. Seems we need to explicitly set the encoding to utf8 with a query. I found the solution in the php Gallery2 wiki at http://codex.gallery2.org/index.php/Gallery2:InstallationErrors
I have heard rumors that mysql 4.1.13 fixes this issue. but I do not have an installation available for testing.
Comment #7
bryansd commentedI'm sorry for possibly reopening this with the wrong logic, but I have concerns if the problem is not that fact that we are forcing UTF8. I just upgraded Drupal from MySQL 3.23 to 4.1.15-1 and I'm having problems in 4.7 Beta 4. Another site at 4.6.5 is perfectly fine with everything in latin1_swedish_ci .
Here is the concern for me...on the same server I'm running both Wordpress and SMF and neither of these applications were affected by my upgrade of MySQL. As far as I can tell they just go with the default collation of latin1_swedish_ci.
I was up late last night so the memory may be screwy...but I thought I read somewhere that the forcing of UTF8 was introduced because there was a problem with someone not being able to import a database from backup due to the collation change from UTF8 to latin1_swedish_ci in MySQL. If code was introduced to deal with this issue that forces the UTF8...maybe it's not appropriate within the Drupal core. There is a big assumption that collation will always be UTF8 and something about forcing the collation isn't sitting well with me.
Ok I'm not quite sure what I'm talking about and I'm rambling so I'll shut up. I let someone either correct me and close this issue again or be nudged to my way of thinking.
-Bryan
Comment #8
puregin commentedSeems like Drupal (and every other sane software :) is moving to UTF8 throughout. Having a standard is good. If someone has a great reason for moving to some other charset, they can always do so. So, I'm happy with this approach.
I believe that jsaint's patch actually addresses a different ('though of course is is related) issue from the one that this report opened with (the original issue dealt with different collations in different tables, an internal inconsistency, while the issue jsaints reports has a different error message - inconsistency between the charset for tables and the connection)
So... I'm marking this again as closed - please open a new issue if required.
Comment #9
dobson commentedFor those who are searching about and have come across this thread: Something that I had not been able to find before on the forums.
Drupal (4.7b4) was working perfectly, no collation errors, except in my own query string, created and executed from my module.
My query was using LOWER() as part of the SQL, and I was receiving the same error message, a clash between utf8_general_ci and latin1_swedish_ci. It seems that removing the LOWER() fixed the issue, and I believe that LOWER() is not supported for one of these collations. Still a little bewildered, but at least I can now eat my SQL.