Zen Cart Logo
Forums / General Questions / What on earth ? Has anyone ever gotten this error before?

What on earth ? Has anyone ever gotten this error before?

Locked

Views: 1,873

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
8 Dec 2007, 10:11 PM
#1
elise avatar

elise

New Zenner

Join Date:
Jul 2007
Posts:
20
Plugin Contributions:
0

What on earth ? Has anyone ever gotten this error before?

I surely never...
http://www.sweetlittlemonkey.com/nddbc.html

For over an hour now, right in the middle of the christmas shopping, I`ve gottent his error. :cry:

8 Dec 2007, 10:15 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,607
Plugin Contributions:
0

Re: What on earth ? Has anyone ever gotten this error before?

Ask your host why you are not able to connect to the database.

8 Dec 2007, 10:20 PM
#3
elise avatar

elise

New Zenner

Join Date:
Jul 2007
Posts:
20
Plugin Contributions:
0

Re: What on earth ? Has anyone ever gotten this error before?

Kim:

Ask your host why you are not able to connect to the database.

I am waiting on the respond from them... But what? I have never got this erroe before. But it seams like its not the host, but rather zen cart ?

8 Dec 2007, 10:25 PM
#4
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: What on earth ? Has anyone ever gotten this error before?

What makes you think so? Can you connect to the database using PHPmyadmin?

8 Dec 2007, 10:27 PM
#5
elise avatar

elise

New Zenner

Join Date:
Jul 2007
Posts:
20
Plugin Contributions:
0

Re: What on earth ? Has anyone ever gotten this error before?

yellow1912:

What makes you think so? Can you connect to the database using PHPmyadmin?

I do only connect to it trough smartFTP, and yes that works fine :)

8 Dec 2007, 10:29 PM
#6
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: What on earth ? Has anyone ever gotten this error before?

I think you misunderstand here. The database is running on mysql server, which has nothing to do with FTP. In the matter of fact, you can not connect to it using ftp client. What you see "running fine" is the ftp server, not the database server.

8 Dec 2007, 10:33 PM
#7
elise avatar

elise

New Zenner

Join Date:
Jul 2007
Posts:
20
Plugin Contributions:
0

Re: What on earth ? Has anyone ever gotten this error before?

yellow1912:

I think you misunderstand here. The database is running on mysql server, which has nothing to do with FTP. In the matter of fact, you can not connect to it using ftp client. What you see "running fine" is the ftp server, not the database server.

ah...:huh: You see.. I am NOT good at his :blink: But you guys think it is the mysql server that is the problem. I`ve contacted my host, but they always respond late :frusty:

8 Dec 2007, 10:36 PM
#8
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: What on earth ? Has anyone ever gotten this error before?

A host that responds late is not a good host.
Anyway, do have Cpanel, or phpmyadmin?
If you can still connect using FTP, can you go to includes/configure.php, scroll down to the bottom of the page and see your current config for your database (mysql) host? Usually it would be "localhost".

Elise:

ah...:huh: You see.. I am NOT good at his :blink: But you guys think it is the mysql server that is the problem. I`ve contacted my host, but they always respond late :frusty:

8 Dec 2007, 10:54 PM
#9
elise avatar

elise

New Zenner

Join Date:
Jul 2007
Posts:
20
Plugin Contributions:
0

Re: What on earth ? Has anyone ever gotten this error before?

yellow1912:

A host that responds late is not a good host.
Anyway, do have Cpanel, or phpmyadmin?
If you can still connect using FTP, can you go to includes/configure.php, scroll down to the bottom of the page and see your current config for your database (mysql) host? Usually it would be "localhost".

the host don`t offer cpanel or phpadmin.... (I am starting to realise that I need a new host).

The bottom of the configurate page is:

// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'database');
define('DIR_FS_SQL_CACHE', '/sites/s/sweetlittlemonkey.com/./www/cache');

8 Dec 2007, 11:01 PM
#10
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: What on earth ? Has anyone ever gotten this error before?

I want you to look a bit above that, where it says something like this:

define('DB_SERVER', 'localhost');

The reason is, while most servers run a local database server, some don't. In those cases, it can happen that the remote database server dies while the local apache is still running. Of course, even if you have database server running on a local machine with apache, it can still die while apache is still running ^^. It's just an application anyway.

Another possibility: apache can not connect to mysql server because of wrong username/password. Since you said that you didnt touch anything, I assume this is not the case here.

Anyway, without phpmyadmin or cpanel or ssh access to the server, all we can do is to wait for your host.

8 Dec 2007, 11:06 PM
#11
elise avatar

elise

New Zenner

Join Date:
Jul 2007
Posts:
20
Plugin Contributions:
0

Re: What on earth ? Has anyone ever gotten this error before?

yellow1912:

I want you to look a bit above that, where it says something like this:

define('DB_SERVER', 'localhost');

The reason is, while most servers run a local database server, some don't. In those cases, it can happen that the remote database server dies while the local apache is still running. Of course, even if you have database server running on a local machine with apache, it can still die while apache is still running ^^. It's just an application anyway.

Another possibility: apache can not connect to mysql server because of wrong username/password. Since you said that you didnt touch anything, I assume this is not the case here.

Anyway, without phpmyadmin or cpanel or ssh access to the server, all we can do is to wait for your host.

Thanks ! :hug: Will update when i finally get a mail from the host.

Elise