Skip to content

Instantly share code, notes, and snippets.

@z2015
Created May 2, 2016 02:13
Show Gist options
  • Save z2015/b41470c211296bd5e39479eb5f9c23ab to your computer and use it in GitHub Desktop.
Save z2015/b41470c211296bd5e39479eb5f9c23ab to your computer and use it in GitHub Desktop.
解决WordPress数据库导入出错MYSQL import fails with Unknown collation: ‘utf8mb4_unicode_ci’
/** 创建数据表时默认的文字编码 */
define('DB_CHARSET', 'utf8mb4');
/** 创建数据表时默认的文字编码 */
define('DB_CHARSET', 'utf8');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment