in reply to Perl and MySQL privileges
Privileges to connect to a MySQL server exist independently of the user/group of the script -- they're determined by the hostname from which to connect to the server and the username and password provided when connecting.
With all that said, I usually use a connect string something like:
If this is inappropriate for your purposes, let me know. I am slightly confused by your question, and offer my apologies if I have misunderstood.use DBI; my $host = "dbserver"; my $dsn = "DBI:mysql" . $host; my $user = "chromatic"; my $pass = ''; my $dbh = DBI->connect($dsn, $user, $pass);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Followup on Perl and MySQL privileges
by fpi (Monk) on Mar 21, 2001 at 13:37 UTC |