osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Resetting admin password after upgrade

This is a discussion on Resetting admin password after upgrade within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; I have successfully upgraded osC2.2 to MS2-MAX 1.5. I used mysqldiff to upgrade the database. It was not without errors, ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 02-26-2004, 08:33 AM
chrismole's Avatar
Active Member
 
Join Date: Dec 2003
Location: Chicago
Posts: 102
Thanks: 2
Thanked 2 Times in 2 Posts
Rep Power: 5
chrismole
Default Resetting admin password after upgrade

I have successfully upgraded osC2.2 to MS2-MAX 1.5. I used mysqldiff to upgrade the database. It was not without errors, but they were minor. I highly recommend mysqldiff for an upgrade. It's available with a web interface - http://www.mysqldiff.org/.

Anyway, after updating the database, I copied the catalog and admin directories from another site I admin that's using MS2-MAX 1.5. The front-end seems to work ok. However, I am trying to log in to the admin site using the admin account from the other site, and it does not work. Also, the "forgot password" email is not working either. So, I am unable to login to the admin site.

Is there a way to manually reset the admin account?

thanks,
Chrismole
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 02-26-2004, 01:38 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,990
Thanks: 80
Thanked 345 Times in 324 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

Use the default admin login, not the credentials from your other site. Unless you copied the credentials into the new database, they will not be in there...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 02-26-2004, 01:50 PM
chrismole's Avatar
Active Member
 
Join Date: Dec 2003
Location: Chicago
Posts: 102
Thanks: 2
Thanked 2 Times in 2 Posts
Rep Power: 5
chrismole
Default

I tried that and it does not work.

What I did was, I copied the ocC2.2 db and ran the diff on it and an MM1.5 db. I used the resulting sql to upgrade the osC2.2 db to a MM1.5 db. So there was never username/password values in the new db. Is it possible that the values are empty? How can this be fixed?

Thanks,
Chrismole
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 02-26-2004, 05:54 PM
Member
 
Join Date: Jan 2004
Location: edmonton, Alberta, Canada
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
peteyg
Default

i HIGHLY doubt the fields were empty. But you may have to add them yourself if you know the means of accessing your database.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 02-26-2004, 07:55 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,990
Thanks: 80
Thanked 345 Times in 324 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

Yes, the values are empty.

All the mysqldiff does is change the data structure, you still have to add the actual data to the new tables.

Export all the data from the configuration and admin tables of the max db, and import them into the upgraded database.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 02-26-2004, 08:35 PM
chrismole's Avatar
Active Member
 
Join Date: Dec 2003
Location: Chicago
Posts: 102
Thanks: 2
Thanked 2 Times in 2 Posts
Rep Power: 5
chrismole
Default

masaek,

Quote:
Export all the data from the configuration and admin tables of the max db, and import them into the upgraded database.
I am not sure I follow you. My current db is the upgraded db. I took an osC2.2 db and upgraded it to a max db. In so doing, I created data fields that did not exist in the osC2.2 db (it did not have a web login interface, I had been using authentication). So now I've got an updated db with no data in the admin username and password fields. Can I simply write an INSERT statement to plug a username and password into the max db?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 02-27-2004, 06:07 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,795
Thanks: 5
Thanked 104 Times in 90 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
Default

Using MySQLDiff - only upgrades the database FORMAT and tables - Where MS2-MAX has both NEW tables and in the NEW tables is NEW data ALSO! When you update your OLD table - it does NOT bring in this NEW data. You have to input that separatly. (Same with any new/added configuration values)
__________________
JPF - osCMax Fourm Moderator
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 02-27-2004, 07:38 AM
chrismole's Avatar
Active Member
 
Join Date: Dec 2003
Location: Chicago
Posts: 102
Thanks: 2
Thanked 2 Times in 2 Posts
Rep Power: 5
chrismole
Default

I understand that there is no data in some of the newly created/formatted tables. Are you suggesting that I append all the data from the original max db into my newly converted max db? If so, do you have any direction on how to do this? Rather, can I just import the admin account info? Or is there a lot of other stuff that will be broke because there is no data?

Thanks,
Chrismole
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 02-27-2004, 08:55 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,990
Thanks: 80
Thanked 345 Times in 324 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

chrismole, it is not that complicated.

You updated the structure to add the new tables. Now, in order for the 'Max' features to work, you have to add the 'admin' and 'configuration' table DATA. These tables need to be populated with the Max configuration values, so, from the MAX db, export the DATA only from those tables to an sql file.

Then in your new upgraded DB, run the batch file. It will populate those tables with your default data so that you can login and start customizing. MAX cannot run without this data.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 02-27-2004, 08:56 AM
Member
 
Join Date: Jan 2004
Location: edmonton, Alberta, Canada
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
peteyg
Default

Try importing the admin data from your old DB into the newly upgraded DB. or try setting it up back to the default manually here are the values under the admin table. admin_id = 1 admin_groups_id =1 admin_firstname = Default admin_lastname = Admin admin_email_address = admin@localhost.com admin_password = 05cdeb1aeaffec1c7ae3f12c570a658c:81 admin_created =2003-07-17 11:35:03 admin_modified = 2003-08-02 19:43:11 admin_logdate = 2004-02-26 21:22:36 admin_lognum = 95
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Resetting Customer Password goaskmom osCMax v1.7 Discussion 1 03-07-2005 09:14 AM
Admin password vinces osCMax v1.7 Discussion 3 11-21-2004 01:04 PM
Admin password out of sync with site password bjrafferty osCMax v1.7 Discussion 3 07-19-2004 09:34 AM
No password in Admin goldie osCommerce 2.2 Modification Help 2 08-26-2003 02:33 PM
Admin password? pilot1 osCommerce 2.2 Installation Help 2 05-06-2003 02:23 AM


All times are GMT -8. The time now is 03:12 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax