> Here is the situation.  I have to connect to Mysql running on another
> windows 2000 box.  I have never done this before. Do I set this up in the
> tables as another
> host and use the -h parm in command shell and the host parm in my perl
> scripts? or is there another way to do it?

What happens when you simple tell the script the machine name of where
the mysql server resides as per the DBI documentation:

---
  DBI Class Methods

    The following methods are provided by the DBI class:

    "connect"
          $dbh = DBI->connect($data_source, $username, $password)
                    or die $DBI::errstr;
          $dbh = DBI->connect($data_source, $username, $password,
\%attr)
                    or die $DBI::errstr;

[snip]

        Examples of "$data_source" values are:

          dbi:DriverName:database_name
          dbi:DriverName:database_name@hostname:port
          dbi:DriverName:database=database_name;host=hostname;port=port
---
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to