军哥, 我用了这样去重置忘了的密码 系统是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"