Zen Cart Logo
Forums / General Questions / Unable to reset admin password in phpmyadmin…

Unable to reset admin password in phpmyadmin…

Views: 3,030

Results 1 to 8 of 8
26 Apr 2011, 6:33 AM
#1
eranariel avatar

eranariel

Zen Follower

Join Date:
Dec 2010
Location:
NYC
Posts:
104
Plugin Contributions:
4

Unable to reset admin password in phpmyadmin…

This is a continuation of the technical problem I have described in the following thread:
http://www.zen-cart.com/forum/showthread.php?t=178759
I think that I have been able to better isolate the problem for which I need a solution.
I moved my store to a new server – same host, however, on a server located in another geographic location.
I followed the instructions: https://www.zen-cart.com/tutorials/index.php?article=100 regarding moving the server: I manually adjusted the configure.php files, successfully ran the Fix_Cache_Key, and accordingly removed it from the server as per the instructions.
The problem, however, seems not with moving to the new server but with accessing the admin… I need to reset the password, however, I am unable to do so in phpmyadmin..
I followed the instructions in:https://www.zen-cart.com/tutorials/index.php?article=2 However, to no avail. #1146 - Table 'eranariel.admin' doesn't exist - This seemed quite puzzling, therefore, I tried to test this with my old installation (that is still up and running) and I received the exact same error and my previous name - password remained in tack with the previous installation.

26 Apr 2011, 9:34 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Unable to reset admin password in phpmyadmin…

Does that table (eranariel.admin) in fact exist ? Are you using that table prefix in either site ?

26 Apr 2011, 12:21 PM
#3
eranariel avatar

eranariel

Zen Follower

Join Date:
Dec 2010
Location:
NYC
Posts:
104
Plugin Contributions:
4

Re: Unable to reset admin password in phpmyadmin…

Thanks for the reply... I am not using any prefixes such as that one...

it seems as if this table does not exist... let me check again, however, MySQL provided me with a message that it does not exist..

26 Apr 2011, 2:02 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Unable to reset admin password in phpmyadmin…

It sounds like you added that prefix to the SQL query outlined in the tutorial, and since you aren't using a prefix, it can't find that table. Make sure it just says admin in the query.

27 Apr 2011, 11:34 AM
#5
eranariel avatar

eranariel

Zen Follower

Join Date:
Dec 2010
Location:
NYC
Posts:
104
Plugin Contributions:
4

Re: Unable to reset admin password in phpmyadmin…

Thanks Steve,

This is an enigma... exactly where can I remove this prefix...
I cannot see it in any of the tables... I'll check again...

Eran

27 Apr 2011, 11:50 AM
#6
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Unable to reset admin password in phpmyadmin…

My thinking was that you may have once used a prefix and had modified the SQL query in the tutorial you mentioned to include it:

"If you are using a prefix for your database tables, you'll naturally need to add that prefix to the table name above.
ie. "... FROM/INTO prefix_admin ...".

27 Apr 2011, 4:48 PM
#7
eranariel avatar

eranariel

Zen Follower

Join Date:
Dec 2010
Location:
NYC
Posts:
104
Plugin Contributions:
4

Re: Unable to reset admin password in phpmyadmin…

I am still not sure that I understand...all of the prefixes in are Zen_
or something in that context... where should I look in my database?

Eran

1 May 2011, 12:11 PM
#8
eranariel avatar

eranariel

Zen Follower

Join Date:
Dec 2010
Location:
NYC
Posts:
104
Plugin Contributions:
4

Re: Unable to reset admin password in phpmyadmin…

OK... I got it...

I was not sure where to place the prefix in the SQL query

DELETE FROM zen_admin WHERE admin_name = 'Admin';
INSERT INTO zen_admin (admin_name, admin_email, admin_pass, admin_level)
VALUES ('Admin', 'admin@localhost', '351683ea4e19efe34874b501fdbf9792:9b', 1);