安装在CloudStack时CentOS6.4中安装MySQL通过mysql_secure_installation方式修改密码
2015-02-01 16:37
686 查看
在安装CloudStack时,通过mysql_secure_installation方式修改密码
转载请注明:www.xujin.org或www.virgocloud.com
01 [root@test ~]# /usr/bin/mysql_secure_installation 02 NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL 03 SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY! 04 05 In order to log into MySQL to secure it, we'll need the current 06 password for the root user. If you've just installed MySQL, and 07 you haven't set the root password yet, the password will be blank, 08 so you should just press enter here. 09 10 Enter current password for root (enter for none):<---输入现在的root密码,因为我们还没设置,直接回车 11 OK, successfully used password, moving on... 12 13 Setting the root password ensures that nobody can log into the MySQL 14 root user without the proper authorisation. 15 16 Set root password? [Y/n] Y <---是否设定root密码,当然设置了,输入Y回车 17 New password: <---输入root密码,并回车,输入的过程中不会有任何显示 18 Re-enter new password: <---再次输入root密码,并回车,输入的过程中不会有任何显示 19 Password updated successfully! 20 Reloading privilege tables.. 21 ... Success! 22 23 By default, a MySQL installation has an anonymous user, allowing anyone 24 to log into MySQL without having to have a user account created for 25 them. This is intended only for testing, and to make the installation 26 go a bit smoother. You should remove them before moving into a 27 production environment. 28 29 Remove anonymous users? [Y/n] Y <---是否删除匿名用户,删除,输入Y回车 30 ... Success! 31 32 Normally, root should only be allowed to connect from 'localhost'. This 33 ensures that someone cannot guess at the root password from the network. 34 35 Disallow root login remotely? [Y/n] Y <---是否删禁止root用户远程登录,当然禁止,输入Y回车 36 ... Success! 37 38 By default, MySQL comes with a database named 'test' that anyone can 39 access. This is also intended only for testing, and should be removed 40 before moving into a production environment. 41 42 Remove test database and access to it? [Y/n] <---是否删除测试数据库test,删除,输入Y回车 43 - Dropping test database... 44 ... Success! 45 - Removing privileges on test database... 46 ... Success! 47 48 Reloading the privilege tables will ensure that all changes made so far 49 will take effect immediately. 50 51 Reload privilege tables now? [Y/n] Y <---刷新权限,输入Y回车 52 ... Success! 53 54 Cleaning up... 55 56 All done! If you've completed all of the above steps, your MySQL 57 installation should now be secure. 58 59 Thanks for using MySQL! |
相关文章推荐
- 单机运行环境搭建之 --CentOS-6.4安装MySQL 5.6.10并修改MySQL的root用户密码
- CentOS-6.4安装MySQL 5.6.10并修改MySQL的root用户密码
- centos6.4修改mysql默认密码方式
- 6、单机运行环境搭建之 --CentOS-6.4安装MySQL 5.6.10并修改MySQL的root用户密码
- CentOS6.3安装MySQL5.6.10并修改MySQL的root用户密码
- centos6.5下源码安装mysql密码修改
- Centos6.4 用rpm方式安装MySql5.6
- CentOS 6.5 安装 MySQL 5.6.17 并修改MySQL的root用户密码
- CentOS 6.4系统通过yum安装 LAMP(Apache+MySQL+PHP)安装步骤及其卸载步骤
- CentOS6.5下通过Shell修改MySQL初始密码,开启远程登录,授权远程登录用户
- [置顶]CentOS7下通过rpm方式安装MySQL及插入中文问题解决 [原创]
- CentOS 6.3 编译安装 MySQL 5.6.10 并修改MySQL的root用户密码
- Centos:新安装mysql修改root密码
- Centos6.5下通过 yum 方式安装 MySQL5.6.26
- CentOS7下通过rpm方式安装MySQL及插入中文问题解决 [原创]
- Centos6.4 用rpm方式安装MySql5.6
- CentOS6.5下通过Shell修改MySQL初始密码,开启远程登录,授权远程登录用户
- Centos6.4 用rpm方式安装MySql5.6
- centos中安装Mysql方法以及密码修改,远程访问。