Zen Cart Logo
Forums / Installing on a Linux/Unix Server / What am I missing...

What am I missing...

Locked

Views: 1,226

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
25 Aug 2010, 3:28 PM
#1
srhedd avatar

srhedd

New Zenner

Join Date:
Jun 2010
Posts:
55
Plugin Contributions:
0

What am I missing...

ZenCart doesn't see my old database.

1.) I created a new database named pha1017510012483

2.) I clicked "Manage Database"

3.) Clicked "Execute SQL" then "Run SQL from file"

4.) Clicked "From uploaded file" and chose the backed up database file, "pha1017510012483.sql" from my desktop

5.) Clicked "Execute"

6.) Screen reads:

EXECUTE SQL

Output from uploaded SQL commands ..

No output generated
110 tables were created. 72 records were inserted.

7.) This is the code where ZenCart looks for the database:

// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', '1234');
define('DB_SERVER_PASSWORD', '1234567');
define('DB_DATABASE', 'pha1017510012483');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'db');
// for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage

Since I logged in and created the database as 1234/1234567, I assume that's the right user/password for the code.

25 Aug 2010, 3:44 PM
#2
srhedd avatar

srhedd

New Zenner

Join Date:
Jun 2010
Posts:
55
Plugin Contributions:
0

Re: What am I missing...

...I also tried changing the db prefix to 'zen_', that didn't help either.

25 Aug 2010, 3:58 PM
#3
vger avatar

vger

Past Contributor

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

Re: What am I missing...

There are two configure.php files. One for the shop front and one for the 'admin' panel. Some settings are different but the section that deals with MySQL settings are the same in both files (or should be).

Vger

25 Aug 2010, 5:17 PM
#4
srhedd avatar

srhedd

New Zenner

Join Date:
Jun 2010
Posts:
55
Plugin Contributions:
0

Re: What am I missing...

Yeah, they match.

Pulling my hair out now...

25 Aug 2010, 5:23 PM
#5
srhedd avatar

srhedd

New Zenner

Join Date:
Jun 2010
Posts:
55
Plugin Contributions:
0

Re: What am I missing...

Now I'm getting this:

Safari can’t open the page “http://xxx.xx.xx.xxx/zencart/index.php?main_page=login”. The error is: “cannot decode raw data” (NSURLErrorDomain:-1015) Please choose Safari > Report Bugs to Apple, note the error number, and describe what you did before you saw this message.

25 Aug 2010, 5:29 PM
#6
vger avatar

vger

Past Contributor

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

Re: What am I missing...

If you Google "NSURLErrorDomain:-1015" then you'll find that it's happening with all sorts of software, but only when the person is using a Mac. So it's an Apple problem.

Login to your Zen Cart 'admin' panel and turn off gZip Compression on your site and that should resolve the problem.

Vger

25 Aug 2010, 7:58 PM
#7
srhedd avatar

srhedd

New Zenner

Join Date:
Jun 2010
Posts:
55
Plugin Contributions:
0

Re: What am I missing...

Nope. gZip was already off.

I have a complete site on a test server, installed the same "d" version as on the current server. No matter what instructions I follow, I can't get the test site to see the old database. The fresh install works fine, and the old site is still live, so it works perfectly. I need the test site to be exactly like the live site before I pull the plug on that hosting account. I've made some many tweaks and adjustments, it is impractical to start over again, AND we have 200 or so customers in the old database.

25 Aug 2010, 9:34 PM
#8
vger avatar

vger

Past Contributor

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

Re: What am I missing...

Well I'm afraid that if the site can't "see" the database then it has to be a configuration issue. Sometimes site owners download and edit the two configure.php files and upload them again by FTP - not realising that the online files are 'read only' and aren't being overwritten when they upload.

Vger

26 Aug 2010, 1:39 AM
#9
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: What am I missing...

Have you looked inside your new database to see if there are actually records in there

as this part

No output generated
110 tables were created. 72 records were inserted.

seems a bit odd if you have 200 customers in the database (unless i am misunderstanding something)

Otherwise I'll give a suggestion, probably something you have already checked but meh

Are you on shared hosting?
if so your db and db username may have a prefix (normally the first 8 letters of your site name)

normally something like
username = microsof_1234
db = microsof_1234567

look at the config file of your current working site and see what the username etc looks like and if they have a prefix

SRHEdD:

ZenCart doesn't see my old database.

1.) I created a new database named pha1017510012483

2.) I clicked "Manage Database"

3.) Clicked "Execute SQL" then "Run SQL from file"

4.) Clicked "From uploaded file" and chose the backed up database file, "pha1017510012483.sql" from my desktop

5.) Clicked "Execute"

6.) Screen reads:

EXECUTE SQL

Output from uploaded SQL commands ..

No output generated
110 tables were created. 72 records were inserted.

7.) This is the code where ZenCart looks for the database:

// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', '1234');
define('DB_SERVER_PASSWORD', '1234567');
define('DB_DATABASE', 'pha1017510012483');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'db');
// for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage

Since I logged in and created the database as 1234/1234567, I assume that's the right user/password for the code.