网络翻译措辞可能会有不当, 欢迎指出.
- NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
- SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
注意: 运行这个脚本的所有部分所有 MySQL 的建议服务器在生产中使用! 请仔细阅
读每一步!
- In order to log into MySQL to secure it, we'll need the current
- password for the root user. If you've just installed MySQL, and
- you haven't set the root password yet, the password will be blank,
so you should just press enter here.
以登录到 MySQL 的安全, 我们需要的当前根用户密码. 如果你刚刚安装 MySQL, 你
还没有设置 root 密码, 密码将是空白的, 所以你应该在这里按回车.
Enter current password for root (enter for none):
输入当前密码为根 (没有输入):
OK, successfully used password, moving on...
好, 成功地使用密码, 继续......
Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.
You already have a root password set, so you can safely answer 'n'.
设置 root 密码可以确保没有人能够登录到 MySQL 根用户没有适当的授权. 你已经
有一个根密码设置, 所以你可以放心地回答 "n".
Change the root password?[Y/n] n
改变根密码吗?
n
... skipping.
... 跳过.
- By default, a MySQL installation has an anonymous user, allowing
- anyone
- to log into MySQL without having to have a user account created for
- them. This is intended only for testing, and to make the
- installation
- go a bit smoother. You should remove them before moving into a
production environment.
默认情况下, 一个 MySQL 安装有一个匿名用户, 允许任何人登录到 MySQL 而无需创
建用户帐户他们. 这个目的是只用于测试, 安装去更平缓一些. 你应该进入前删
除它们生产环境.
Remove anonymous users? [Y/n] y
删除匿名用户?[Y / n]Y
... Success!
... 成功!
- Normally, root should only be allowed to connect from 'localhost'.
- Thisensures that someone cannot guess at the root password from the
network.
正常情况下, 从根只能允许连接 "localhost". 这确保某人不能猜测网络的根
密码.
来源: http://www.bubuko.com/infodetail-2898946.html