- 积分
- 24
- 威望
-
- 金钱
-
- 注册时间
- 2013-9-25
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
发表于 2013-9-25 13:12:04
|
显示全部楼层
原帖由 licess 于 2011-2-21 19:58 发表
执行如下命令:
wget http://soft.vpser.net/lnmp/ext/reset-mysql-root-password.phps
php reset-mysql-root-password.phps 新密码
军哥, 我用了这样去重置忘了的密码 系统是ubuntu 还是无法登陆网页的phpmyind, cookies也清空了.
执行到最后有提示成功, 中间有警告
root@ubuntu:~# php reset-mysql-root-password.phps 123456aa
Stoping mysql
PHP Warning: shell_exec() has been disabled for security reasons in /root/reset-mysql-root-password.phps on line 13
starting with skip grant tables
PHP Warning: shell_exec() has been disabled for security reasons in /root/reset-mysql-root-password.phps on line 15
using mysql to flush privileges and reset password
PHP Notice: Undefined variable: return in /root/reset-mysql-root-password.phps on line 19
PHP Warning: system() has been disabled for security reasons in /root/reset-mysql-root-password.phps on line 19
PHP Notice: Undefined variable: return in /root/reset-mysql-root-password.phps on line 21
Password reset succesfully. Now killing mysqld softly
PHP Warning: shell_exec() has been disabled for security reasons in /root/reset-mysql-root-password.phps on line 28
sleeping
PHP Warning: shell_exec() has been disabled for security reasons in /root/reset-mysql-root-password.phps on line 30
restarting the actual mysql service
PHP Warning: system() has been disabled for security reasons in /root/reset-mysql-root-password.phps on line 32
Password successfully reset to "123456aa"
请问是哪里操作错误了呢 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
x
|