Bonjour Je viens d'installer Wampsever64 : Apache 2.4.18, MySQL 5.7.11, php 5.6.19 J'ai installé Drupal 8.1.7. avec succès. Pour créer une V01 et enchainer sur une V02, je sauvegarde la base de données B01 que je ré-importe dans BD02. A l'import, j'obtiens une erreur « Requête SQL :
CREATE TABLE d_block_content_revision__body ( bundle varchar(128) CHARACTER SET ascii DEFAULT '0'COMMENT )
MySQL a répondu: Documentation
1064 - Erreur de syntaxe près de ')' à la ligne 3 » J'ai cherché mais ne trouve pas de solution... J'ai essayé en enlevant "strict" mais sans succès ! Est-ce un problème de version ? Si oui, vers quelle version dois-je redescendre ? Si quelqu'un a une idée ?
Cordialement Jean-Jacques
Modifie 1 fois. Derniere modification le 25/08/2016 à 11:03 par jj37fr.
Vous êtes la troisième personne à nous parler de ce bug !!! Et nous ne savons toujours pas pourquoi ce bug apparait lors de l'export de votre phpmyadmin.
Il nous faudrait : --> la totalité de votre fichier config.inc.php. --> la totalité de votre fichier my.ini.
Pourriez-vous nous indiqué comment avez-vous créer cette table ?
Faites aussi un "describe d_block_content_revision__body".
Je vais essayer de reproduire cette erreur chez moi. En espérant trouver l'origine de ce problème.
Si la volumétrie est trop importante, envoyez le à mon adresse email : artemus @ jcz.fr
@+
---------------------------------------------------------------------------------------------------------------------------------------------------------------- Mon site : [www.jcz.fr]
1) la version de votre mysql. 2) la version de votre phpmyadmin. 3) le paramétrage que vous avez sélectionné dans l'export de votre phpmyadmin.
@+
---------------------------------------------------------------------------------------------------------------------------------------------------------------- Mon site : [www.jcz.fr]
Après quelques tests, je m'aperçois qu'il existe un problème quand on utilise un "comment" avec d'anciennes versions de phpMyAdmin. Avec phpMyAdmin 4.5.5, ça ne passe pas. Avec phpMyAdmin 4.6.3, ça passe.
Soit deux choses l'une : --> ne pas mettre de commentaire dans vos tables. --> installer la version la plus récente de phpmyadmin.
@+
---------------------------------------------------------------------------------------------------------------------------------------------------------------- Mon site : [www.jcz.fr]
D'après le rapport de bug Invalid sql with export import qui correspond bien au problème rencontré ici, et si on regarde à partir des commentaires de : imabug commented on 31 May le problème se poserait à l'export avec PhpMyAdmin sur Fedora : Thanks for pointer to Fedora! The problem is that Fedora packages do not use sqlparser shipped with phpMyAdmin, but some older version, which does have this bug (and many others).
The problem is that the package uses obsolete package:
Absent hier (vacances et petits enfants obligent), je vais essayer de répondre à vos questionnements.
1-Pour une modification du contenu Attention le message d'erreur originelle est « Erreur Requête SQL : CREATE TABLE `d_block_content_revision__body` ( `bundle` varchar(128) CHARACTER SET ascii NOT NULL DEFAULT ''COMMENT ) » le "0" est certainement suite à certaines tentatives de ma part.
Ceci fait suite à l'installation de base de Drupal 8. Il est probable que si l'on corrige cette ligne, l'erreur se retrouvera dans d'autres lignes.
2- La totalité de votre fichier config.inc.php. Il y a quatre config.inc.php D:\wamp64\scripts D:\wamp64\apps\phpmyadmin4.5.5.1 D:\wamp64\apps\phpmyadmin4.5.5.1\setup\frames D:\wamp64\apps\phpmyadmin4.5.5.1\test\test_data
Ci-dessous D:\wamp64\scripts\config.inc.php
<?php //Update 3.0.1 //$c_wampMode 32 or 64 bit //Support for Edge
// on charge la conf locale $wampConf = @parse_ini_file($configurationFile);
//on renseigne les variables du template avec la conf locale $c_installDir = $wampConf['installDir']; $c_wampVersion = $wampConf['wampserverVersion']; $c_wampMode = $wampConf['wampserverMode']; $c_navigator = $wampConf['navigator']; //For Windows 10 and Edge it is not the same as for other browsers //It is not complete path to browser with parameter [website] //but by 'cmd.exe /c "start /b Microsoft-Edge:[website];' $c_edge = ""; if($c_navigator == "Edge" { //Check if Windows 10 if(php_uname('r') < 10) { error_log("Edge should be defined as default navigator only with Windows 10" if(file_exists("c:/Program Files (x86)/Internet Explorer/iexplore.exe") $c_navigator = "c:/Program Files (x86)/Internet Explorer/iexplore.exe"; elseif(file_exists("c:/Program Files/Internet Explorer/iexplore.exe") $c_navigator = "c:/Program Files/Internet Explorer/iexplore.exe"; else $c_navigateor = "iexplore.exe"; } else { $c_navigator = "cmd.exe"; $c_edge = "/c start /b Microsoft-Edge:"; } } $c_editor = $wampConf['editor'];
//Variable suppressLocalhost based on urlAddLocalhost $c_suppressLocalhost = true; if(isset($wampConf['urlAddLocalhost']) && $wampConf['urlAddLocalhost'] != "off" $c_suppressLocalhost = false;
//Test du fichier hosts $c_hostsFile = getenv('WINDIR').'\system32\drivers\etc\hosts'; $c_hostsFile_writable = true; if(file_exists($c_hostsFile)) { if(!is_file($c_hostsFile)) error_log($c_hostsFile." is not a file" if(!is_writable($c_hostsFile)) { if(chmod($c_hostsFile, 0644) === false) error_log("Impossible to modify the file ".$c_hostsFile." to be writable" if(!is_writable($c_hostsFile)) { error_log("The file ".$c_hostsFile." is not writable" $c_hostsFile_writable = false; } } } else { error_log("The file ".$c_hostsFile." does not exists" $c_hostsFile_writable = false; }
// Adding parameters to WampServer modifiable // by "Settings" sub-menu on right-click Wampmanager icon $wamp_Param = array( 'VirtualHostSubMenu', 'ProjectSubMenu', 'HomepageAtStartup', 'MenuItemOnline', 'ItemServicesNames', 'urlAddLocalhost', );
// Extensions can not be loaded by extension = // for example zend_extension $phpNotLoadExt = array( 'php_opcache', );
// Apache modules which should not be disabled $apacheModNotDisable = array( 'authz_core_module', 'php5_module', 'php7_module', );
?>
3-La totalité de votre fichier my.ini D:\wamp64\bin\mysql\mysql5.7.11\my.ini
# Example MySQL config file for medium systems. # # This is for a large system with memory of 1G-2G where the system runs mainly # MySQL. # # MySQL programs look for option files in a set of # locations which depend on the deployment platform. # You can copy this option file to one of those # locations. For information about these locations, see: # [dev.mysql.com] # # In this file, you can use all long options that a program supports. # If you want to know which options a program supports, run the program # with the "--help" option.
# The following options will be passed to all MySQL clients [client] #password = your_password port = 3306 socket = /tmp/mysql.sock
# Here follows entries for some specific programs
# The MySQL server [wampmysqld64] #skip-grant-tables port = 3306 socket = /tmp/mysql.sock key_buffer_size = 64M max_allowed_packet = 1M
#Added to reduce memory used (minimum is 400) table_definition_cache = 600
sort_buffer_size = 2M net_buffer_length = 8K read_buffer_size = 2M read_rnd_buffer_size = 2M myisam_sort_buffer_size = 32M #Path to mysql install directory basedir="d:/wamp64/bin/mysql/mysql5.7.11" log-error="d:/wamp64/logs/mysql.log" #Verbosity Value 1 Errors only, 2 Errors and warnings , 3 Errors, warnings, and notes log_error_verbosity=2 #Path to data directory datadir="d:/wamp64/bin/mysql/mysql5.7.11/data"
#Path to the language #See Documentation: # [dev.mysql.com] lc-messages-dir="d:/wamp64/bin/mysql/mysql5.7.11/share" lc-messages=fr_FR
# The default storage engine that will be used when create new tables default-storage-engine=MYISAM # New for MySQL 5.6 default_tmp_storage_engine if skip-innodb enable # default_tmp_storage_engine=MYISAM
# Set the SQL mode to strict #sql-mode="" sql-mode="STRICT_ALL_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ZERO_DATE,NO_ZERO_IN_DATE,NO_AUTO_CREATE_USER"
# Don't listen on a TCP/IP port at all. This can be a security enhancement, # if all processes that need to connect to mysqld run on the same host. # All interaction with mysqld must be made via Unix sockets or named pipes. # Note that using this option without enabling named pipes on Windows # (via the "enable-named-pipe" option) will render mysqld useless! # #skip-networking
# Disable Federated by default skip-federated
# Replication Master Server (default) # binary logging is required for replication #log-bin=mysql-bin
# binary logging format - mixed recommended #binlog_format=mixed
# required unique id between 1 and 2^32 - 1 # defaults to 1 if master-host is not set # but will not function as a master if omitted server-id = 1
# Replication Slave (comment out master section to use this)
# New for MySQL 5.6 if no slave skip-slave-start
# # To configure this host as a replication slave, you can choose between # two methods : # # 1) Use the CHANGE MASTER TO command (fully described in our manual) - # the syntax is: # # CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>, # MASTER_USER=<user>, MASTER_PASSWORD=<password> ; # # where you replace <host>, <user>, <password> by quoted strings and # <port> by the master's port number (3306 by default). # # Example: # # CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306, # MASTER_USER='joe', MASTER_PASSWORD='secret'; # # OR # # 2) Set the variables below. However, in case you choose this method, then # start replication for the first time (even unsuccessfully, for example # if you mistyped the password in master-password and the slave fails to # connect), the slave will create a master.info file, and any later # change in this file to the variables' values below will be ignored and # overridden by the content of the master.info file, unless you shutdown # the slave server, delete master.info and restart the slaver server. # For that reason, you may want to leave the lines below untouched # (commented) and instead use CHANGE MASTER TO (see above) # # required unique id between 2 and 2^32 - 1 # (and different from the master) # defaults to 2 if master-host is set # but will not function as a slave if omitted #server-id = 2 # # The replication master for this slave - required #master-host = <hostname> # # The username the slave will use for authentication when connecting # to the master - required #master-user = <username> # # The password the slave will authenticate with when connecting to # the master - required #master-password = <password> # # The port the master is listening on. # optional - defaults to 3306 #master-port = <port> # # binary logging - not required for slaves, but recommended #log-bin=mysql-bin
# Point the following paths to different dedicated disks #tmpdir = /tmp/ #log-update = /path-to-dedicated-directory/hostname
# The InnoDB tablespace encryption feature relies on the keyring_file # plugin for encryption key management, and the keyring_file plugin # must be loaded prior to storage engine initialization to facilitate # InnoDB recovery for encrypted tables. If you do not want to load the # keyring_file plugin at server startup, specify an empty string. early-plugin-load=""
# Uncomment the following if you are using InnoDB tables # Chemins de mes bases de données qui sont déplacées #innodb_data_home_dir = C:/mysql/data/ innodb_data_file_path = ibdata1:10M:autoextend #innodb_log_group_home_dir = C:/mysql/data/ #innodb_log_arch_dir = C:/mysql/data/ # You can set .._buffer_pool_size up to 50 - 80 % # of RAM but beware of setting memory usage too high innodb_buffer_pool_size = 16M # Set .._log_file_size to 25 % of buffer pool size innodb_log_file_size = 5M innodb_log_buffer_size = 8M innodb_flush_log_at_trx_commit = 1 innodb_lock_wait_timeout = 50
[mysqldump] quick max_allowed_packet = 16M
[mysql] no-auto-rehash # Remove the next comment character if you are not familiar with SQL #safe-updates
4-Pourriez-vous nous indiqué comment avez-vous créer cette table ?
Cette table est créée lors de l'installation de base de Drupal 8.
5- DESCRIBE d_block_content_revision Field Type Null Key Default Extra id int(10) unsigned NO NULL revision_id int(10) unsigned NO NULL langcode varchar(12) NO NULL revision_log longtext YES NULL
6-la version de votre mysql Version 5.7.11
7-la version de votre phpmyadmin Version : 4.5.5.1, dernière version stable : 4.6.3
8-le paramétrage que vous avez sélectionné dans l'export de votre phpmyadmin J'exporte avec les paramètres par défaut en "personalisée" pour pouvoir "gzippé" Nous sommes donc en - Format = SQL - Jeu de caractère = utf-8 - Compression = gzippé - Afficher les commentaires... (pas Inclut...) - Option de créations d'objets : - - Valeur de AUTO_INCREMENT - - Ajouter un énoncé CREATE VIEW - - Ajouter un énoncé CREATE PROCEDURE / FUNCTION / EVENT - - Ajouter un énoncé CREATE TRIGGER - - Entourer les noms des tables et des colonnes par des guillemets obliques - Fonctions de création de données - - Fonction à utiliser lors de l'exportation des données : INSERT - - Syntaxe à utiliser lors de l'insertion de données : les deux modes ci-dessus Par exemple : INSERT INTO tbl_name (col_A,col_B, col_C) VALUES (1,2,3), (4,5,6), (7,8,9) - - Taille max 50000 - - Exporter les colonnes binaires en format hexadécimal (par exemple, «abc» devient 0x616263) - - Exporter les colonnes TIMESTAMP en UTC (permet les colonnes TIMESTAMP d'être exportées et importées entre des serveurs de zones horaires différentes)
A votre disposition pour d'autres renseignements Bien cordialement Jean-Jacques