php - i can't login to my magento backend
I installed magento 2.1.1 on a WAMP Server and the installation was successful. I was able to login to backend of the Magento but everything changed when i installed a theme. According to the documentation of the theme I have to create a new database inphpmyadmin
and import adatabase.sql
which came with the theme.
After this I have to editapp/etc/env.php
and change the following:dbname
,username
andpassword
with the one I use when creating the database. I followed the procedure and everything worked well but since then I couldn't login to the back-end of the Magento. I have search on the internet for two days now but all posts which I found couldn't resolve my issue so far.
Please help me. Thanks
Answer
Solution:
If you have changed your database to another, then the user you originally created won't exist anymore for the Magento install to let you in.
In this case, you're best off creating a new admin user.
You can do this using the Magento commmand line tool:
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: foreign key constraint is incorrectly formed laravel
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.