Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2016-11-15 08:36:26

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 805
Website

Setting the right character set with MAMP ... !?

I’m getting an error with moving a local database (MAMP) to a server of a specific ISP. It says there’s an “Unknown character set ‘utf8mb4’” on line 17 > screendump

In the database dump on line 17 it says: “/*!40101 SET NAMES utf8mb4_unicode_ci */;” … it’s the default setting in MAMP PRO (4.6.0) of “Server connection collation” in phpMyAdmin > screendump

If I make it “utf8_unicode_ci” or “utf8” by hand the error disappears. If I want to make it the default in MAMP it turns again into “utf8mb4_unicode_ci” … !?

My question is: what do you do with the default settings in MAMP (if you use MAMP at all)? What’s are the best settings to work with?

BTW … if this error occurs the Txp setup becomes a mess. No sections, not all of the plugins and all kind of other database related problems.

Last edited by RedFox (2016-11-15 08:51:31)

Offline

#2 2016-11-16 03:46:36

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,075
Website Mastodon

Re: Setting the right character set with MAMP ... !?

ditto for me


…. texted postive

Offline

#3 2017-03-07 05:08:35

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,075
Website Mastodon

Re: Setting the right character set with MAMP ... !?

BUMP

About to start another website and i am deploying first on MAMP.

which setting should we use for UTF ?? utf8mb4_unicode_ci or utf8_unicode_ci


…. texted postive

Offline

#4 2017-03-07 07:24:43

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,595
Website

Re: Setting the right character set with MAMP ... !?

bici, to decide you need to check the remote server where you are going to install the website eventually and find out which version of mySQL you have, for example by calling up phpmyadmin or using a phpinfo file. If your remote server has MySQL version 5.5.3 or greater, you can use utf8mb4, if lower you should use utf8.

MAMP should work fine with either (it does on my computer). The problem only arises when transferring to an online server with an older version of mysql.

The multibyte/4-byte version of utf8 was only introduced then and covers a larger set of characters than the regular (already vast) utf8 charset. If you’re worried and don’t know, I would go with utf8 unless you are working in a specific language that requires the larger charset.


TXP Builders – finely-crafted code, design and txp

Offline

#5 2017-03-07 16:18:56

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,075
Website Mastodon

Re: Setting the right character set with MAMP ... !?

Thank you jakob, that is the best explanation i have seen. basically i am going to stay with utf8


…. texted postive

Offline

#6 2017-03-07 16:27:13

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 805
Website

Re: Setting the right character set with MAMP ... !?

Jacob … thanks … :)

Offline

#7 2017-03-07 16:37:37

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: Setting the right character set with MAMP ... !?

jakob wrote #304478:

If your remote server has MySQL version 5.5.3 or greater, you can use utf8mb4, if lower you should use utf8.

PHP version: 5.6.29
MySQL: 5.6.25-log

I was reinstalling Textpattern on CMS Styles last night (starting fresh) and I just happened to compare the config.php from 2014 to the new one. The only change was the utf8mb4 part. I didn’t understand what that meant but now I do.

Thanks, Jakob

Offline

#8 2017-03-07 18:55:54

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,075
Website Mastodon

Re: Setting the right character set with MAMP ... !?

michaelkpate wrote #304490:

Textpattern on CMS Styles

Chicago Manual of Style?

what is CMS Styles


…. texted postive

Offline

#9 2017-03-07 22:41:02

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: Setting the right character set with MAMP ... !?

bici wrote #304492:

what is CMS Styles

The blog I link to in my signature. :) Originally it was about theming for content management systems and then later evolved into more of a Textpattern focused site. Which got wiped out during the Textdrive implosion. I still plan to bring it back at some point when I figure out what I want to use it for.

Offline

Board footer

Powered by FluxBB