php - How to login to admin or backend if magento database is deleted -


i working magento , mistake deleted whole magento database, on opening magento again localhost new database generated successfully.

but problem not able login in backend.

i created admin user in admin_user table user name admin , entered password encrypted md5, tried following query

update admin_user set password=concat(md5('qxpassword'), ':qx') username='admin'; 

but don't me.

can tell me how can login backend.

"parent role id ‘g1’ not exist"

error message displayed on login admin

i using 1.7 version

magento is database. if you've managed delete it, start scratch.

remove app/etc/local.xml file, drop tables in magento database, database credentials , let magento recreate complete database table structure scratch.

anything else means start in sort of unknown state system becomes totally unusable.


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -