---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# mysql_secure_installation

> Set up MySQL to have better security.
> More information: <https://dev.mysql.com/doc/refman/en/mysql-secure-installation.html>.

- Start an interactive setup:

`mysql_secure_installation`

- Use specific host and port:

`mysql_secure_installation --host={{host}} --port={{port}}`

- Display help:

`mysql_secure_installation --help`
