设为首页 加入收藏

TOP

MySQL入门——在Linux下安装和卸载MariaDB(二)
2019-09-17 15:48:54 】 浏览:26
Tags:MySQL 入门 Linux 安装 卸载 MariaDB
aDB
2 root user without the proper authorisation. 3 4 Set root password? [Y/n] Y 5 New password: 6 Re-enter new password: 7 Password updated successfully! 8 Reloading privilege tables.. 9 ... Success!

是否删除匿名用户:

1 By default, a MariaDB installation has an anonymous user, allowing anyone
2 to log into MariaDB without having to have a user account created for
3 them.  This is intended only for testing, and to make the installation
4 go a bit smoother.  You should remove them before moving into a
5 production environment.
6 
7 Remove anonymous users? [Y/n] 
8  ... Success!

是否允许root用户远程登录:

1 Normally, root should only be allowed to connect from 'localhost'.  This
2 ensures that someone cannot guess at the root password from the network.
3 
4 Disallow root login remotely? [Y/n] 
5  ... Success!

是否删除test数据库:

1 By default, MariaDB comes with a database named 'test' that anyone can
2 access.  This is also intended only for testing, and should be removed
3 before moving into a production environment.
4 
5 Remove test database and access to it? [Y/n] 
6  - Dropping test database...
7  ... Success!
8  - Removing privileges on test database...
9  ... Success!

是否重新加载权限表:

1 Reloading the privilege tables will ensure that all changes made so far
2 will take effect immediately.
3 
4 Reload privilege tables now? [Y/n] 
5  ... Success!

设置完成:

1 Cleaning up...
2 
3 All done!  If you've completed all of the above steps, your MariaDB
4 installation should now be secure.
5 
6 Thanks for using MariaDB!
7 [root@localhost ~]# 

卸载MariaDB

使用命令卸载安装包:

1 [root@localhost ~]# yum remove -y mariadb-libs
2 已加载插件:fastestmirror
3 正在解决依赖关系
4 --> 正在检查事务
5 ...
6 完毕!
7 [root@localhost ~]# 

查看卸载后的安装情况:

1 [root@localhost ~]# yum list installed | grep mariadb
2 [root@localhost ~]# 

表明已经从系统中卸载了。

首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇AWS Aurora数据库 Multi-Master .. 下一篇Flink+Druid构建实时OLAP的探索

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目