mysql - 使用 mysql_secure_installation 的目的是什么?

标签 mysql

我正在尝试在 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/

相关文章:

mysql sum group by month and date 使用契约(Contract)开始和结束日期

mysql - 列出数据库中的数据库和表名称?

php - HTML 表格显示 PHP 源代码,而不是变量中的数据

MySQL 是否为复合主键创建单独的索引

PHP 上传给定名称的图像

mysql - 如何简化此 SQL 查询 2

MySql sql递归循环

mysql - heroku JawsDB MySQL Addons 中的 "Databites"是什么意思?

MySQL 将两个结果连接在一起?

MySQL:将数字替换为零