Unable to log in to localhost wp-admin page on XAMPP server

admin2025-01-07  4

I am a newbie who recently start working on XAMPP and I am unable to access wp-admin on XAMPP server localhost. While installing WordPress, it asked me for user name and password too but when I am trying to access wp-admin with username and password, it says "INVALID USER NAME". As far as I know, I am putting the correct username and password here.

Please suggest how to login back and where will I get the correct user details.

Thanks

I am a newbie who recently start working on XAMPP and I am unable to access wp-admin on XAMPP server localhost. While installing WordPress, it asked me for user name and password too but when I am trying to access wp-admin with username and password, it says "INVALID USER NAME". As far as I know, I am putting the correct username and password here.

Please suggest how to login back and where will I get the correct user details.

Thanks

Share Improve this question edited Jul 6, 2019 at 22:12 butlerblog 5,0713 gold badges26 silver badges42 bronze badges asked Mar 6, 2017 at 8:07 archit chopraarchit chopra 111 silver badge2 bronze badges 1
  • Did you check the caps lock key? – Fayaz Commented Mar 12, 2017 at 7:38
Add a comment  | 

2 Answers 2

Reset to default 0

I have just run into the same problem but I fixed it by doing the following:

1. Go back to phpmyadmin (The url should be similar to this : http://localhost:8080/phpmyadmin/)

2. Click your database name in order to display tables

3. Choose the table wp_users (if you've changed the wp_ prefix to something else when installing wordpress,

then it should be "yourNewPrefix_users".) and click on it to open rows.

4. You will just notice that it has only one row. What you have to do is to click "edit" in order to edit columns

5. Some columns will pop up. Only one column causes the password issue: the column name is as follow:

user_pass  |  varchar(255)  |   box (please click on it and select MD5  |  box (just delete whatever

you see in that box) and type any password (it may be your old password that did not work for you

previously while attempting to login) and hit Go to save your changes.

6. go back to your browser now and try to login again to wp-admin

You could also just go to file manager on your system, navigate to your xamp wordpress directory, open wp-config.php and see what the actual saved username and password are.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1736257315a428.html

最新回复(0)