2017-10-19 1 views
0

J'ai reçu cette erreur lors du chargement de SQL sur le serveur PhpMyAdmin. J'ai regardé les réponses de posts similaires mais ne pense pas que c'est la même chose. Il devrait être après - Structure de la table pour le tableau wzflh_admintools_log . Ce sont des lignes 127 à 146:Il me manque Un crochet de fermeture était attendu. (près de ")" à la position 136)

CREATE TABLE `wzflh_admintools_ipblock` (
    `id` bigint(20) UNSIGNED NOT NULL, 
    `ip` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, 
    `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL 
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; 

-- -------------------------------------------------------- 

-- 
-- Table structure for table `wzflh_admintools_log` 
-- 

CREATE TABLE `wzflh_admintools_log` (
    `id` bigint(20) UNSIGNED NOT NULL, 
    `logdate` datetime NOT NULL, 
    `ip` varchar(40) COLLATE utf8mb4_unicode_ci DEFAULT NULL, 
    `url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, 
    `reason` enum('other','adminpw','ipwl','ipbl','sqlishield','antispam','wafblacklist','tpone','tmpl','template','muashield','csrfshield','badbehaviour','geoblocking','rfishield','dfishield','uploadshield','xssshield','httpbl','loginfailure','securitycode','external','awayschedule','admindir','sessionshield','nonewadmins','nonewfrontendadmins','configmonitor','phpshield') COLLATE utf8mb4_unicode_ci DEFAULT NULL, 
    `extradata` longtext COLLATE utf8mb4_unicode_ci 
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; 

Je n'ai pas dû le faire avant, mais ont besoin d'aide s'il vous plaît. Très appréciée.

Répondre

0

J'ai créé un db nommé mydb et importé vos tables via la console, ce qui est ce que j'ai `- phpMyAdmin SQL Dump

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; 
SET time_zone = "+00:00"; 
CREATE TABLE `wzflh_admintools_ipblock` (
    `id` bigint(20) UNSIGNED NOT NULL, 
    `ip` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, 
    `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL 
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; 

CREATE TABLE `wzflh_admintools_log` (
    `id` bigint(20) UNSIGNED NOT NULL, 
    `logdate` datetime NOT NULL, 
    `ip` varchar(40) COLLATE utf8mb4_unicode_ci DEFAULT NULL, 
    `url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, 
    `reason` enum('other','adminpw','ipwl','ipbl','sqlishield','antispam','wafblacklist','tpone','tmpl','template','muashield','csrfshield','badbehaviour','geoblocking','rfishield','dfishield','uploadshield','xssshield','httpbl','loginfailure','securitycode','external','awayschedule','admindir','sessionshield','nonewadmins','nonewfrontendadmins','configmonitor','phpshield') COLLATE utf8mb4_unicode_ci DEFAULT NULL, 
    `extradata` longtext COLLATE utf8mb4_unicode_ci 
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; 
+0

créer un fichier sql vide et copypaster le code, puis importer le fichier sql dans votre base de données –

+0

Importer cela avec la base de données actuelle? Je n'ai aucune idée de ce que cela va faire. Mes excuses. Cela va-t-il résoudre le problème? Clarification nécessaire. –

+0

oui oui ou phpmyadmin, sélectionnez votre db puis cliquez sur sql, sur la console, collez le code sans ces lignes "SET SQL_MODE =" NO_AUTO_VALUE_ON_ZERO "; SET time_zone =" +00: 00 ";" et cliquez sur OK –

-1

copier coller ceci dans votre fichier sql`

-- phpMyAdmin SQL Dump 
-- version 4.5.1 
-- http://www.phpmyadmin.net 
-- 
-- Host: 127.0.0.1 
-- Generation Time: Oct 19, 2017 at 07:46 PM 
-- Server version: 10.1.16-MariaDB 
-- PHP Version: 5.6.24 

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; 
SET time_zone = "+00:00"; 


/*!40101 SET @[email protected]@CHARACTER_SET_CLIENT */; 
/*!40101 SET @[email protected]@CHARACTER_SET_RESULTS */; 
/*!40101 SET @[email protected]@COLLATION_CONNECTION */; 
/*!40101 SET NAMES utf8mb4 */; 

-- 
-- Database: `centeroakland` 
-- 

-- -------------------------------------------------------- 

-- 
-- Table structure for table `wzflh_admintools_ipblock` 
-- 

CREATE TABLE `wzflh_admintools_ipblock` (
    `id` bigint(20) UNSIGNED NOT NULL, 
    `ip` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, 
    `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL 
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; 

-- -------------------------------------------------------- 

-- 
-- Table structure for table `wzflh_admintools_log` 
-- 

CREATE TABLE `wzflh_admintools_log` (
    `id` bigint(20) UNSIGNED NOT NULL, 
    `logdate` datetime NOT NULL, 
    `ip` varchar(40) COLLATE utf8mb4_unicode_ci DEFAULT NULL, 
    `url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, 
    `reason` enum('other','adminpw','ipwl','ipbl','sqlishield','antispam','wafblacklist','tpone','tmpl','template','muashield','csrfshield','badbehaviour','geoblocking','rfishield','dfishield','uploadshield','xssshield','httpbl','loginfailure','securitycode','external','awayschedule','admindir','sessionshield','nonewadmins','nonewfrontendadmins','configmonitor','phpshield') COLLATE utf8mb4_unicode_ci DEFAULT NULL, 
    `extradata` longtext COLLATE utf8mb4_unicode_ci 
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; 

/*!40101 SET [email protected]_CHARACTER_SET_CLIENT */; 
/*!40101 SET [email protected]_CHARACTER_SET_RESULTS */; 
/*!40101 SET [email protected]_COLLATION_CONNECTION */; 
` 

enregistrez-le, puis importez-le. espérons que cela aide

+0

Non, cela n'a pas fonctionné. Je vais essayer une méthode différente pour y arriver. Merci beaucoup. –

+0

Où est l'explication de cette réponse? Pourquoi il a besoin de faire ça? –