<![CDATA[ Execution of a query to the database failed - Illegal mix of collations - MODX Community Forums]]> https://forums.modx.com/thread/?thread=33342 <![CDATA[Re: Execution of a query to the database failed - Illegal mix of collations]]> https://forums.modx.com/thread/33342/execution-of-a-query-to-the-database-failed---illegal-mix-of-collations#dis-post-183403 _______________


I’ve made a new database, changed collation first and then reinstall modx to it. Now everything is ok smiley

Thank you!

Alex]]>
a_lex Sep 06, 2009, 06:40 PM https://forums.modx.com/thread/33342/execution-of-a-query-to-the-database-failed---illegal-mix-of-collations#dis-post-183403
<![CDATA[Re: Execution of a query to the database failed - Illegal mix of collations]]> https://forums.modx.com/thread/33342/execution-of-a-query-to-the-database-failed---illegal-mix-of-collations#dis-post-183402 Quote from: OpenGeek at Sep 06, 2009, 03:44 PM

MySQL 5 what? There are countless versions of MySQL 5.


5.0.45]]>
a_lex Sep 06, 2009, 06:14 PM https://forums.modx.com/thread/33342/execution-of-a-query-to-the-database-failed---illegal-mix-of-collations#dis-post-183402
<![CDATA[Re: Execution of a query to the database failed - Illegal mix of collations]]> https://forums.modx.com/thread/33342/execution-of-a-query-to-the-database-failed---illegal-mix-of-collations#dis-post-183401 Quote from: OpenGeek at Sep 06, 2009, 03:44 PM

I’d check your database container’s collation and the collations of the tables in it. It seems as though they are not set properly.

How can I make this correct? What collation would I set there?]]>
a_lex Sep 06, 2009, 06:09 PM https://forums.modx.com/thread/33342/execution-of-a-query-to-the-database-failed---illegal-mix-of-collations#dis-post-183401
<![CDATA[Re: Execution of a query to the database failed - Illegal mix of collations]]> https://forums.modx.com/thread/33342/execution-of-a-query-to-the-database-failed---illegal-mix-of-collations#dis-post-183400 Quote from: OpenGeek at Sep 06, 2009, 03:44 PM

MySQL 5 what? There are countless versions of MySQL 5.

What do you mean?

Regardless, the problem is as the error states, you have an illegal mixture of collations. I’d check your database container’s collation and the collations of the tables in it. It seems as though they are not set properly.

So how can I fix that?
Sorry, I am not so good in coding]]>
a_lex Sep 06, 2009, 01:34 PM https://forums.modx.com/thread/33342/execution-of-a-query-to-the-database-failed---illegal-mix-of-collations#dis-post-183400
<![CDATA[Re: Execution of a query to the database failed - Illegal mix of collations]]> https://forums.modx.com/thread/33342/execution-of-a-query-to-the-database-failed---illegal-mix-of-collations#dis-post-183399
Regardless, the problem is as the error states, you have an illegal mixture of collations. I’d check your database container’s collation and the collations of the tables in it. It seems as though they are not set properly.]]>
opengeek Sep 06, 2009, 10:44 AM https://forums.modx.com/thread/33342/execution-of-a-query-to-the-database-failed---illegal-mix-of-collations#dis-post-183399
<![CDATA[Re: Execution of a query to the database failed - Illegal mix of collations]]> https://forums.modx.com/thread/33342/execution-of-a-query-to-the-database-failed---illegal-mix-of-collations#dis-post-183398 Quote from: garryn at Sep 05, 2009, 11:58 PM

What version of MySQL are you running?

I use MySQL 5. I also have there MSSQL 2005.

In this error there was also this text:
SQL: SELECT `fridayca_f`.`fridaycat_site_templates`.templatename as name, `fridayca_f`.`fridaycat_site_templates`.id, `fridayca_f`.`fridaycat_site_templates`.description, `fridayca_f`.`fridaycat_site_templates`.locked, if(isnull(`fridayca_f`.`fridaycat_categories`.category),’Без категории’,`fridayca_f`.`fridaycat_categories`.category) as category FROM `fridayca_f`.`fridaycat_site_templates` left join `fridayca_f`.`fridaycat_categories` on `fridayca_f`.`fridaycat_site_templates`.category = `fridayca_f`.`fridaycat_categories`.id ORDER BY 5,1]]>
a_lex Sep 06, 2009, 04:14 AM https://forums.modx.com/thread/33342/execution-of-a-query-to-the-database-failed---illegal-mix-of-collations#dis-post-183398
<![CDATA[Re: Execution of a query to the database failed - Illegal mix of collations]]> https://forums.modx.com/thread/33342/execution-of-a-query-to-the-database-failed---illegal-mix-of-collations#dis-post-183397
]]>
sottwell Sep 06, 2009, 03:40 AM https://forums.modx.com/thread/33342/execution-of-a-query-to-the-database-failed---illegal-mix-of-collations#dis-post-183397
<![CDATA[Re: Execution of a query to the database failed - Illegal mix of collations]]> https://forums.modx.com/thread/33342/execution-of-a-query-to-the-database-failed---illegal-mix-of-collations#dis-post-183396
Warning: Cannot modify header information - headers already sent
]]>
Everettg_99 Sep 05, 2009, 09:53 PM https://forums.modx.com/thread/33342/execution-of-a-query-to-the-database-failed---illegal-mix-of-collations#dis-post-183396
<![CDATA[Re: Execution of a query to the database failed - Illegal mix of collations]]> https://forums.modx.com/thread/33342/execution-of-a-query-to-the-database-failed---illegal-mix-of-collations#dis-post-183395 garryn Sep 05, 2009, 06:58 PM https://forums.modx.com/thread/33342/execution-of-a-query-to-the-database-failed---illegal-mix-of-collations#dis-post-183395 <![CDATA[Execution of a query to the database failed - Illegal mix of collations]]> https://forums.modx.com/thread/33342/execution-of-a-query-to-the-database-failed---illegal-mix-of-collations#dis-post-183394
I have installed v 1.0.0

After this I tried to create the new template and there was such an error appeared:

Warning: Cannot modify header information - headers already sent by (output started at /var/sites/f/fridaycat.com/public_html/fridaycat/manager/includes/header.inc.php:6) in /var/sites/f/fridaycat.com/public_html/fridaycat/manager/includes/document.parser.class.inc.php on line 2730
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« Execution of a query to the database failed - Illegal mix of collations (utf8_general_ci,COERCIBLE) and (latin1_swedish_ci,IMPLICIT) for operation ’if’ »


Can you help me with this?
Thank you!

Alex]]>
a_lex Sep 05, 2009, 05:35 PM https://forums.modx.com/thread/33342/execution-of-a-query-to-the-database-failed---illegal-mix-of-collations#dis-post-183394