Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Installing on a Windows Server / SQL Install file does not exist

SQL Install file does not exist

Locked

Started by losse on 19 Aug 2010, 5:58 PM · Views: 3,219

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
19 Aug 2010, 5:58 PM
#1
losse avatar

losse

New Zenner

Join Date:
Aug 2010
Posts:
11
Plugin Contributions:
0

SQL Install file does not exist

Hi
I'm running the database upgrade off zc_install. I get this error when trying to run it:

SQL Install file does not exist
The installer could not find the required .SQL install file. This should exist within the 'zc_install/sql' directory and be called something like 'mysql_zencart.sql'.

When I look in the zc_install/sql folder, the file is there! Just wondering why it's doing that. I tried changing the permissions to 777 but that didn't work either.

What I'm trying to do is get the "Your database appears to need patching to a higher level. See Admin->Tools->Server Information to review patch levels." error off my homepage.

24 Aug 2010, 4:00 PM
#2
losse avatar

losse

New Zenner

Join Date:
Aug 2010
Posts:
11
Plugin Contributions:
0

Re: SQL Install file does not exist

Anyone? I'm surprised no one else is experiencing this!?

24 Aug 2010, 10:56 PM
#3
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: SQL Install file does not exist

I'm surprised no one else is experiencing this

Actually, it is a common occurence - but only on Windows servers. If Windows servers were people they wouldn't be able to find their own way home in the dark.

There are two possible solutions:

  1. Hardcode the full pathway to the sql file in all affected files.
  2. Move to a Linux server.

Vger

2 Sep 2010, 12:33 PM
#4
losse avatar

losse

New Zenner

Join Date:
Aug 2010
Posts:
11
Plugin Contributions:
0

Re: SQL Install file does not exist

Vger
What do I actually hardcode? Where is the SQL file referenced so that I can find and change the path?

2 Sep 2010, 1:27 PM
#5
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: SQL Install file does not exist

zc_install\techsupp.php(256): $path = (substr_count(FILE,'zc_install') || file_exists('mysql_zencart.sql')) ? '../' : '';
zc_install\techsupp.php(273): <?php if (substr_count(FILE,'zc_install') <1 && !file_exists('mysql_zencart.sql') ) {
zc_install\includes\languages\english.php(361): define('POPUP_ERROR_TEXT', 'The installer could not find the required .SQL install file. This should exist within the 'zc_install/sql' directory and be called something like 'mysql_zencart.sql'.');

Vger

2 Sep 2010, 5:51 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: SQL Install file does not exist

losse:

When I look in the zc_install/sql folder, the file is there!
The help text isn't telling you exactly which file is missing. It's simply giving an example, and that example is for a fresh new install, not an upgrade.

Which database-upgrade "checkboxes" did you have checked?
What *.sql filenames exist in your /zc_install/sql/ folder?

.
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.

6 Sep 2010, 2:49 PM
#7
losse avatar

losse

New Zenner

Join Date:
Aug 2010
Posts:
11
Plugin Contributions:
0

Re: SQL Install file does not exist

Hi there
I actually clicked on all the checkboxes in the DB update section. Here they are:

Upgrade DB from 1.0.4 to 1.1.1
Upgrade DB from 1.1.0 to 1.1.1
Upgrade DB from 1.1.1 to 1.1.2
Upgrade DB from 1.1.2 or 1.1.3 to 1.1.4
Upgrade DB from 1.1.4 to 1.1.4-patch1
Upgrade DB from 1.1.4-x to 1.2.0
Upgrade DB from 1.2.0 to 1.2.1
Upgrade DB from 1.2.1 to 1.2.2
Upgrade DB from 1.2.2 to 1.2.3
Upgrade DB from 1.2.3 to 1.2.4
Upgrade DB from 1.2.4 to 1.2.5
Upgrade DB from 1.2.5 to 1.2.6
Upgrade DB from 1.2.6 to 1.2.7
Upgrade DB from 1.2.7 to 1.3.0
Upgrade DB from 1.3.0 to 1.3.0.1
Upgrade DB from 1.3.0.1 to 1.3.0.2
Upgrade DB from 1.3.0.2 to 1.3.5
Upgrade DB from 1.3.5 to 1.3.6
Upgrade DB from 1.3.6 to 1.3.7
Upgrade DB from 1.3.7 to 1.3.8
Upgrade DB from 1.3.8 to 1.3.9

As for which SQL files exist in the folder, it's the following. I've truncated the file names just to expedite the post.

mysql_upgrade_zencart_104_to_111.sql
110 to 111
110-112
112-113
112-114
114 patch 1
114-120
120 - 121
121 - 122
122 - 123
123 - 124
124 - 125
125 - 126
126-127
127-130
1301-1302
1302-135
130-1301
135-136
136-137
137-138
138-139
mysql_zencart.sql

6 Sep 2010, 6:32 PM
#8
drbyte avatar

drbyte

Sensei

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

Re: SQL Install file does not exist

losse:

I actually clicked on all the checkboxes in the DB update section.
Um, why?

.
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.

7 Sep 2010, 12:00 PM
#9
losse avatar

losse

New Zenner

Join Date:
Aug 2010
Posts:
11
Plugin Contributions:
0

Re: SQL Install file does not exist

I wanted to make sure that I had all the updates installed... That wasn't a good thing?

7 Sep 2010, 12:06 PM
#10
drbyte avatar

drbyte

Sensei

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

Re: SQL Install file does not exist

The software evaluates your database to see what's needed, and automatically checks the boxes for the steps that it knows need to be done.
If in doubt, clicking the "Recheck" button will re-scan and see what's needed.

In almost all cases you should never normally need to check a box that isn't automatically checked. They're made available for ease of troubleshooting if it were necessary, but those unchecked boxes are really not intended to be used unless you have very acute knowledge of the what and why behind each.

.
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.

7 Sep 2010, 12:07 PM
#11
losse avatar

losse

New Zenner

Join Date:
Aug 2010
Posts:
11
Plugin Contributions:
0

Re: SQL Install file does not exist

Oh ok... So I do remember there was 1 box checked at the bottom... so I should have just proceeded with that one?

7 Sep 2010, 12:11 PM
#12
drbyte avatar

drbyte

Sensei

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

Re: SQL Install file does not exist

If the system checks only one box, then that's what you should proceed with.
If it checks 3 boxes, then that's what you should proceed with.

.
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.

7 Sep 2010, 12:13 PM
#13
losse avatar

losse

New Zenner

Join Date:
Aug 2010
Posts:
11
Plugin Contributions:
0

Re: SQL Install file does not exist

Thanks Doc!
That fixed it...I appreciate your help and your patience