Make WordPress Core

Opened 9 years ago

Closed 8 years ago

#33122 closed defect (bug) (wontfix)

DB_CHARSET in config should be set to utf8mb4 if mysql version >5.5.3

Reported by: laserjobs's profile laserjobs Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Database Keywords:
Focuses: Cc:


Currently if the database has been converted to utf8mb4, wp-config is still set for creating new tables as utf8

/ Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');

Looks like it was addressed here at one time

Change History (2)

#1 @SergeyBiryukov
9 years ago

  • Component changed from General to Database

Related: #32405

#2 @pento
8 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed
  • Version 4.2.3 deleted

On new WordPress installs, DB_CHARSET will be set to utf8mb4.

On existing WordPress installs, WordPress will automatically upgrade the tables to utf8mb4, and when DB_CHARSET is defined as utf8, it will automatically switch to utf8mb4 instead.

DB_CHARSET is left as utf8 in wp-config.php, because WordPress doesn't write to wp-config.php outside of the setup process.

Note: See TracTickets for help on using tickets.