Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Moved Server issues


Dan_

Recommended Posts

Hi All,

 

I had a provider to a cPanel transfer of an osc store from one server to another.

 

It's now complete but I'm unable access the store due to the below error,

 

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'xxxx'@'localhost' (using password: YES) in /home/xxxx/public_html/includes/functions/database.php on line 19

Unable to connect to database server!

 

Now as this was a transfer no details would have changed and it appears that both config files are still the same.

 

Any suggestions would be greatly appreciated.

Link to comment
Share on other sites

you wil need to check some of the following Dan

 

The absolute path has not changed, relative will not have as thats your URL, the /home/user/public_html/etc.... might have changed.

The DB server might have be different, or the access details might be diferent.

Not all of the above will produce those exact results but still check them.

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Link to comment
Share on other sites

you wil need to check some of the following Dan

 

The absolute path has not changed, relative will not have as thats your URL, the /home/user/public_html/etc.... might have changed.

The DB server might have be different, or the access details might be diferent.

Not all of the above will produce those exact results but still check them.

Nic

 

Hi FIMBLE,

 

thanks for your suggestions, just a thought as delegation has not yet taken place will I need to replace the domain name with the temporary IP address to ensure it can connect?

Link to comment
Share on other sites

Hi FIMBLE,

 

thanks for your suggestions, just a thought as delegation has not yet taken place will I need to replace the domain name with the temporary IP address to ensure it can connect?

It has now taken place and still no luck,

 

But the DB has a dedicated server so maybe that's the issue?

Link to comment
Share on other sites

the connection to the database is only in the configure files, so either the username, db server, password, or db name is incorrect to the detail stored on the server.

Check that the server has the same credentials as the configure.php files.

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Link to comment
Share on other sites

Ok, it appears the host has fixed the issue (they must of missed something in the transfer.

 

The only issue is now I have an error warning on the admin page that states "Warning: I am able to write to the configuration file: /home/xxxx/public_html/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

 

Off to check what the correct permission should be.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...