Filenary

What is it?

A .sql file contains plain-text SQL statements — commands for creating, querying, or modifying a database — commonly used for database backups, migrations, and schema definitions.

How do I open it?

Opens as plain text in any text editor; database tools like MySQL Workbench, pgAdmin, or DBeaver can run the statements directly against a database.

Is it safe?

The file itself is just text and can't run on its own, but running an untrusted .sql file against your database can modify or delete data — only run scripts from sources you trust.

Can I delete it?

Safe to delete once no longer needed, unless it's a backup you might need to restore from.