-4
When trying to import database the following error occurs:
Erro
Comando SQL:
CREATE TABLE `wpzm_actionscheduler_actions` (
`action_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`hook` varchar(191) COLLATE=utf8_general_ci;
Mensagens do MySQL : Documentação
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '=utf8_general_ci' at line 3
How can I solve?
CREATE TABLE wpzm_affiliate_wp_visits
(
visit_id
bigint(20) NOT NULL AUTO_INCREMENT,
affiliate_id
bigint(20) NOT NULL,
referral_id
bigint(20) NOT NULL,
rest_id
mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
url
mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
referrer
mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
campaign
varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
context
varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
ip
tinytext COLLATE utf8mb4_unicode_ci NOT NULL,
date
datetime NOT NULL,
PRIMARY KEY (visit_id
),
KEY affiliate_id
(affiliate_id
)
) ENGINE=Myisam DEFAULT CHARSET=utf8 COLLATE=utf8mb4_unicode_ci;
This looks like a syntax error, tries to take out the character ` and run again.
– António Campos
Mysql Messages error : Documentation #1064 - You have an error in your SQL syntax; check the manual that Corresponds to your Mariadb server version for the right syntax to use near '`; /*! 40101 SET @saved_cs_client = @@character_set_client /; /!40101 SET c' at line 5
– Deivison Viana
The contents of the file are not complete in the question, create the database manually, and then run in parts (ignore the top lines starting with @@) Basically accurate of the tables, imports from the first CREATE TABLE
– António Campos