摘要: sudo 身份提权(更安全) su 命令在切换用户身份时,如果每个普通用户都能拿到root用户的密码,当其中某个用户不小心泄漏了root的密码,那系统会变得非常不安全。 为了改进这个问题,从而产生了sudo这个命令。 sudo 执行一个仅有root身份才能执行的命令是可以办到的,但是需要输入密码,这 阅读全文
posted @ 2020-07-13 21:00 等等马上就好 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 1.mysql启动关闭流程 1.启动数据库 1.systemctl start mysqld 2./etc/init.d/mysqld start 3.mysqld_safe --defaults-file=/etc/my.cnf 4.mysqld --defaults-file=/etc/my.c 阅读全文
posted @ 2020-07-13 15:02 等等马上就好 阅读(298) 评论(0) 推荐(0) 编辑
摘要: ####1.授权命令 grant all on *.* to root@'localhost' identified by '123'; grant all privileges on *.* to root@'localhost' identified by '123'; grant #授权命令 阅读全文
posted @ 2020-07-13 14:56 等等马上就好 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 1.在MySQL中,用户是怎么定义的 #mysql中,定义一个用户是: 用户名@'主机域' #用户名写法: 用户名如果是字符: mysql> create user root@'10.0.0.1'; 用户名是数字需要加引号: mysql> create user '123'@'10.0.0.1'; 阅读全文
posted @ 2020-07-13 14:41 等等马上就好 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 1.编译安装区别 #5.7在编译安装的时候多了一个boostorg库 [root@db02 mysql-5.7.20]# yum install -y gcc gcc-c++ automake autoconf [root@db02 mysql-5.7.20]# yum install make c 阅读全文
posted @ 2020-07-13 14:37 等等马上就好 阅读(6388) 评论(1) 推荐(0) 编辑