<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 442: MariaDB installation problem</title><link href="https://sourceforge.net/p/openemr/bugs/442/" rel="alternate"/><link href="https://sourceforge.net/p/openemr/bugs/442/feed.atom" rel="self"/><id>https://sourceforge.net/p/openemr/bugs/442/</id><updated>2016-07-06T08:09:06.684000Z</updated><subtitle>Recent changes to 442: MariaDB installation problem</subtitle><entry><title>#442 MariaDB installation problem</title><link href="https://sourceforge.net/p/openemr/bugs/442/?limit=25#bb6e" rel="alternate"/><published>2016-07-06T08:09:06.684000Z</published><updated>2016-07-06T08:09:06.684000Z</updated><author><name>Brady Miller</name><uri>https://sourceforge.net/u/bradymiller/</uri></author><id>https://sourceforge.netac6ad9432409ee0b767bf07b045ed0bdd2a8502e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Agree that we should support UTF8MB4 (I am pretty sure UTF8 works for all languages including Chinese, but the extra bit in UTF8MB4 allows other characters such as emoticons etc.).&lt;/p&gt;
&lt;p&gt;We went through a similar process when converted from latin1 to UTF8 in OpenEMR 3.1.0 with some of the phpgacl table keys.&lt;/p&gt;
&lt;p&gt;-brady&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#442 MariaDB installation problem</title><link href="https://sourceforge.net/p/openemr/bugs/442/?limit=25#ccd0" rel="alternate"/><published>2016-07-05T14:57:33.668000Z</published><updated>2016-07-05T14:57:33.668000Z</updated><author><name>Rod Roark</name><uri>https://sourceforge.net/u/sunsetsystems/</uri></author><id>https://sourceforge.netb310b336f084508fe48a2318890e83df723e1a33</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Oh and I think it would be safe to make the selector much shorter, say 128 characters.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#442 MariaDB installation problem</title><link href="https://sourceforge.net/p/openemr/bugs/442/?limit=25#ee97" rel="alternate"/><published>2016-07-05T14:55:10.762000Z</published><updated>2016-07-05T14:55:10.762000Z</updated><author><name>Rod Roark</name><uri>https://sourceforge.net/u/sunsetsystems/</uri></author><id>https://sourceforge.net7c2c3261e83c3c6143b9e13e446ef8a8e73b93f9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I understand utf8mb4 is desirable for supporting languages like Chinese, Japanese and Korean.  Doubtless we should work towards that.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#442 MariaDB installation problem</title><link href="https://sourceforge.net/p/openemr/bugs/442/?limit=25#cfd4" rel="alternate"/><published>2016-07-05T12:03:49.405000Z</published><updated>2016-07-05T12:03:49.405000Z</updated><author><name>Oleg Sverdlov</name><uri>https://sourceforge.net/u/osverdlov/</uri></author><id>https://sourceforge.net7078d4b1685a5d4065f332202d78c7218172d822</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;Description has changed:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Diff:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="gd"&gt;--- old&lt;/span&gt;
&lt;span class="gi"&gt;+++ new&lt;/span&gt;
&lt;span class="gu"&gt;@@ -1,7 +1,7 @@&lt;/span&gt;
&lt;span class="gd"&gt;-On MariaDB issuing CREATE DATABASE openemr  uses  utf8mb4 character set by default. &lt;/span&gt;
&lt;span class="gi"&gt;+On MariaDB if the database was created without specifying charset (i.e. issuing CREATE DATABASE openemr) then the DB will use  utf8mb4 character set by default. &lt;/span&gt;
 Initial install fails with the following message:

 unable to execute SQL: 'CREATE TABLE `drug_templates` ( `drug_id` int(11) NOT NULL, `selector` varchar(255) NOT NULL default '', `dosage` varchar(10) default NULL, `period` int(11) NOT NULL default '0', `quantity` int(11) NOT NULL default '0', `refills` int(11) NOT NULL default '0', `taxrates` varchar(255) default NULL, PRIMARY KEY (`drug_id`,`selector`)) ENGINE=InnoDB' due to: **Specified key was too long; max key length is 767 bytes**

&lt;span class="gd"&gt;-Need to use utf8 charset to create the database&lt;/span&gt;
&lt;span class="gi"&gt;+Need to use utf8 charset to create the database, as automatic install does.&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry><entry><title>MariaDB installation problem</title><link href="https://sourceforge.net/p/openemr/bugs/442/" rel="alternate"/><published>2016-07-05T12:02:29.355000Z</published><updated>2016-07-05T12:02:29.355000Z</updated><author><name>Oleg Sverdlov</name><uri>https://sourceforge.net/u/osverdlov/</uri></author><id>https://sourceforge.net38340e1126fa9df9f60ec48c94edb6358b390d37</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 442 has been modified: MariaDB installation problem&lt;br/&gt;
Edited By: Oleg Sverdlov (osverdlov)&lt;br/&gt;
Description updated:&lt;br/&gt;
--- description-old&lt;/p&gt;
&lt;p&gt;+++ description-new&lt;/p&gt;
&lt;p&gt;@@ -1,8 +1,8 @@&lt;/p&gt;
&lt;p&gt;-On MariaDB issuing CREATE DATABASE openemr  uses  utf8mb4 character set by default. &lt;br/&gt;
+On MariaDB if the database was created without specifying charset (i.e. issuing CREATE DATABASE openemr) then the DB will use  utf8mb4 character set by default. &lt;br/&gt;
 Initial install fails with the following message:&lt;/p&gt;
&lt;p&gt;unable to execute SQL: 'CREATE TABLE &lt;code&gt;drug_templates&lt;/code&gt; ( &lt;code&gt;drug_id&lt;/code&gt; int(11) NOT NULL, &lt;code&gt;selector&lt;/code&gt; varchar(255) NOT NULL default '', &lt;code&gt;dosage&lt;/code&gt; varchar(10) default NULL, &lt;code&gt;period&lt;/code&gt; int(11) NOT NULL default '0', &lt;code&gt;quantity&lt;/code&gt; int(11) NOT NULL default '0', &lt;code&gt;refills&lt;/code&gt; int(11) NOT NULL default '0', &lt;code&gt;taxrates&lt;/code&gt; varchar(255) default NULL, PRIMARY KEY (&lt;code&gt;drug_id&lt;/code&gt;,&lt;code&gt;selector&lt;/code&gt;)) ENGINE=InnoDB' due to: &lt;strong&gt;Specified key was too long; max key length is 767 bytes&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;-Need to use utf8 charset to create the database&lt;br/&gt;
+Need to use utf8 charset to create the database, as automatic install does.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>MariaDB installation problem</title><link href="https://sourceforge.net/p/openemr/bugs/442/" rel="alternate"/><published>2016-07-05T12:02:29.355000Z</published><updated>2016-07-05T12:02:29.355000Z</updated><author><name>Oleg Sverdlov</name><uri>https://sourceforge.net/u/osverdlov/</uri></author><id>https://sourceforge.netbf4d1c7a0caefe1c2e47712c61bc78039827e766</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;On MariaDB issuing CREATE DATABASE openemr  uses  utf8mb4 character set by default. &lt;br/&gt;
Initial install fails with the following message:&lt;/p&gt;
&lt;p&gt;unable to execute SQL: 'CREATE TABLE &lt;code&gt;drug_templates&lt;/code&gt; ( &lt;code&gt;drug_id&lt;/code&gt; int(11) NOT NULL, &lt;code&gt;selector&lt;/code&gt; varchar(255) NOT NULL default '', &lt;code&gt;dosage&lt;/code&gt; varchar(10) default NULL, &lt;code&gt;period&lt;/code&gt; int(11) NOT NULL default '0', &lt;code&gt;quantity&lt;/code&gt; int(11) NOT NULL default '0', &lt;code&gt;refills&lt;/code&gt; int(11) NOT NULL default '0', &lt;code&gt;taxrates&lt;/code&gt; varchar(255) default NULL, PRIMARY KEY (&lt;code&gt;drug_id&lt;/code&gt;,&lt;code&gt;selector&lt;/code&gt;)) ENGINE=InnoDB' due to: &lt;strong&gt;Specified key was too long; max key length is 767 bytes&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Need to use utf8 charset to create the database&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>