重置magento后台用户密码

进入相应数据库以后,运行select * from admin_user;查看所有后台用户信息.

update admin_user set password=CONCAT(MD5('qXpassword),':qX') where username='admin'; //执行完这条语句即可用admin/password登录后台. 也可以把sql语句里的password换成你需要的密码



Resetting Admin Password

Last modified by  naitsirch on Fri, June 24, 2011 04:38
Source | Old Revisions  

It seems like the password must be typed and not copy/paste at least on the install part. good to know ;o)

The default login is : admin The default password is : 123123

If you are having troubles and want to reset it to a different password, just run at your sql database:

  1. SELECT *  FROM admin_user;

Then, find the username you want to modify in the listing provided - ‘admin’ in this example. Then, to update the password, type:

  1. UPDATE admin_user  SET password=CONCAT (MD5 ( 'qXpassword' )':qX' )  WHERE username= 'admin';

‘qX’ would be changed to whatever you want it to be and same goes for ‘password’

You can also do this in phpMyAdmin, find the admin_user field and choose MD5 when updating password.

If you want to add a new admin user, you must not only create a new entry in the table ‘admin_user’, but you also have to insert an entry in the table ‘admin_role’ which has to be associated with the user by the field ‘user_id’.

文章转自: http://www.magentocommerce.com/wiki/recover/resetting-admin-password

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值