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?
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?
Comments
Comment #1
Steve Lockwood commentedHi 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
Comment #2
Steve Lockwood commentedComment #3
Steve Lockwood commentedI've just spotted a bug in the connection and will post an update shortly.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #5
leeman commentedI have the same problem.
Did you get to finding out the bug?
Comment #6
CrosiarCM commentedHere 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 :)
Comment #7
goodspoint commentedhi,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.
Comment #8
CrosiarCM commentedHi 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.
Comment #9
Dave Sandilands commentedThis module seems to be a great way to connect with my other site which is running osCommerce.
I would hope eventually to port the contents to my drupal site and stop paying for the package and hosting of the os Commerce site.
However I have run into a problem very early on.
At my first run I got the xxxxxxx@localhost error due to the incorrect spelling of the hostname variable, figured it and fixed ,just as in #7 above.
When I ran it again I get :
The variables being used are
for hostname : www.mysite.com
for user : my cpanel username
for password : my cpanel password
Have I input my details incorrectly or is this a security measure I can't get around?
Environment:
Drupal version 6.14
PHP version 5.3 (as part of the XAMPP installation)
Comment #10
avpadernoI am closing this issue, since it's for a Drupal version no longer supported.