cancel
Showing results for 
Search instead for 
Did you mean: 

Help ! No Admin after reinstalling Magento

Help ! No Admin after reinstalling Magento

Hey
i just reinstalled Magento , just fixed the typical errors. But now I have a new problem: on my local server i only had one Admin whose data is still in the local.xml file , but I cant log in and when I look for the admin_user in the php myadmin , there is nothing in there . What shall I do ? I cant access the backend like this ...
Thank you for your help !
Greetings from germany
4 REPLIES 4

Re: Help ! No Admin after reinstalling Magento

One easy way of doing it would be with the magerun tool. If you download and install this following the installation section of the readme, one of the commands it provides is the ability to create an admin user from command line. 

 

$ n98-magerun.phar admin:user:create [username] [email] [password] [firstname] [lastname] [role]
----
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution" as appropriate. Thanks!

Re: Help ! No Admin after reinstalling Magento

Thank you so much !

I will try that right now Smiley Happy

Re: Help ! No Admin after reinstalling Magento

Do you know if I can also do it via the phpmyamdin page ?

Maybe with SQL ?

Because I dont know how to install Magerun correctly

Re: Help ! No Admin after reinstalling Magento