« MySQL/Débogage » : différence entre les versions

Contenu supprimé Contenu ajouté
Ligne 143 :
=== View ... references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them ===
Temporairement on peut recréer la view sans "SQL SECURITY INVOKER".
 
=== Specified key was too long; max key length is 3072 bytes ===
Se produit lors d'un ALTER vers un grand type comme "text". Exemple :
<syntaxhighlight lang="mysql">
ALTER TABLE ma_table
CHANGE `mon_champ2` `mon_champ2` text COLLATE 'utf8_general_ci' NULL AFTER `mon_champ1`;
</syntaxhighlight>
Solution :
<syntaxhighlight lang="mysql">
ALTER TABLE ma_table
CHANGE `mon_champ2` `mon_champ2` varchar(1000) COLLATE 'utf8_general_ci' NULL AFTER `mon_champ1`;
</syntaxhighlight>
 
=== Syntax error or access violation ===