mysql error

Shadow_X - August 24, 2008 - 10:14
Project:osCommerce
Version:6.x-1.0
Component:User interface
Category:bug report
Priority:critical
Assigned:Shadow_X
Status:postponed (maintainer needs more info)
Description

My webhost has the mysql servers on a seperate domain rather than localhost. I have the correct mysql information set in the module, yet it continues to say the link is invalid. Any ideas?

#1

Steve Lockwood - August 26, 2008 - 13:47

Hi Shadow,

The Drupal site needs to be able to see the database where osCommerce is hosted. If it's on a different domain, the database might be behind a firewall.

Are you able to access the osCommerce database from your desktop (eg using MySQL Admin)?

Steve

#2

Steve Lockwood - September 2, 2008 - 07:49
Status:active» fixed

#3

Steve Lockwood - September 4, 2008 - 14:56

I've just spotted a bug in the connection and will post an update shortly.

#4

Anonymous (not verified) - September 18, 2008 - 15:52
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#5

leeman - February 26, 2009 - 15:10
Status:closed» postponed (maintainer needs more info)

I have the same problem.

Did you get to finding out the bug?

#6

CrosiarCM - April 3, 2009 - 11:44

Here is the fix:

In the file sites/all/modules/oscommerce/oscommerce.module change line 254 from:

$host = variable_get('oscommerce_host', '');

To:

$host = variable_get('oscommerce_hostname', '');

That should take care of it :)

#7

goodspoint - October 8, 2009 - 15:01

hi,CrosiarCM.

I was changed

$host = variable_get('oscommerce_host', '');

to

$host = variable_get('oscommerce_hostname', '');

But i still got the error message like this:

warning: mysql_connect() [function.mysql-connect]: Access denied for user 'mydatabase_name'@'localhost' (using password: YES) in /sites/all/modules/oscommerce/oscommerce.module on line 254.

How do i do to resolve this problem to show my oscommerce products on my Drupal site?

my oscommerce was installed in sub directory in my website

Thanks.

#8

CrosiarCM - November 11, 2009 - 21:17

Hi Goodspoint,

Sorry I didn't see your message until now. Did you get this resolved yet? It is difficult for me to tell what is wrong from the information you gave.

It also looks to me that this module is broken for the latest oscommerce. I'm investigating that right now.

M.

 
 

Drupal is a registered trademark of Dries Buytaert.