Mysql(mariadb)数据库安全

22 篇文章 6 订阅
安装完Mysql后,执行mysql_secure_installation进行安全配置,包括设置root用户密码,删除匿名账号,禁止root远程登录,移除test数据库及其权限,并刷新授权。
摘要由CSDN通过智能技术生成

  • Mysql(mariadb)配置安全向导

       在安装完Mysql之后,有必要对Mysql配置安全向导,去除安全隐患,提高数据库的安全性。

 

使用mysql_secure_installation命令会执行几个设置:

  1. 为root用户设置密码;
  2. 删除匿名账号;
  3. 取消root用户远程登录;
  4. 删除test库和对test库的访问权限;
  5. 刷新授权表使修改生效。
[root@mysql ~]# mysql_secure_installation



Securing the MySQL server deployment.



Enter password for user 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: 100

Change the password for root ? ((Press y|Y for Yes, any other key for No) :
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

afei00123

您的支持是我创作最大的动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值