安装在CloudStack时CentOS6.4中安装MySQL通过mysql_secure_installation方式修改密码
在安装CloudStack时,通过mysql_secure_installation方式修改密码
| 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! |
转载请注明:www.xujin.org或www.virgocloud.com
安装在CloudStack时CentOS6.4中安装MySQL通过mysql_secure_installation方式修改密码的更多相关文章
- (原创)VM中的CentOS6.4中安装CloudStack6.3②
接着VM中的CentOS6.4中安装CloudStack6.3①中文章接着,往下面安装 4.更新 yum 仓库 默认情况下,CentOS的软件源中没有收录最新版本CloudStack,为了能顺利安装, ...
- Apache 2.4.7在CentOS6.4中安装配置反向代理解决单外网IP对应多个内网主机的方法实践
欢迎转载,转载时请保留全文及出处. Apache 2.4.7在CentOS6.4中安装配置反向代理解决单外网IP对应多个内网主机的方法实践 Apache安装 下载源程序(http://httpd.ap ...
- 在centos6.5中安装mysql5.7
简介 博主最近在研究mysql的读写分离和主从复制,一台master和两台slave,三台机器在同一个局域网中,首先就就要在centos6.5中安装mysql5.7.好了,废话不多说,接下来进入正题. ...
- CentOs6.5中安装和配置vsftp简明
这篇文章主要介绍了CentOs6.5中安装和配置vsftp简明教程,需要的朋友可以参考下 一.vsftp安装篇 复制代码代码如下: # 安装vsftpdyum -y install vsftp ...
- 路由器安装ubuntu-16.04.1-server-amd64出现“无法安装busybox-initramfs”错误。向目标系统中安装busybox-initramfs软件包时出现一个错误。请检查/var/log/syslog或查看第四虚拟控制台以获得详细
公司的路由器要ubuntu服务器进行路由网络功能的管理,在安装的时候出现下面的错误提示: 安装ubuntu-16.04.1-server-amd64出现“无法安装busybox-initramfs”错 ...
- CentOs6.5中安装和配置vsftp简明教程[转]
CentOs6.5中安装和配置vsftp简明教程 林涛 发表于:2017-3-17 10:10 分类:WebServer 标签: 101次 一.vsftp安装篇 复制代码代码如下: # 安装vsftp ...
- CentOS7安装CDH 第十章:CDH中安装Spark2
相关文章链接 CentOS7安装CDH 第一章:CentOS7系统安装 CentOS7安装CDH 第二章:CentOS7各个软件安装和启动 CentOS7安装CDH 第三章:CDH中的问题和解决方法 ...
- CentOS7安装CDH 第九章:CDH中安装Kafka
相关文章链接 CentOS7安装CDH 第一章:CentOS7系统安装 CentOS7安装CDH 第二章:CentOS7各个软件安装和启动 CentOS7安装CDH 第三章:CDH中的问题和解决方法 ...
- RedHat7.4安装在个人电脑(笔记本)中安装遇到的问题总结
RedHat7.4安装在个人电脑(笔记本)中安装 以下纯属个人在安装过程中遇到问题的一些总结,如果有描述不恰当的地方,还请给予指出,欢迎大家评论和交流. 物理主机的配置: 硬件配置: 华硕A456U笔 ...
随机推荐
- [css]水平垂直居中的方法
1.top:cale(50% - 2rem); left:cale(50% - 2rem);
- bzoj 3196: Tyvj 1730 二逼平衡树
#include<cstdio> #include<ctime> #include<cstdlib> #include<iostream> #defin ...
- codeforces 484C Strange Sorting Codeforces Round #276 (Div. 1) C
思路:首先 他是对1到k 元素做一次变换,然后对2到k+1个元素做一次变化....依次做完. 如果我们对1到k个元素做完一次变换后,把整个数组循环左移一个.那么第二次还是对1 到 k个元素做和第一次一 ...
- VS2012+LUA环境搭建
1 .启动VS2012,选择C++下的"win32"项目类型中的"Win2控制台应用程序" 2.工具——选项——项目和解决方案——VC++目录——可执行程序(C ...
- Tomcat内存优化参数
set JAVA_OPTS=-Xms512m -Xmx512m -XX:PermSize=128M -XX:MaxNewSize=128m -XX:MaxPermSize=128m 在catalina ...
- ServiceStack V3 版本 免费 redis的操作类
Referencing v3 packages in New Projects If you want a new project to use ServiceStack's v3 packages ...
- golang中不定参数与数组切片的区别
package main import "fmt" func main() { myfunc1(, , , ) //传递不定数量的参数 myfunc2([], , , }) //传 ...
- [小菜随笔]python tkinter实现简单的ping命令
本文主要是介绍python图形界面上的按键与实际功能的对接,其实编程掌握了基础之后的学习应该都是靠自己去挖掘其他的 在网上发现多半教程都是2的,故本文使用的是python3.5,其实也没什么区别,就有 ...
- Android Activity中获取当前焦点的控件,自动化输入EditText
获取焦点的view对象 View view=getWindow().getDecorView().findFocus(); 如果是EditText if(view instanceof EditTex ...
- javascript曲线图和面积图Line & Area chart控件功能及下载
Line & Area chart 控件是一款新型的.可用性极强的曲线图和面积图产品.一个您网站的访问者可以放大他感兴趣的一段区域,打开和关闭数值气球,并可显示和隐藏图表.您能创建简单.堆积. ...