#1273-Unknown collation: 'utf8mb4 unicode 520 ci'
Tengo un sitio web WordPress en mi servidor local WAMP. Pero cuando subo su base de datos al servidor en vivo, obtengo un error
#1273 – Unknown collation: ‘utf8mb4_unicode_520_ci’
Cualquier ayuda sería apreciada!
7 answers
Puede resolver esto encontrando
ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
En su archivo .sql
, e intercambiarlo con
ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-09-13 18:48:40
Creo que este error se debe a que el servidor local y el servidor en vivo están ejecutando versiones diferentes de MySQL. Para resolver esto:
- Abra el archivo sql en su editor de texto
- Buscar y reemplazar todos
utf8mb4_unicode_520_ci
conutf8mb4_unicode_ci
- Guardar y cargar en una nueva base de datos MySQL
Esperanza que ayuda
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-09-09 00:12:10
En mi caso resulta que mi
el nuevo servidor se estaba ejecutando MySQL 5.5
,
el servidor antiguo se estaba ejecutando MySQL 5.6
.
Así que obtuve este error al intentar importar el archivo .sql
que había exportado desde mi antiguo servidor.
MySQL 5.5 no soporta utf8mb4_unicode_520_ci
, pero
MySQL 5.6 lo hace.
La actualización a MySQL 5.6
en el nuevo servidor solucionó el error de intercalación !
Si desea conservar MySQL 5.5, puede:
- hacer una copia de su archivo exportado .sql
- reemplazar instancias de utf8mb4unicode520_ci
y utf8mb4_unicode_520_ci
...por utf8mb4_unicode_ci
- importa tu archivo .sql
actualizado.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-07-03 03:54:55
Simplemente eliminar "520_"utf8mb4_unicode_520_ci
→ utf8mb4_unicode_ci
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-02-17 19:55:54
Abra el archivo sql en su editor de texto;
1. Búsqueda: utf8mb4_unicode_ci Reemplazar: utf8_general_ci (Reemplazar Todos)
2. Búsqueda: utf8mb4_unicode_520_ci Reemplazar: utf8_general_ci (Reemplazar Todos)
3. Búsqueda: utf8mb4 Reemplazar: utf8 (Reemplazar Todos)
Guardar y cargar!
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-03-04 20:22:11
Buscar y reemplazar:
utf8mb4_unicode_520_ci
Con
utf8_general_ci
En todo el archivo sql
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-04-06 05:37:23
Fácil de reemplazar
sed -i 's/utf8mb4_unicode_520_ci/utf8mb4_unicode_ci/g' your_sql_file.sql
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-06-29 05:08:04