04-14-2023, 10:12 PM
Guys, I am trying to connect to my MYSQL DB from a remote server. From my local server this works fine for all my Domains
$DBTYPE = 'mysql';
$DBHOST = 'localhost';
$DBUSER = 'dbuser';
$DBPASSWORD = 'dbpassword';
$DBNAME = 'somedb';
// End Configuration
The remote script will be using same configuration info as above. It is just a bridge between one CMS script and another so when users sign up in one, they are automatically signed up in the other.
All is fine but need to kow how to connect to the DB since the two scripts are on two different servers.
This is what I ned to change
$DBHOST = 'localhost';
I have tried
$DBHOST = 'http://mydomain.com/mysql';
$DBHOST = 'http://mydomain.com/localhost';
$DBHOST = 'http://mysql.mydomain.com';
Last one of course needs a DNS change to work
I guess I am now finding out there is more to this than just the URL.
How can I accomplish the above?
Restored from old drupal forum, for user uid:2896 username:Netlink
You may reset your password to access your new account here.
$DBTYPE = 'mysql';
$DBHOST = 'localhost';
$DBUSER = 'dbuser';
$DBPASSWORD = 'dbpassword';
$DBNAME = 'somedb';
// End Configuration
The remote script will be using same configuration info as above. It is just a bridge between one CMS script and another so when users sign up in one, they are automatically signed up in the other.
All is fine but need to kow how to connect to the DB since the two scripts are on two different servers.
This is what I ned to change
$DBHOST = 'localhost';
I have tried
$DBHOST = 'http://mydomain.com/mysql';
$DBHOST = 'http://mydomain.com/localhost';
$DBHOST = 'http://mysql.mydomain.com';
Last one of course needs a DNS change to work
I guess I am now finding out there is more to this than just the URL.
How can I accomplish the above?
Restored from old drupal forum, for user uid:2896 username:Netlink
You may reset your password to access your new account here.