Zen Cart Logo
Forums / General Questions / Can't login to my admin - database table missing

Can't login to my admin - database table missing

Locked

Views: 1,771

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
4 Oct 2010, 2:33 PM
#1
gg66 avatar

gg66

New Zenner

Join Date:
Jul 2006
Posts:
25
Plugin Contributions:
0

Can't login to my admin - database table missing

Hi,

I can't login to my admin using current username and password.. I've tried password resend but it doesn't work.

I've also tried accessing the database to reset the password (using this query https://www.zen-cart.com/tutorials/index.php?article=2) but I get an error

 MySQL said: Documentation
#1146 - Table 'database_name.admin' doesn't exist 

Now, I suspect the site has been hacked. any advice appreciated

Thanks

4 Oct 2010, 6:48 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Can't login to my admin - database table missing

I've also tried accessing the database to reset the password
Might your DB have a prefix?

Look in your confidure.php file for what it might be

define('DB_PREFIX', 'pre_fix_here');

Or just look when in phpmyadmin

4 Oct 2010, 8:07 PM
#3
gg66 avatar

gg66

New Zenner

Join Date:
Jul 2006
Posts:
25
Plugin Contributions:
0

Re: Can't login to my admin - database table missing

Thanks for the reply,

I checked and there is no prefix ....

Any ideas appreciated

4 Oct 2010, 8:16 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Can't login to my admin - database table missing

Use phpmyadmin and look at the db tables
Do you see obne named 'admin' ?

4 Oct 2010, 8:39 PM
#5
gg66 avatar

gg66

New Zenner

Join Date:
Jul 2006
Posts:
25
Plugin Contributions:
0

Re: Can't login to my admin - database table missing

No, it's not there ..

In alphabetical order it goes from address format to banners - no admin

4 Oct 2010, 9:07 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Can't login to my admin - database table missing

No, it's not there ..
Well it needs to be and did exist if you ever could login

Do you have a DB backup?
Or your Host?

You will need to replace this or recreate it

BTW what version of ZenCart and how many tables exist?

5 Oct 2010, 9:35 PM
#7
gg66 avatar

gg66

New Zenner

Join Date:
Jul 2006
Posts:
25
Plugin Contributions:
0

Re: Can't login to my admin - database table missing

This site was really old and I've confirmed the site has been hacked.

Will create a new installation and migrate