1、问题一:使用update mysql.user set password='root'修改密码后,不能登录
解决:操作步骤如下。
(1)关闭mysql(杀掉mysqld进程),然后使用命令:
mysqld --skip-grant-tables
(2)启动数据库,就可以正常连接了
(3)接着清除root密码:
update mysql.user set password=null
...
分类:
数据库 时间:
2015-07-16 16:42:20
阅读次数:
158
<head>
<script?type="text/javascript">
</script>
</head>
<body?onmousemove="closesubnav(event);">
<div?class="skipLinks">skip?to:?<a?href="#content">page?content</a>?|?<a?href="#pageNav"...
分类:
其他好文 时间:
2015-07-15 17:12:35
阅读次数:
113
You Gotta Care About the CodePete GoodliffeIT DOESN’T TAKE SHERLOCK HOLMES to work out that good programmers write good code. Bad programmers…don’t. They produce monstrosities that the rest of us have...
分类:
其他好文 时间:
2015-07-15 13:26:23
阅读次数:
110
1. 停止mysqld; /etc/init.d/mysql stop2. 用以下命令启动MySQL,以不检查权限的方式启动; mysqld --skip-grant-tables &3. 然后用空密码方式使用root用户登录 MySQL; mysql -u root4. 修改root用户的密...
分类:
数据库 时间:
2015-07-15 01:17:07
阅读次数:
185
不小心误删了mysql.user 表里的记录,导致mysql无法登陆。怎么办?看下面。1.net stop mysql //停止mysql服务(以管理员身份,在cmd命令行下运行)2. mysqld –skip-grant-tables //启动mysql数据库不关闭以...
分类:
其他好文 时间:
2015-07-14 20:00:30
阅读次数:
111
1. 忘记root密码编辑mysql主配置文件 my.cnf 在[mysqld]字段下添加参数skip-grant,重启数据库服务,这样就可以进入数据库不用授权了 mysql -uroot ,修改相应用户密码 use mysql; update user set password=password(...
分类:
数据库 时间:
2015-07-14 15:13:12
阅读次数:
175
方法,网上的办法是在my.ini的“[mysqld]”下面加入一行“skip-name-resolve”,就像这样:然后保存并重启mysql服务即可。service mysqld restart所谓反向解析是这样的:mysql接收到连接请求后,获得的是客户端的ip,为了更好的匹配mysql.user...
分类:
数据库 时间:
2015-07-12 18:51:40
阅读次数:
172
There are a total of n courses you have to take, labeled from 0 to
n - 1.
Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is expressed as a p...
分类:
其他好文 时间:
2015-07-12 17:31:21
阅读次数:
130
Well, remember to take advantage of the property of binary search trees, which is, root -> left -> val val right -> val. Moreover, both p and q will.....
分类:
其他好文 时间:
2015-07-11 15:02:07
阅读次数:
176
经常会跑很多个ubuntu虚拟机,每次安装系统都需要查找一系列命令来配置,因此做一总结。1.安装的时候一定要断网,在开始下载文件的阶段,双击进度条上方,会跳出skip按钮,一路点击,直到最后,这样极大的节省了安装时间。2.安装完成之后第一步需要更新源,主要步骤如下: a.备份原来的源 sudo cp...
分类:
系统相关 时间:
2015-07-08 16:06:30
阅读次数:
160