SQL · Gratuit · Sur votre appareil

Corrupt an SQL File Online

Corrupt a .sql dump online for free. Breaks statement structure and encoding so imports fail instead of loading partial data.

  • Aucun envoi
  • Aucune limite de taille
  • Aucune inscription

Corrompez votre fichier SQL

Réglé pour .sql, .dump, et fonctionne tout aussi bien avec n'importe quel autre format.

100 % sur votre appareil
Déposez vos fichiers ici ou parcourez Tout format, toute taille, plusieurs fichiers à la fois
Niveau de corruption

Traitement…0%
Prêt à télécharger

Pourquoi les fichiers SQL sont difficiles à corrompre correctement

An SQL dump is a text file of statements executed in order. That makes partial corruption genuinely dangerous in the real world, an import can succeed for thousands of rows and then fail halfway, leaving a database in an inconsistent state. Reproducing that on demand is exactly what this is for.

Ce que cet outil détruit

  • Statement terminators. Semicolons and line breaks are overwritten, so statements run together into unparseable input.
  • String literal quoting. Quotes are broken up, leaving literals unterminated and swallowing subsequent statements.
  • The dump header. The opening bytes containing the client and server version comments are destroyed.
  • Encoding validity. Invalid UTF-8 sequences make the file fail on import before any statement executes.

Ce que vous verrez ensuite

ApplicationComportement
mysql < dump.sql"ERROR 1064 (42000): You have an error in your SQL syntax" and the import aborts.
psql -fReports invalid byte sequence for the encoding and stops.
phpMyAdmin / AdminerImport fails with a syntax error and a line number.
Light levelImport may run partway before failing, the realistic partial-restore scenario.

Raisons courantes de le faire

  • Rehearsing a restore from a damaged backup before it happens for real.
  • Verifying an import runs inside a transaction and rolls back cleanly on failure.
  • Testing that a migration tool reports the failing statement rather than continuing.
  • Demonstrating why backups must be verified, not just taken.

Comment corrompre un fichier SQL

  1. Déposez votre fichier .sql dans la zone ci-dessus, ou cliquez pour parcourir.
  2. Laissez le niveau sur Standard, sauf si vous voulez des dommages partiels (Light) ou devez mettre en échec un logiciel de récupération (Heavy).
  3. Cliquez sur Corrompre le fichier. Le traitement a lieu sur votre appareil, il se termine donc presque instantanément.
  4. Téléchargez le résultat. Par défaut, il conserve le nom de fichier et la longueur en octets d'origine.

Questions fréquentes sur SQL

Can I simulate a partial restore?

Yes, and this is the most useful case. Light level leaves most statements intact, so an import typically runs for a while before failing, which is precisely the scenario that catches missing transaction handling.

Does it work on compressed dumps?

A .sql.gz file is handled as a gzip archive instead, which breaks the whole thing at once. Decompress first if you want statement-level damage.

Will it break a specific table?

Not deterministically, damage is scattered, not targeted at named objects.

Is the original dump modified?

No. The corruption is applied to a copy in memory and downloaded separately.

Utilisez ceci de façon responsable. Files Corrupter est conçu pour les tests logiciels, la QA, la recherche, la formation et l'enseignement. Remettre un fichier délibérément corrompu pour faire passer un travail pour terminé peut enfreindre le règlement de votre établissement ou de votre employeur. Vous êtes responsable de l'usage que vous faites du résultat. Consultez notre avertissement.

Autres outils code & data

Tous les outils de corruption