my aim is to create a database and use a regular commands in strawberry perl...
Many are saying "StrawberryPerl comes bundled with drivers for MySQL" how to setup the necessary development environment... how to start? and where to start???
my aim is to create a database and use a regular commands in strawberry perl...
Many are saying "StrawberryPerl comes bundled with drivers for MySQL" how to setup the necessary development environment... how to start? and where to start???
use DBI qw( );
my $dsn = "dbi:mysql:database=$database";
my $dbh = DBI->connect($dsn, $user, $password, {
AutoCommit => 1,
PrintWarn => 1,
PrintError => 0,
RaiseError => 1,
});
If the database server is on another machine, add ";host=$hostname"
to the DSN.
If the database server is on a port other than the default, add ";port=$port"
to the DSN.
Refer to DBI's documentation for how to issue queries.