<?xml version="1.0" encoding="UTF-8"?>
<article>
  <body>&lt;html&gt;
&lt;p&gt;&lt;small&gt;This article was migrated from http://rails.office.drecom.jp/hibi/archive/15&lt;/small&gt;&lt;/p&gt;&#27704;&#20037;&#12387;&#12390;&#26360;&#12365;&#26041;&#12364;&#12377;&#12372;&#12356;&#12391;&#12377;&#12364;&#12290;&lt;br /&gt;
&lt;br /&gt;
&#12450;&#12503;&#12522;&#12434;&#21205;&#12363;&#12375;&#12390;&#12427;&#12392;&#12289;&lt;br /&gt;
&lt;br /&gt;
&quot;Illegal mix of collations&lt;br /&gt;
 (latin1_swedish_ci,IMPLICIT) and &lt;br /&gt;
(sjis_japanese_ci,COERCIBLE) for operation '='&quot;&lt;br /&gt;
&lt;br /&gt;
&#12415;&#12383;&#12356;&#12394;&#12456;&#12521;&#12540;&#12364;&#20986;&#12390;&#12290;&#25991;&#23383;&#12467;&#12540;&#12489;&#12399;UTF8&#12392;swedish&#12394;&#12435;&#12383;&#12425;&#12384;&#12387;&#12383;&#12369;&#12393;&#12290;&lt;br /&gt;
&#12375;&#12383;&#12425;&#12289;take another step&#12373;&#12435;&#12364;&#23550;&#27770;&#12375;&#12390;&#12399;&#12387;&#12383;&#12290;&lt;br /&gt;
&lt;a href=&quot;http://dream.ie.ariake-nct.ac.jp/~naoyuki/archives/000041.php&quot; target=&quot;_blank&quot;&gt;http://dream.ie.ariake-nct.ac.jp/~naoyuki/archives/000041.php&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&#12388;&#12414;&#12426;&#12289;&lt;span style=&quot;font-weight: bold;&quot;&gt;&#12469;&#12540;&#12496;&#12392;&#12463;&#12521;&#12452;&#12450;&#12531;&#12488;&#12398;&#12467;&#12540;&#12489;&#12364;&#36949;&#12358;&lt;/span&gt;&#12392;&#12356;&#12358;&#12371;&#12392;&#12425;&#12375;&#12356;&#12391;&#12377;&#12290;&lt;br /&gt;
&#12405;&#12416;&#12290;&lt;br /&gt;
&lt;br /&gt;
mysql&#12398;&#12522;&#12501;&#12449;&#12524;&#12531;&#12473;&#12434;&#35519;&#12409;&#12427;&#12290;&#12375;&#12383;&#12425;&#12467;&#12524;&#12290;&lt;br /&gt;
&lt;a href=&quot;http://dev.mysql.com/doc/refman/5.0/en/charset-connection.html&quot; target=&quot;_blank&quot;&gt;http://dev.mysql.com/doc/refman/5.0/en/charset-connection.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
SET NAMES 'x'  &lt;br /&gt;
&lt;br /&gt;
&#12392;&#12375;&#12383;&#12425;&#12356;&#12356;&#12425;&#12375;&#12356;&#12290;&lt;br /&gt;
&#12391;&#12418;&#12371;&#12428;&#12384;&#12392;&#12450;&#12503;&#12522;&#12391;&#27598;&#22238;&#12375;&#12394;&#12367;&#12385;&#12419;&#12356;&#12369;&#12394;&#12356;&#12375;&#12290;&lt;br /&gt;
&#22823;&#20307;ruby&#12391;&#12393;&#12358;&#12377;&#12427;&#12398;&#12363;&#12424;&#12367;&#12431;&#12363;&#12425;&#12394;&#12356;&#12290;&lt;br /&gt;
&lt;br /&gt;
&#12381;&#12375;&#12383;&#12425;&#65281;&lt;br /&gt;
&#20808;&#12398;mysql&#12398;&#12522;&#12501;&#12449;&#12524;&#12531;&#12473;&#12398;&#12375;&#12383;&#12540;&#12540;&#12540;&#12398;&#12411;&#12358;&#12395;&lt;br /&gt;
N Bernhardt&#12373;&#12435;&#12364;&#12467;&#12513;&#12531;&#12488;&#12290;&lt;br /&gt;
--------------------------------------------------&lt;br /&gt;
Posted by N Bernhardt on August 17 2005 4:51pm&lt;br /&gt;
&lt;br /&gt;
To change the connection charset permanently to UTF-8, add the following line in the [mysqld] section:&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;[mysqld]&lt;br /&gt;
init-connect='SET NAMES utf8'&lt;br /&gt;
&lt;/span&gt;--------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&#12391;&#12289;&lt;span style=&quot;font-weight: bold;&quot;&gt;/etc/mysql/my.cnf&lt;/span&gt;&#12398;[mysqld]&#12398;&#12392;&#12371;&#12429;&#12395;init-&#8230;&#12434;&#36861;&#21152;&#12375;&#12414;&#12375;&#12383;&#12290;&lt;br /&gt;
show variables like 'character%';&lt;br /&gt;
show variables like 'collationr%';&lt;br /&gt;
&#12375;&#12390;&#12418;&#12420;&#12387;&#12401;&#12426;&#22793;&#25968;&#12398;&#20516;&#12399;&#22793;&#12431;&#12387;&#12390;&#12394;&#12356;&#12391;&#12377;&#12364;&#12289;&#12450;&#12503;&#12522;&#12434;&#36215;&#21205;&#12377;&#12427;&#12392;&#8230;&lt;br /&gt;
&#12354;&#12425;&#19981;&#24605;&#35696;&#65281;&#12385;&#12419;&#12435;&#12392;&#21205;&#12365;&#12414;&#12375;&#12383;&#65281;&lt;br /&gt;
&lt;br /&gt;
&#65288;&#12383;&#12384;&#12371;&#12428;&#12377;&#12427;&#12392;&#12411;&#12363;&#12398;&#12450;&#12503;&#12522;&#12392;&#12363;&#12391;UTF8&#12395;&#12375;&#12383;&#12367;&#12394;&#12356;&#12392;&#12365;&#12418;&lt;br /&gt;
UTF8&#12395;&#12394;&#12427;&#12398;&#12391;&#27880;&#24847;&#12387;&#12390;&#26360;&#12356;&#12390;&#12354;&#12426;&#12414;&#12375;&#12383;&#12290;&#12394;&#12398;&#12391;&#27880;&#24847;&#12391;&#12377;&#12290;)&lt;br /&gt;
&lt;br /&gt;
&#12392;&#12395;&#12363;&#12367;&#12420;&#12387;&#12383;&#12540;&#12540;&#12540;&#65281;&lt;br /&gt;
&#12356;&#12420;&#12418;&#12358;&#12394;&#12435;&#12391;&#12418;&#21021;&#24515;&#32773;&#12391;&#22823;&#22793;&#12391;&#12377;&#12290; &lt;a href=&quot;http://rails.office.drecom.jp/hibi/archive/15&quot;&gt;http://rails.office.drecom.jp/hibi/archive/15&lt;/a&gt;&lt;br /&gt;&lt;p&gt;&lt;small&gt;This article was migrated from http://rails.office.drecom.jp/hibi/archive/15&lt;/small&gt;&lt;/p&gt;
&lt;/html&gt;</body>
  <cached-tag-list></cached-tag-list>
  <comments-count type="integer">0</comments-count>
  <created-at type="datetime">2006-06-05T15:37:00+00:00</created-at>
  <daily-archive-id type="integer">179</daily-archive-id>
  <filter-type>blue_stole</filter-type>
  <id type="integer">154</id>
  <monthly-archive-id type="integer">22</monthly-archive-id>
  <pdf-digest nil="true"></pdf-digest>
  <permalink>/hibi/archive/15</permalink>
  <published-at type="datetime">2006-06-05T15:37:00+00:00</published-at>
  <secret>6ba17445-2a30-41cb-b985-a98b306a4e64</secret>
  <title>MYSQL&#12408;&#12398;&#25509;&#32154;&#12434;&#27704;&#20037;UTF8&#21270;&#65306;Illegal mix of collations&#12288;</title>
  <updated-at type="datetime">2008-10-22T20:08:18+00:00</updated-at>
  <user-id type="integer">3</user-id>
</article>
