我在导入数据时遇到问题排序规则是什么意思?
我问这个问题的原因是我总是在导入数据时出错。因此,我正在查看wp-config文件,排序规则如下所示。
/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8mb4');
/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');所以我转到phpMyAdmin,服务器字符集是UTF-8Unicode (utf8),我不知道这是否有什么意义,但在服务器连接排序规则框中,它显示为utf8mb4_unicode_ci。
这就是我认为问题所在,但我完全是mySQL的新手。我的主wordpress数据库旁边有排序规则类型latin1_swedish_ci -在排序规则下。
当我单击数据库时,它们都有utf8字符集、不同的字符集、一些utf8mb4_unicode_ci字符集和一些utf8_general_ci字符集-这是否意味着数据库设置不正确?
这可能是我的导入问题的原因吗?我该如何修复它。
发布于 2016-06-29 10:03:39
这里有一些来自wiki的内容:
Collation is the assembly of written information into a standard order.
Many systems of collation are based on numerical order or alphabetical
order, or extensions and combinations thereof.我的观点是,它是数据库的字符集...如果要将数据库导入到其他位置,则排序规则必须相同/两台服务器具有相同的排序规则、
发布于 2017-02-15 22:27:25
排序规则可以在导出之前更改,所以我不会给你这个错误,.I有以前的pb,这对我有效.1)我更改排序规则与服务器相同2)我选择了导出到utf8时的选项。
您不能在记事本中更改排序规则.You必须确保在phpmyadmin中执行此步骤
https://stackoverflow.com/questions/38087752
复制相似问题