Welcome Guest!

If you do not have an account yet on The Web Squeeze forums, please Register! It’s FREE and there are many benefits:

  • Receive Fast Advice
  • Learn Programming Languages
  • Get Professional Website Reviews
  • Quick Troubleshooting Assistance

> Error 1271: Illegal Mix Of Collations

This is a discussion on Error 1271: Illegal Mix Of Collations, within the MySQL section. This forum and the thread "Error 1271: Illegal Mix Of Collations" are both part of the Programming Your Website category.

 
Reply to this topicStart new topic
> Error 1271: Illegal Mix Of Collations, Annoying problems prevents popular forum from indexing search topics
HitByLife
post Jul 24 2008, 09:48 AM
Post #1


Fresh Squeezed
**

Posts: 24
Joined: 4-March 08
From: Marbella


I don't know if anyone here runs phpbb3 on any site, or has recently converted from phpbb2. I have, but the conversion did not run all that smoothly.

When upgrading from phpbb2 to phhbb3 you have to convert the database, there is a tool that does that for you. After the conversion is complete, you have to re-index the posts so that the forum will be searchable. In my case this does not work as the process halts and I get the following error:

CODE
Error 1271: Illegal mix of collations


Then a number of search words are listed.

This is annoying as it leaves the forum partly unsearchable. Posts created after the conversion have been indexed, but searching for anything older than that is really hit and miss. Anyone knows what to do here?

I realized that for some reason the character set in the database was "latin1_swedish_ci" and when checking with the host they told me the default character set on the server is "utf8." I have tried to change the collation database wide to utf8, but many tables still show as latin1_swedish_ci." Does this have anything to do with it?

I also thought of deleting the listed search words that appear witht the error message, but I haven't gotten around to do it as I am not sure how to delete them from the database.

Help is much appreciated (and can be remunerated, if I am allowed to say that here).
Go to the top of the page
 
+Quote Post
Rakuli
post Aug 11 2008, 04:45 AM
Post #2


Squeeze Machine
Group Icon

Posts: 766
Joined: 13-February 08
From: Catching the squeezed drips downunder.


If the collation was originally lastin1_swedish and now utf8 -- you will need to run queries, or go through the database with a tool like phpmyadmin, and change any tables on the old collation to utf8. (In phpmyadmin you can select the table and click edit to change things like this)


--------------------
Luke Dingle . com

Turn Over a Playful Leaf on Web Design -- read about the javascript cat
Go to the top of the page
 
+Quote Post
If you found The Web Squeeze to be helpful, please donate so we can keep this site FREE, FRESH, and fortified with Web Design & Development info!
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   5 Blake121 282 15th February 2008 - 09:41 AM
Last post by: Blake121
No New Posts   4 Sleaklight 283 15th February 2008 - 03:25 PM
Last post by: Marc
No New Posts   9 PoetAlley 396 17th February 2008 - 06:27 PM
Last post by: PoetAlley
No New Posts   3 mcdanielnc89 340 23rd February 2008 - 08:14 AM
Last post by: Marc
No new   14 JustinStudios 368 17th March 2008 - 12:04 AM
Last post by: Monie