简体   繁体   English

如果删除了magento数据库,如何登录到管理员或后端

[英]How to login to admin or backend if magento database is deleted

I was working with magento and by mistake I deleted whole magento database, but on opening magento again from localhost new database was generated successfully. 我正在使用magento,并且错误地删除了整个magento数据库,但是从本地主机再次打开magento时,成功生成了新数据库。

But now the problem is that I am not able to login in backend. 但是现在的问题是我无法登录后端。

I created admin user in admin_user table with user name as admin and entered password encrypted with MD5, I also tried with the following query 我在admin_user表中创建了admin用户,用户名为admin,并输入了用MD5加密的密码,我也尝试了以下查询

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

But this also don't help me. 但这也无济于事。

Can anyone tell me now how can I login to backend. 现在谁能告诉我如何登录后端。

"Parent Role id 'G1' does not exist" “父母角色ID'G1'不存在”

error message is displayed on login as admin 以管理员身份登录时显示错误消息

I am using 1.7 version 我正在使用1.7版本

Magento IS the database. Magento IS是数据库。 If you've managed to delete it, you start from scratch. 如果您设法删除它,则从头开始。

Remove your app/etc/local.xml file, drop all the tables in the Magento database, get your database credentials together and let Magento recreate the complete database table structure from scratch. 删除您的app / etc / local.xml文件,将所有表拖放到Magento数据库中,将数据库凭证放在一起,然后让Magento从头开始重新创建完整的数据库表结构。

Anything else means you start up in some sort of unknown state where the system eventually becomes totally unusable. 其他任何事情都意味着您以某种未知状态启动,最终系统最终变得完全无法使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM