Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-28, 23:43:16

Author Topic: Database Migration Error  (Read 4080 times)

0 Members and 1 Guest are viewing this topic.

Offline pakgalaxy

  • Valuable Member
  • *
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Database Migration Error
« on: 2015-12-29, 09:00:30 »
i have exported mysql database from Klox-MR.
Now i am going to import it on Mysql 5.1 ver, it gives error.
MySQL said: Documentation

#1115 - Unknown character set: 'utf8mb4'

What should i do now?

Offline ebokalsel

  • Junior Member
  • *
  • Posts: 41
  • Karma: +1/-0
    • View Profile
Re: Database Migration Error
« Reply #1 on: 2015-12-29, 10:13:13 »
as far as i google it, mysql 5.1 doesn't support utf8mb4. Upgrade it to mysql 5.5 or change charset before exporting database ^_^

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Database Migration Error
« Reply #2 on: 2015-12-29, 10:19:26 »
So, how to make you can use mysql 5.1.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline pakgalaxy

  • Valuable Member
  • *
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Re: Database Migration Error
« Reply #3 on: 2015-12-30, 04:37:34 »
as far as i google it, mysql 5.1 doesn't support utf8mb4. Upgrade it to mysql 5.5 or change charset before exporting database ^_^
change charset before exporting database
i have already done this but useless

Offline pakgalaxy

  • Valuable Member
  • *
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Re: Database Migration Error
« Reply #4 on: 2015-12-30, 04:38:21 »
So, how to make you can use mysql 5.1.
its my client site database, who want to move other server having mysql 5.1 ver, What i have to do?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Database Migration Error
« Reply #5 on: 2015-12-30, 05:59:22 »
Open the .sql (dump) file and change 'DEFAULT CHARSET=utf8mb4;' to 'DEFAULT CHARSET=latin1;
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline pakgalaxy

  • Valuable Member
  • *
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Re: Database Migration Error
« Reply #6 on: 2015-12-30, 06:35:50 »
Open the .sql (dump) file and change 'DEFAULT CHARSET=utf8mb4;' to 'DEFAULT CHARSET=latin1;

Code: [Select]
`meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `comment_id` bigint(20) unsigned NOT NULL DEFAULT '0',
  `meta_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `meta_value` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  PRIMARY KEY (`meta_id`),
  KEY `comment_id` (`comment_id`),
  KEY `meta_key` (`meta_key`(191))
) ENGINE=MyISAM AUTO_INCREMENT=3789 DEFAULT CHARSET=utf8;

What about this?

Offline pakgalaxy

  • Valuable Member
  • *
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Re: Database Migration Error
« Reply #7 on: 2015-12-30, 07:48:03 »
i have replaced
utf8mb4 with utf8
and
utf8mb4_unicode_ci with utf8_general_ci
then all the data perfectly imported.
Code: [Select]
`meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `comment_id` bigint(20) unsigned NOT NULL DEFAULT '0',
  `meta_key` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
  `meta_value` longtext CHARACTER SET utf8 COLLATE utf8_general_ci,
  PRIMARY KEY (`meta_id`),
  KEY `comment_id` (`comment_id`),
  KEY `meta_key` (`meta_key`(191))
) ENGINE=MyISAM AUTO_INCREMENT=3789 DEFAULT CHARSET=utf8;



 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.039 seconds with 19 queries.

web stats analysis