Zen Cart Logo
Forums / General Questions / Admin USer & Password no loner work.

Admin USer & Password no loner work.

Locked

Views: 8,842

Results 21 to 33 of 33
This thread is locked. New replies are disabled.
28 Jul 2008, 5:13 AM
#21
muteyaar avatar

muteyaar

Zen Follower

Join Date:
Oct 2007
Posts:
134
Plugin Contributions:
0

Admin USer & Password no loner work.

barco57:

do you have a prefix on your database tables? (i.e. zen_)

I think no. I am using the system as default.

28 Jul 2008, 5:16 AM
#22
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: Admin USer & Password no loner work.

you'll need to confirm whether or not you are using prefixes on the database. Easy to do in phpmyadmin...does the admin table just say admin or does it say zen_admin or something like that.

28 Jul 2008, 7:35 AM
#23
muteyaar avatar

muteyaar

Zen Follower

Join Date:
Oct 2007
Posts:
134
Plugin Contributions:
0

Re: Admin USer & Password no loner work.

Posted via Mobile Device

28 Jul 2008, 8:43 AM
#24
muteyaar avatar

muteyaar

Zen Follower

Join Date:
Oct 2007
Posts:
134
Plugin Contributions:
0

Re: Admin USer & Password no loner work.

When I run this command:

  DROP TABLE IF EXISTS admin;

CREATE TABLE admin (
admin_id int(11) NOT NULL auto_increment,
admin_name varchar(32) NOT NULL default '',
admin_email varchar(96) NOT NULL default '',
admin_pass varchar(40) NOT NULL default '',
admin_level tinyint(1) NOT NULL default '1',
PRIMARY KEY (admin_id),
KEY idx_admin_name_zen (admin_name)
) TYPE=MyISAM;

then the message I receive is this:

Your SQL query has been executed successfully

SQL query:
DROP TABLE IF EXISTS admin;# MySQL returned an empty result set (i.e. zero rows).
CREATE TABLE admin(
admin_id int( 11 ) NOT NULL AUTO_INCREMENT ,
admin_name varchar( 32 ) NOT NULL default '',
admin_email varchar( 96 ) NOT NULL default '',
admin_pass varchar( 40 ) NOT NULL default '',
admin_level tinyint( 1 ) NOT NULL default '1',
PRIMARY KEY ( admin_id ) ,
KEY idx_admin_name_zen( admin_name )
) TYPE = MYISAM ;# MySQL returned an empty result set (i.e. zero rows).

Now, you can see if the table consists of any prefix or not.

I have not much knowledge about this php and all that.
If you can help me, then i will be very thankful to you.

regards and hoping to receive an answer early.

28 Jul 2008, 8:48 AM
#25
muteyaar avatar

muteyaar

Zen Follower

Join Date:
Oct 2007
Posts:
134
Plugin Contributions:
0

Re: Admin USer & Password no loner work.

I found it ......

it is zen_admin in the table.
now what to do, please reply soon... thanks.

28 Jul 2008, 3:03 PM
#26
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: Admin USer & Password no loner work.

These are the sql statements that you need. Notice the only thing I changed was to put the zen_ before the table name.

 DROP TABLE IF EXISTS zen_admin;
CREATE TABLE zen_admin (
  admin_id int(11) NOT NULL auto_increment,
  admin_name varchar(32) NOT NULL default '',
  admin_email varchar(96) NOT NULL default '',
  admin_pass varchar(40) NOT NULL default '',
  admin_level tinyint(1) NOT NULL default '1',
  PRIMARY KEY  (admin_id),
  KEY idx_admin_name_zen (admin_name)
) TYPE=MyISAM;  

then

 INSERT INTO zen_admin VALUES (1, 'Admin', 'admin@localhost', '351683ea4e19efe34874b501fdbf9792:9b', 1);  

take notice of the difference Admin (username), admin (password)

28 Jul 2008, 3:31 PM
#27
muteyaar avatar

muteyaar

Zen Follower

Join Date:
Oct 2007
Posts:
134
Plugin Contributions:
0

Re: Admin USer & Password no loner work.

I pasted the same codes given by you in SQL tab.

the first code and then closed the run query window and then again opened it and pasted the second code.
But I am still unable to login using username Admin and password admin.

please suggest where am I wrong.

thanks.

28 Jul 2008, 7:10 PM
#28
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Admin USer & Password no loner work.

The Admin login page has a link to "Resend Password". Have you tried that?

Note: you would have to verify that "zen_admin" TABLE is using one of your eMail addresses.

29 Jul 2008, 2:56 AM
#29
muteyaar avatar

muteyaar

Zen Follower

Join Date:
Oct 2007
Posts:
134
Plugin Contributions:
0

Re: Admin USer & Password no loner work.

How can I check that the zen_admin table is using my email address : [email protected]

please help me, I am in real trouble.

or can you please check out my control panel and repair the thing?

29 Jul 2008, 3:21 AM
#30
muteyaar avatar

muteyaar

Zen Follower

Join Date:
Oct 2007
Posts:
134
Plugin Contributions:
0

Re: Admin USer & Password no loner work.

I looked up at the zen_admin table and found that the admin name is muteyaar and the admin email is [email protected] , which my own email address.

now what should I do? please suggest.
thanks.

30 Jul 2008, 7:19 AM
#31
muteyaar avatar

muteyaar

Zen Follower

Join Date:
Oct 2007
Posts:
134
Plugin Contributions:
0

Re: Admin USer & Password no loner work.

I got it cleared. Thanks a ton for your help.:-):-):-):-):-):-) > SHokuf:

I used this page: https://www.zen-cart.com/tutorials/index.php?article=2

And got the admin to login.
Posted via Mobile Device

9 Aug 2008, 3:21 PM
#32
madisonsam avatar

madisonsam

New Zenner

Join Date:
Aug 2008
Posts:
1
Plugin Contributions:
0

Re: Admin USer & Password no loner work.

when it asked to reset password, I enter email address and it says it has sent the new password, but it never arrives. Any help to find this file to change it manually??? HELP :)
Kathy

9 Aug 2008, 4:15 PM
#33
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Admin USer & Password no loner work.

You could reset your admin table in the database via phpMyAdmin using:

DROP TABLE IF EXISTS admin;
CREATE TABLE admin (
  admin_id int(11) NOT NULL auto_increment,
  admin_name varchar(32) NOT NULL default '',
  admin_email varchar(96) NOT NULL default '',
  admin_pass varchar(40) NOT NULL default '',
  admin_level tinyint(1) NOT NULL default '1',
  PRIMARY KEY  (admin_id),
  KEY idx_admin_name_zen (admin_name),
  KEY idx_admin_email_zen (admin_email)
) TYPE=MyISAM;
INSERT INTO admin VALUES (1, 'Admin', 'admin@localhost', '351683ea4e19efe34874b501fdbf9792:9b', 1);

This will set an account for you with theL
Login: Admin
Password: admin

NOTE: be sure to change these settings in the Tools ... Admin Settings ...

WARNING: This deletes ALL records in the admin table first and then adds a clean record ...