GuideKeeping your database server safe
A checklist for the MySQL or MariaDB server SQL Wizard works with — on a hosting, a NAS, a PC or in the cloud. Start with the Security check: it tells you which points your server misses and gives the SQL to fix them.
- Run the Security check: on Database servers, click Security check beside the server. Aim for grade A; each finding says what to do, and where it helps the SQL to copy. SQL Wizard never changes your server itself.
- Encrypt the connection: turn on TLS on the server, then choose Verify (with the server’s CA certificate) or at least Require in Database serversChange encryption. Prefer quietly falls back to an unencrypted connection when the server has no TLS.
- Let logins in only from where they are used: create the MySQL user SQL Wizard signs in with for SQL Wizard’s address
91.234.46.58only, not for any host (%), and on the firewall or router open port 3306 only for that address. - One MySQL login per person, with only the rights they need: no SUPER, FILE or GRANT for everyday work, and a read-only login (Database serversMySQL loginsRead-only login…) for people who only look.
- Strong, unique passwords for every MySQL user; no users without a password and no anonymous users (the Security check lists them). Remove the test database if the server still has one.
- Keep MySQL or MariaDB up to date: the Security check says when your version no longer gets security fixes.
- Turn off what you don’t use: LOCAL INFILE (local_infile = 0), the old password method, and admin tools left open on the internet.
- Back up and test it: ServerScheduled backups to your own storage, encrypted with your own key (Encryption), and restore one into a test database now and then.