Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem Accessing configuration.php


fliptoppbox

Recommended Posts

Hello everyone,

 

I have recently moved a whole store to another ftp location. I exported the database and successfully imported into the new one. I made all the changes to configure.php with new database login and passowrd information. The site is working great.

 

However, now when I try and access /admin/configuration.php I get the following:

 

Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 113 in /homepages/6/d239308543/htdocs/admin/includes/functions/database.php on line 19

Unable to connect to database server!

 

This is very confusing because everything is exactly the same as the other server, where the configuration.php file works. ANY help would be greatly appreciated. Thanks a lot,

 

Paul

Link to comment
Share on other sites

// define our database connection

define('DB_SERVER', 'ip_address_here');<- Usually an ip address, could you verify your database ip? Login to phpmyAdmin to find out.

 

 

define('DB_SERVER_USERNAME', 'your_secret_database_username');

define('DB_SERVER_PASSWORD', 'your_secret_database_password');

define('DB_DATABASE', 'name_of_your_database');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...