# The problem of migration from MySQL 5.5 to Percona 5.6

**URL:** https://forums.percona.com/t/the-problem-of-migration-from-mysql-5-5-to-percona-5-6/4245
**Category:** Other MySQL® Questions
**Created:** [May 31, 2015, 9:20am UTC](https://forums.percona.com/t/the-problem-of-migration-from-mysql-5-5-to-percona-5-6/4245 "2015-05-31T09:20:22Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Ivan\_D](https://avatars.discourse-cdn.com/v4/letter/i/c57346/32.png) [@Ivan\_D](https://forums.percona.com/u/Ivan_D)
#### Post date: [May 31, 2015, 9:20am UTC](https://forums.percona.com/t/the-problem-of-migration-from-mysql-5-5-to-percona-5-6/4245/1 "2015-05-31T09:20:22Z")

</div>

I read as how wonderful Percona server and decided to migrate to it.  
From MySQL Server 5.5.43 to Percona Server 5.6.24-72.2 on CentOS 6.6 x86 (Linux 2.6.32-042stab108.2 on i686)  
But osTicket and Piwik stopped working, showing error:  
ERROR 1071 (42000) at line 49: Specified key was too long; max key length is 768 bytes  
I read that the following parameters have to help, but in vain  
innodb\_large\_prefix = 1 & innodb\_file\_format = Barracuda & innodb\_file\_per\_table = 1  
Full configuration file in the attachment.  
Please help, I do not want to go back to MySQL.  
Best regards, Ivan

[my.cnf.zip](https://forums.percona.com/uploads/short-url/hG0zFtxnBOR4k2sEBRvFHOiw95s.zip) (869 Bytes)

---

<div class="post-metadata">

### Author: ![scott.nemes](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/scott.nemes/32/5_2.png) [@scott.nemes](https://forums.percona.com/u/scott.nemes)
#### Post date: [May 31, 2015, 11:32am UTC](https://forums.percona.com/t/the-problem-of-migration-from-mysql-5-5-to-percona-5-6/4245/2 "2015-05-31T11:32:02Z")

</div>

Hi Ivan\_D;

The innodb\_large\_prefix option only applies to InnoDB Barracuda tables with a row\_format of DYNAMIC or COMPRESSED, so that is probably why you are still getting the error. So if that is the case (you can verify by doing a SHOW TABLE STATUS on your table(s)), then you just need to run an ALTER TABLE on your table(s) to set the file format to Barracuda and row\_format to either DYNAMIC or COMPRESSED.

See the below link for information about both row formats:  
[URL=“[http://dev.mysql.com/doc/refman/5.6/en/innodb-row-format-dynamic.html](http://dev.mysql.com/doc/refman/5.6/en/innodb-row-format-dynamic.html)”][http://dev.mysql.com/doc/refman/5.6/...t-dynamic.html[/URL]](http://dev.mysql.com/doc/refman/5.6/...t-dynamic.html%5B/URL%5D)

Limits (see third bullet under maximums and minimums):  
[URL=“[http://dev.mysql.com/doc/refman/5.6/en/innodb-restrictions.html](http://dev.mysql.com/doc/refman/5.6/en/innodb-restrictions.html)”][http://dev.mysql.com/doc/refman/5.6/...trictions.html[/URL]](http://dev.mysql.com/doc/refman/5.6/...trictions.html%5B/URL%5D)

-Scott

---

<div class="post-metadata">

### Author: ![Ivan\_D](https://avatars.discourse-cdn.com/v4/letter/i/c57346/32.png) [@Ivan\_D](https://forums.percona.com/u/Ivan_D)
#### Post date: [May 31, 2015, 12:11pm UTC](https://forums.percona.com/t/the-problem-of-migration-from-mysql-5-5-to-percona-5-6/4245/3 "2015-05-31T12:11:06Z")

</div>

Thanks for the answer, Scott  
I’m not a programmer and do not fully understand what you mean.  
Tell that to add in my.cnf that would work like MySQL, because there a problem after migrating to Percona

---

<div class="post-metadata">

### Author: ![scott.nemes](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/scott.nemes/32/5_2.png) [@scott.nemes](https://forums.percona.com/u/scott.nemes)
#### Post date: [May 31, 2015, 8:05pm UTC](https://forums.percona.com/t/the-problem-of-migration-from-mysql-5-5-to-percona-5-6/4245/4 "2015-05-31T20:05:45Z")

</div>

Hi Ivan\_D;

Run:

ALTER TABLE ROW\_FORMAT=COMPRESSED;

That will set the table’s row\_format to compressed, and if you have Barracuda as the default innodb\_file\_format as listed above, then it should work. After that see if you get the same error.

-Scott

---

<div class="post-metadata">

### Author: ![Ivan\_D](https://avatars.discourse-cdn.com/v4/letter/i/c57346/32.png) [@Ivan\_D](https://forums.percona.com/u/Ivan_D)
#### Post date: [June 1, 2015, 1:06pm UTC](https://forums.percona.com/t/the-problem-of-migration-from-mysql-5-5-to-percona-5-6/4245/5 "2015-06-01T13:06:24Z")

</div>

I’m trying to reinstall Piwik on clean database using the wizard. There is no table in the database. But I get an error.  
Maybe I should set compressed behavior as default behavior of current database or server generally ? [ATTACH=CONFIG]n39457[/ATTACH]  
P.S. I tried to create base in UTF8 and LATIN1 character

 ![install.jpg](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/2/230d62781339b765a95403fa34d2df8e3fce6c9b.jpeg)

---

<div class="post-metadata">

### Author: ![scott.nemes](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/scott.nemes/32/5_2.png) [@scott.nemes](https://forums.percona.com/u/scott.nemes)
#### Post date: [June 1, 2015, 4:30pm UTC](https://forums.percona.com/t/the-problem-of-migration-from-mysql-5-5-to-percona-5-6/4245/6 "2015-06-01T16:30:23Z")

</div>

Hi Ivan\_D;

Ah, did not realize this was a fresh installation. Doing some Google searching, it appears this is a common issue with that application and MySQL 5.6. What I would do is modify the schema config that comes with the application so that it will load the tables properly. To do that, it looks like you can edit the file:

/piwik/core/Db/Schema/Mysql.php

In there add ROW\_FORMAT=DYNAMIC or ROW\_FORMAT=COMPRESSED to each one of the CREATE TABLE statements before the ENGINE piece, like:[

```auto

$tables = array(
'user' => "CREATE TABLE {$prefixTables}user (
login VARCHAR(100) NOT NULL,
password CHAR(32) NOT NULL,
alias VARCHAR(45) NOT NULL,
email VARCHAR(100) NOT NULL,
token_auth CHAR(32) NOT NULL,
superuser_access TINYINT(2) unsigned NOT NULL DEFAULT '0',
date_registered TIMESTAMP NULL,
PRIMARY KEY(login),
UNIQUE KEY uniq_keytoken(token_auth)
) ROW_FORMAT=DYNAMIC ENGINE=$engine DEFAULT CHARSET=utf8

```

After that, assuming that’s the right file, the install should work if it uses your updated create table statements.

-Scott

---

<div class="post-metadata">

### Author: ![Ivan\_D](https://avatars.discourse-cdn.com/v4/letter/i/c57346/32.png) [@Ivan\_D](https://forums.percona.com/u/Ivan_D)
#### Post date: [June 2, 2015, 4:20am UTC](https://forums.percona.com/t/the-problem-of-migration-from-mysql-5-5-to-percona-5-6/4245/7 "2015-06-02T04:20:54Z")

</div>

I made changes in Mysql.php, tried both ROW\_FORMAT=DYNAMIC and ROW\_FORMAT=COMPRESSED, but received the same error message.  
I think editing third-party code is not rational.  
Soon I will try MariaDB ☹

---

<div class="post-metadata">

### Author: ![scott.nemes](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/scott.nemes/32/5_2.png) [@scott.nemes](https://forums.percona.com/u/scott.nemes)
#### Post date: [June 2, 2015, 10:21am UTC](https://forums.percona.com/t/the-problem-of-migration-from-mysql-5-5-to-percona-5-6/4245/8 "2015-06-02T10:21:35Z")

</div>

Hi Ivan\_D;

There is nothing wrong with MySQL/Percona, it’s just telling you what its limits are, and the application you are attempting to install is going over those limits by default.

From what I’ve read it sounds like your application should work on MySQL/Percona 5.5, so if you want a plug-and-play method, you might want to try that.

-Scott

---

<div class="post-metadata">

### Author: ![Ivan\_D](https://avatars.discourse-cdn.com/v4/letter/i/c57346/32.png) [@Ivan\_D](https://forums.percona.com/u/Ivan_D)
#### Post date: [June 3, 2015, 2:57am UTC](https://forums.percona.com/t/the-problem-of-migration-from-mysql-5-5-to-percona-5-6/4245/9 "2015-06-03T02:57:52Z")

</div>

Thanks Scott for your answers,  
Installation Percona version 5.5 has solved the problem about an error.  
Good luck!

---

<div class="post-metadata">

### Author: ![scott.nemes](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/scott.nemes/32/5_2.png) [@scott.nemes](https://forums.percona.com/u/scott.nemes)
#### Post date: [June 3, 2015, 9:44am UTC](https://forums.percona.com/t/the-problem-of-migration-from-mysql-5-5-to-percona-5-6/4245/10 "2015-06-03T09:44:37Z")

</div>

Hi Ivan\_D;

Glad you got it working. =)

-Scott
