Chinaunix首页 | 论坛 | 博客
  • 博客访问: 116226
  • 博文数量: 84
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 0
  • 用 户 组: 普通用户
  • 注册时间: 2016-11-17 12:39
个人简介

大连Linux/Unix高端就业、认证培训的领导者。

文章分类

全部博文(84)

文章存档

2013年(25)

2012年(1)

2010年(4)

2009年(9)

2008年(14)

2007年(4)

2006年(27)

发布时间:2013-03-12 08:30:07

在my.cnf的[mysqld]字段加入:skip-grant-tables然后重启你的mysql,这样就没有密码了.然后进入mysql,重新更新你的root密码:update mysql.user set password=password('你的password') where user='root'成功后,刷新权限表:flush privileges;最后不要忘记去掉my.cnf中的skip-grant-tables并重.........【阅读全文】

阅读(764) | 评论(0) | 转发(0)
给主人留下些什么吧!~~

w6308661392013-03-26 17:04

gltnsrice:尹伊明:
a:
[root@localhost ~]# w | sed 's/\([....]\{4,\}\) .*/\1/'
[root@localhost ~]# w | cut -d' ' -f1 | sed 's/\(.....*\)/\1/g'
[root@localhost ~]# who | sed 's/\([^ ]\{4,\}\) .*/\1/'
[root@localhost ~]# who | grep '^[^ ]\{4,\}'


b:
[root@localhost home]# cat passwd | cut -d: -f3 | grep '[0-9]\{3,\}'
[root@localhost home]# cat passwd | cut -d: -f1,3 | grep '[0-9]\{3,\}'


d:
[root@localhost home]# ls -l | sed 's/  */*/g' | cut -d* -f9,5 | sort -n

回复  |  举报

gltnsrice2013-03-16 12:07

尹伊明:
a:
[root@localhost ~]# w | sed 's/\([....]\{4,\}\) .*/\1/'
[root@localhost ~]# w | cut -d' ' -f1 | sed 's/\(.....*\)/\1/g'
[root@localhost ~]# who | sed 's/\([^ ]\{4,\}\) .*/\1/'
[root@localhost ~]# who | grep '^[^ ]\{4,\}'


b:
[root@localhost home]# cat passwd | cut -d: -f3 | grep '[0-9]\{3,\}'
[root@localhost home]# cat passwd | cut -d: -f1,3 | grep '[0-9]\{3,\}'


d:
[root@localhost home]# ls -l | sed 's/  */*/g' | cut -d* -f9,5 | sort -n

回复  |  举报

rachel9892011-07-08 09:37

收藏~

回复  |  举报

chinaunix网友2009-03-01 23:49

老师 您这好久没更新啦。。。呵呵

回复 |  删除 |  举报

danya09252008-10-17 15:58

您好,我想了解一下您所开得课程。

回复  |  举报
留言热议
请登录后留言。

登录 注册