VPS侦探论坛

 找回密码
 注册
查看: 8935|回复: 3

mysql密码忘了

[复制链接]
发表于 2011-2-21 18:25:01 | 显示全部楼层 |阅读模式

请问有什么快捷的解决方法,我装完lnmp,然后进入phpmyadmin,用户写root,密码不知道该写什么了,好像其他密码都不对,请问有重置的方法吗?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-2-21 19:58:38 | 显示全部楼层

回复 1# 的帖子



执行如下命令:
wget http://soft.vpser.net/lnmp/ext/reset-mysql-root-password.phps
php reset-mysql-root-password.phps 新密码
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 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
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2013-9-25 15:43:18 | 显示全部楼层

回复 3# 的帖子




php的system函数被禁用,使用http://lnmp.org/faq.html 这里面的新方法和脚本
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-12-26 02:09 , Processed in 0.027003 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表