PDA

View Full Version : 2 hosts accessing 1 MySQL database?


Prezident
03-29-2003, 11:03 AM
Does anybody know of a way I can have 2 different hosts access 1 database?

I have information that needs to be sent to the database from a remote server, and of course I will also need to be able to access that database from the local machine also.

I have tried different ways to put 2 host names in the "Host" field when setting up a mysql database through DSM, but nothing seems to work.

'localhost', 'remotehost'
"localhost", "remotehost"
'localhost'; 'remotehost'
"localhost"; "remotehost"

None of those have worked so far. Any suggestions would be greatly appreciated.

LeeJ
03-29-2003, 07:02 PM
create a user for each host and grant each use access based on the hosts ip or domain.

Prezident
03-30-2003, 01:26 PM
thanks, I will give that a shot.