[root@youxi1 ~]# mysql_secure_installation

Securing the MySQL server deployment.

Enter password for user root:   //输入root密码

The 'validate_password' plugin is installed on the server.

The subsequent steps will run with the existing configuration

of the plugin.

Using existing password for root.

Estimated strength of the password: 25

Change the password for root ? ((Press y|Y for Yes, any other key for No) : No  //是否更改root密码,如果输入y会要求设置新的密码

... 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.

Remove anonymous users? (Press y|Y for Yes, any other key for No) : y  //是否删除匿名用户,建议y删除

Success.

Normally, root should only be allowed to connect from

'localhost'. This ensures that someone cannot guess at

the root password from the network.

Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y  //是否禁止root远程登录,建议y禁止

Success.

By default, MySQL comes with a database named 'test' that

anyone can access. This is also intended only for testing,

and should be removed before moving into a production

environment.

Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y  //是否删除test数据库,y删除

- Dropping test database...

Success.

- Removing privileges on test database...

Success.

Reloading the privilege tables will ensure that all changes

made so far will take effect immediately.

Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y  //是否重新加载权限表,y重新加载

Success.

All done!

mysql配置向导文件_Mysql的安全配置向导命令mysql_secure_installation相关推荐

  1. mysql cluster 设置单向复制_mysql单向主从配置

    1.环境要求 操作系统:centOS6.5或以上 Mysql版本:mysql5.5 主机配置:4核CPU.4G内存 2.主从复制的方式 mysql5.6开始主从复制有两种方式:基于日志(binlog) ...

  2. MySQL安装与配置心得体会_Mysql安装与配置总结

    Mysql安装与配置总结: 对于Mysql数据库相关信息,这里不做介绍总结,有需要的同学可查阅相关的资料.另外,本篇总结文章主题在于Mysql的安装.配置及服务操作. ·     安装 ·     配 ...

  3. mysql索引 物理文件_MySQL体系结构之物理文件

    一.MySQL日志文件 mysql日志文件及功能: 日志文件 功能 错误日志 记录启动.停止.运行过程中mysqld时出现的问题 通用日志 记录建立客户端连接和执行的语句 二进制日志 记录更改数据的所 ...

  4. c mysql清理日志文件_MySQL 一般查询日志或者慢查询日志历史数据的清理

    general log&slow query log 对于MySQL的一般查询日志和慢查询日志,开启比较简单,其中公用的一个参数是log_output,log_output控制着慢查询和一般查 ...

  5. 我的mysql没有ini文件_MySQL没有默认my.ini文件

    mysql不同的安装方式会导致是否生成my.ini文件,一般情况下使用ZIP安装时,安装好之后默认是没有my.ini配置文件. 当我们想修改数据库的配置信息,若没有my.ini文件会很麻烦. 当前情况 ...

  6. c++ 怎么配置头文件路径_OpenGL环境配置

    每次换新电脑,我想搞openGL的时候,都会苦于一个问题,那就是环境搭配,虽然搭过很多次,但就是记不住,所以今天就把快速配置的过程写下来,方便下次使用,如果有人看到我这篇文章觉得说得太模糊了,不清楚, ...

  7. mysql 导出dmp文件_Mysql数据库的各种命令:

    一.连接MYSQL 格式: mysql -h主机地址 -u用户名 -p用户密码 1.连接到本机上的MYSQL. 首先打开DOS窗口,然后进入目录mysqlbin,再键入命令mysql -u root ...

  8. mysql 导出dmp文件_MySQL数据库基础讲解

    # 简介 MySQL是一种开放源代码的关系型数据库管理系统(RDBMS),使用最常用的数据库管理语言(SQL)进行数据库管理. MySQL是开放源代码的,因此任何人都可以在General Publi ...

  9. mysql 导入.sql文件_MySQL导入.sql文件及常用命令

    MySQL导入.sql文件及常用命令 在MySQL Qurey   Brower中直接导入*.sql脚本,是不能一次执行多条sql命令的,在mysql中执行sql文件的命令: mysql> so ...

最新文章

  1. PHP中的字符串 — 表示方法
  2. [转帖]Mootools源码分析-04 -- Array
  3. 科学前进的车轮永不停歇 2018-04-28
  4. 新书《活用UML-需求分析高手》详细大纲(持续更新中)
  5. Cracer渗透-windows基础(系统目录,服务,端口,注册表)
  6. mongo 记得开启验证 auth = true
  7. python function terminated un_绕过 RestrictedUnpickler
  8. server xcode 云服务器_SRT推流测试及服务器搭建
  9. docker build mysql,Docker创建MySQL容器的方法
  10. LVM逻辑卷分区笔记
  11. BAT中cd某个目录时,同时转换盘符
  12. 关于 签名验证失败 的问题
  13. Excel VBA入门(9):实例汇总
  14. linux下解压system.img,小白如何修改解包打包system.img
  15. 【微信小程序】使出千手浮图—回滚式
  16. P5520 [yLOI2019] 青原樱(排列组合)
  17. Python通知Epic白嫖游戏信息
  18. Kubernetes HPA 的三个误区与避坑指南
  19. TREC Real-Time Summarization Track
  20. GNSS-RTK/INS紧组合算法

热门文章

  1. 电商搜索推荐业务词汇表
  2. 互联网1分钟 |1229
  3. 你要的云小信是范爷?柳岩?还是奶茶MM?
  4. U盘容量减少的解决办法
  5. Avaya以1亿美元向Extreme销售网络业务
  6. android studio编译慢的问题
  7. MySQL管理一些基础SQL语句
  8. ASP.NET MVC XML绑定Action参数列表
  9. js正则表达式test()和exec()用法
  10. Html.ActionLink