我正在尝试在 Ubuntu 12.04 上安装 MySQL。
我想在终端中使用这个命令sudo mysql_secure_installation
,但我不知道这个命令的用途。
最佳答案
它旨在设置一些比默认 Ubuntu(和 MySQL)安装更安全的初始参数。
根据http://dev.mysql.com/doc/refman/5.6/en/mysql-secure-installation.html :
This program enables you to improve the security of your MySQL installation in the following ways:
- You can set a password for root accounts.
- You can remove root accounts that are accessible from outside the local host.
- You can remove anonymous-user accounts.
- You can remove the test database (which by default can be accessed by all users, even anonymous users), and privileges that permit anyone to access databases with names that start with test_.
关于mysql - 使用 mysql_secure_installation 的目的是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20760908/