Forums / Upgrading to 1.5.x / Upgraded from 1.3.7 to 1.5.3 BUT database does not seem to be there

Upgraded from 1.3.7 to 1.5.3 BUT database does not seem to be there

Views: 2,538

Results 1 to 20 of 34
1 Feb 2015, 6:38 PM
#1
petestownrich avatar

petestownrich

New Zenner

Join Date:
May 2014
Location:
Jonesboro, Arkansas
Posts:
58
Plugin Contributions:
0

Upgraded from 1.3.7 to 1.5.3 BUT database does not seem to be there

OK.... I made a copy of my original database then I renamed it. I made the modifications to the new site and uploaded it to a sub directory. I ran the zen-cart install answered all the questions!

http://www.petestown.com here is the working site.

http://www.petestowntest.com here is the test site.

It just seems the database is just not there? Did i do wrong by making a copy of the old database and renaming it? I have read several posts here in the forum but the database is not my strong suite shall i say.

1 Feb 2015, 10:57 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Upgraded from 1.3.7 to 1.5.3 BUT database does not seem to be there

Here's the instructions that are ideal to follow:

http://www.zen-cart.com/entry.php?3-How-do-I-rebuild-my-site-on-the-new-version-instead-of-upgrading

As to renaming the database, technically can do whatever you want, but you have to keep track of the bits and pieces so that they all still fit together...

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

2 Feb 2015, 4:00 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Upgraded from 1.3.7 to 1.5.3 BUT database does not seem to be there

petestownrich:

It just seems the database is just not there? Did i do wrong by making a copy of the old database and renaming it? I have read several posts here in the forum but the database is not my strong suite shall i say.

In all the upgrade documentation and all the FAQs about setting up a new server or moving to a new server (all similar actions) it reminds you that when you're copying a database from one server to another, you MUST use the same DB_PREFIX on the new server as what was on the old server, else Zen Cart will look at the wrong tablenames in your database.

So ... it's simple:
a) when installing the new site, simply provide the correct prefix to start with
or
b) if you screwed that up, go look at DB_PREFIX in the /includes/configure.php of the old server and make DB_PREFIX on the new server be the same thing. Repeat for the admin configure.php file too.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

2 Feb 2015, 2:47 PM
#4
petestownrich avatar

petestownrich

New Zenner

Join Date:
May 2014
Location:
Jonesboro, Arkansas
Posts:
58
Plugin Contributions:
0

Re: Upgraded from 1.3.7 to 1.5.3 BUT database does not seem to be there

Thanks Doc you just helped a bunch. I appreciate that.

2 Feb 2015, 2:58 PM
#5
petestownrich avatar

petestownrich

New Zenner

Join Date:
May 2014
Location:
Jonesboro, Arkansas
Posts:
58
Plugin Contributions:
0

Re: Upgraded from 1.3.7 to 1.5.3 BUT database does not seem to be there

Hi Doc

OLD

// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
define('DB_SERVER', 'p3nl41mysql5.secureserver.net');
define('DB_SERVER_USERNAME', 'petesdbgodaddy');
define('DB_SERVER_PASSWORD', 'XXXXXXXXXXX');
define('DB_DATABASE', 'petesdbgodaddy');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage

NEW

// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
define('DB_CHARSET', 'utf8');
define('DB_SERVER', 'petesdb2godaddy.db.3390044.hostedresource.com');
define('DB_SERVER_USERNAME', 'petesdb2godaddy');
define('DB_SERVER_PASSWORD', 'XXXXXXXXX');
define('DB_DATABASE', 'petesdb2godaddy');

They are the same. But one thing dies bother me. When I ran the installer it did not ask me about a database upgrade. It just asked for database information? Did I miss it?

2 Feb 2015, 5:20 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Upgraded from 1.3.7 to 1.5.3 BUT database does not seem to be there

Given that the prefixes are the same and it's not suggesting an upgrade, it sounds like you've not successfully imported the data from the old db into the new db.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

2 Feb 2015, 7:39 PM
#7
petestownrich avatar

petestownrich

New Zenner

Join Date:
May 2014
Location:
Jonesboro, Arkansas
Posts:
58
Plugin Contributions:
0

Re: Upgraded from 1.3.7 to 1.5.3 BUT database does not seem to be there

Ok Doc....I dont know why but I should have went and physically looked but i did not. I appreciate the direction and I will play from there.

3 Feb 2015, 5:29 PM
#8
petestownrich avatar

petestownrich

New Zenner

Join Date:
May 2014
Location:
Jonesboro, Arkansas
Posts:
58
Plugin Contributions:
0

Re: Upgraded from 1.3.7 to 1.5.3 BUT database does not seem to be there

OK..... So I restored the database again and I now have product SOME WHAT!.. When I go to the control panel it tells me I need to do a database upgrade using the ZEN-CART install program? So do I need to just start all over?

3 Feb 2015, 5:42 PM
#9
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Upgraded from 1.3.7 to 1.5.3 BUT database does not seem to be there

petestownrich:

OK..... So I restored the database again and I now have product SOME WHAT!.. When I go to the control panel it tells me I need to do a database upgrade using the ZEN-CART install program? So do I need to just start all over?

No, now is when you reupload the zc_install folder, run zc_install and do a database upgrade and then remove the zc_install folder... Links and posts in this thread previously provided cover this aspect in more detail.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

3 Feb 2015, 5:57 PM
#10
petestownrich avatar

petestownrich

New Zenner

Join Date:
May 2014
Location:
Jonesboro, Arkansas
Posts:
58
Plugin Contributions:
0

Re: Upgraded from 1.3.7 to 1.5.3 BUT database does not seem to be there

Hi MC yes I went back up and read that. One thing I dont understand... do I need to rename the folder that SHOULD BE CALLED ADMIN back to ADMIN? I am getting a 404 error denied access? I am in the test site of coarse and reloaded the zc_install folder via FTP

3 Feb 2015, 6:27 PM
#11
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Upgraded from 1.3.7 to 1.5.3 BUT database does not seem to be there

petestownrich:

Hi MC yes I went back up and read that. One thing I dont understand... do I need to rename the folder that SHOULD BE CALLED ADMIN back to ADMIN? I am getting a 404 error denied access? I am in the test site of coarse and reloaded the zc_install folder via FTP

No need to rename admin, also no need to make configure.php files writeable. This process is all about the contents of the database, not how to reach it, or other setup aspects. As to the 404 error, well, that I thought has been some of the story of the thread. :P be sure the files are loaded where they should be. And I'm not trying to be any sort of pain in the backside... The zc_install folder should be in the same folder that has folders such as images, includes, and other folders that are in the root of your store.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

3 Feb 2015, 9:30 PM
#12
petestownrich avatar

petestownrich

New Zenner

Join Date:
May 2014
Location:
Jonesboro, Arkansas
Posts:
58
Plugin Contributions:
0

Re: Upgraded from 1.3.7 to 1.5.3 BUT database does not seem to be there

ok... so i followed the instructions.... BUT when I try and do the database upgrade I am getting the error about username and password? I have read some other posts but have not been able to get it to work. So I am back to the same point again?

3 Feb 2015, 9:33 PM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Upgraded from 1.3.7 to 1.5.3 BUT database does not seem to be there

Run zc_install. What are the PHP and MySQL versions it's reporting?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

3 Feb 2015, 9:33 PM
#14
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Upgraded from 1.3.7 to 1.5.3 BUT database does not seem to be there

petestownrich:

ok... so i followed the instructions.... BUT when I try and do the database upgrade I am getting the error about username and password? I have read some other posts but have not been able to get it to work. So I am back to the same point again?

You should be using/trying admin credentials applicable to the database that was imported. If that is not working, please report back. (Do so also if it works. :) helps the next person that reads this thread.)

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

3 Feb 2015, 9:37 PM
#15
petestownrich avatar

petestownrich

New Zenner

Join Date:
May 2014
Location:
Jonesboro, Arkansas
Posts:
58
Plugin Contributions:
0

Re: Upgraded from 1.3.7 to 1.5.3 BUT database does not seem to be there

ok.... you mean the DATABASE username and password! I will try right now

3 Feb 2015, 9:50 PM
#16
petestownrich avatar

petestownrich

New Zenner

Join Date:
May 2014
Location:
Jonesboro, Arkansas
Posts:
58
Plugin Contributions:
0

Re: Upgraded from 1.3.7 to 1.5.3 BUT database does not seem to be there

PHP is 5.2.17 MYSQL 5.5.19 and still have no products?

3 Feb 2015, 9:50 PM
#17
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Upgraded from 1.3.7 to 1.5.3 BUT database does not seem to be there

No, it's not asking for the MySQL password.

zc_install needs the password for the administrator of the store so that it can authorize doing an upgrade.
So, when you import the database from another site, it's THAT site's administrator password that's needed.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

3 Feb 2015, 9:51 PM
#18
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Upgraded from 1.3.7 to 1.5.3 BUT database does not seem to be there

petestownrich:

ok.... you mean the DATABASE username and password! I will try right now

Should be the admin credentials that have been previously used for the store that was upgraded. It may take more than one try if they have expired. As in when you used to log into the admin panel of the store that has been upgraded, the credentials entered then are what should be entered now.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

3 Feb 2015, 9:51 PM
#19
petestownrich avatar

petestownrich

New Zenner

Join Date:
May 2014
Location:
Jonesboro, Arkansas
Posts:
58
Plugin Contributions:
0

Re: Upgraded from 1.3.7 to 1.5.3 BUT database does not seem to be there

PHP is 5.2.17 MYSQL 5.5.19 and still have no products?

Yes I tried my username and password from the admin control panel as well

3 Feb 2015, 9:51 PM
#20
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Upgraded from 1.3.7 to 1.5.3 BUT database does not seem to be there

petestownrich:

PHP is 5.2.17
Ya, that could be a problem. It works much better with PHP 5.3.7 or newer.
And officially the PHP folks have stopped supporting 5.3.x, so better to use 5.4 or 5.5 or 5.6.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.