Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Getting an Error - Trying to move hosts


rocketpig

Recommended Posts

I'm moving my host to GoDaddy and I'm having problems... I got the DB uploaded - not an easy trick considering their lame size restriction - and all the old files are FTPed.

 

Now I'm getting this error on the main page:

 

Warning: mysql_connect(): Lost connection to MySQL server during query in /blahblahblahsitename/includes/functions/database.php on line 19

Unable to connect to database server!

 

I go to line 19 in that file and it reads (here are lines 17, 18, & 19):

 

$$link = mysql_pconnect($server, $username, $password);

} else {

$$link = mysql_connect($server, $username, $password);

 

I assume this is a configuration problem but I went into the config file and changed the settings to what I believe to be correct (though GoDaddy and OSC's terminology don't exactly align). Is there a way to test this? Is there another spot I have to check for errors? Any help would be huge. Thanks.

Link to comment
Share on other sites

I double-checked the settings and they're good, though I have a question about the last two lines of the config file:

 

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

 

Do those have to change?

 

Also, I don't remember the original version of MySQL used on the database... The file says "Server version 4.1.22" so I assume it's MySQL 4.1, which I initially set up the new database using.

Link to comment
Share on other sites

l always wonder why people put up with hosts that can't even help with this very basic thing whilst there are hosts that can solve this problem for you in seconds for free.

 

FYI, your question has been posted and answered many many times.

 

Ken

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Link to comment
Share on other sites

I'd say "thanks for the help", but there isn't any...

 

I already did a search. If I knew what the problem was and whether it was my config file, the database, or the host, I wouldn't be asking so many questions. As it stands now, I don't even know what I'm searching for.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...