使用mysql_secure_installation的目的是什么? [英] What is Purpose of using mysql_secure_installation?

查看:450
本文介绍了使用mysql_secure_installation的目的是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在ubuntu12.04上安装MySQL.

I am trying to install MySQL on ubuntu12.04.

我想在终端中使用此命令sudo mysql_secure_installation,但我不知道此命令的用途.

I want to use this command sudo mysql_secure_installation in Terminal, But i don't know the purpose this command.

请帮助我.如果可能,请实际进行解释.

please help me on this.If possible then explaining by practically.

推荐答案

它旨在设置一些初始参数,这些初始参数比默认的Ubuntu(和MySQL)安装更为安全.

It's designed to set a few initial parameters that are more secure than the default Ubuntu (and MySQL) installation.

根据 http://dev.mysql.com/doc/refman /5.6/en/mysql-secure-installation.html :

该程序使您可以通过以下方式提高MySQL安装的安全性:

This program enables you to improve the security of your MySQL installation in the following ways:

  • 您可以为根帐户设置密码.
  • 您可以删除可从本地主机外部访问的root帐户.
  • 您可以删除匿名用户帐户.
  • 您可以删除测试数据库(默认情况下,所有用户都可以访问该数据库,甚至匿名用户也可以),并删除允许任何人访问以test_开头的名称的数据库的特权.
  • 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_secure_installation的目的是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆