DBD-mysql
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
_NumRows have been removed.
* dbd/dbd.xs.in: $dbh->func('_ListDBs') was closing the socket.
Thanks to Lars Kellogg-Stedman <lars@wolery.bu.edu>.
* dbd/dbd.pm.in: $drh->func('_ListDBs' was documented wrong.
Thanks to Lars Kellogg-Stedman <lars@wolery.bu.edu>.
1998-11-06 Jochen Wiedmann <joe@ispsoft.de> (1.21_06)
* dbd/dbdimp.c: Changed isspace(c) to c == ' ' in ChopBlanks
handling.
* dbd/dbdimp.c: Added $dbh->{'mysql_read_default_file'} and
$dbh->{'mysql_read_default_group'}.
* dbd/dbdimp.c: Added $dbh->{'mysql_insertid'}.
1998-10-23 Jochen Wiedmann <joe@ispsoft.de> (1.21_05)
* dbd/dbd.xs.in: Fixed bug in $dbh->quote($n, SQL_INTEGER).
* Makefile.PL (CheckForLibGcc()): Disabled linking against
libgcc.a under NetBSD. (Curt Sampson, cjs@portal.com)
* Forgot to remove the warning for experimental software.
* Added Monty's patches for use of mysqlclients.
"imp_dbh->mysql_dr_connect: Setting" \
" read timeout (%d).\n",to);
mysql_options(sock, MYSQL_OPT_READ_TIMEOUT,
(const char *)&to);
}
if ((svp = hv_fetch(hv, "mysql_skip_secure_auth", 22, FALSE)) &&
*svp && SvTRUE(*svp))
{
croak("mysql_skip_secure_auth not supported");
}
if ((svp = hv_fetch(hv, "mysql_read_default_file", 23, FALSE)) &&
*svp && SvTRUE(*svp))
{
char* df = SvPV(*svp, lna);
if (DBIc_TRACE_LEVEL(imp_xxh) >= 2)
PerlIO_printf(DBIc_LOGPIO(imp_xxh),
"imp_dbh->mysql_dr_connect: Reading" \
" default file %s.\n", df);
mysql_options(sock, MYSQL_READ_DEFAULT_FILE, df);
}
if ((svp = hv_fetch(hv, "mysql_read_default_group", 24,
lib/DBD/mysql.pm view on Meta::CPAN
=item mysql_init_command
If your DSN contains the option "mysql_init_command=##", then
this SQL statement is executed when connecting to the MySQL server.
It is automatically re-executed if reconnection occurs.
=item mysql_skip_secure_auth
This option is for older mysql databases that don't have secure auth set.
=item mysql_read_default_file
=item mysql_read_default_group
These options can be used to read a config file like /etc/my.cnf or
~/.my.cnf. By default MySQL's C client library doesn't use any config
files unlike the client programs (mysql, mysqladmin, ...) that do, but
outside of the C client library. Thus you need to explicitly request
reading a config file, as in
$dsn = "DBI:mysql:test;mysql_read_default_file=/home/joe/my.cnf";
$dbh = DBI->connect($dsn, $user, $password)
The option mysql_read_default_group can be used to specify the default
group in the config file: Usually this is the I<client> group, but
see the following example:
[client]
host=localhost
[perl]
host=perlhost
(Note the order of the entries! The example won't work, if you reverse
the [client] and [perl] sections!)
If you read this config file, then you'll be typically connected to
I<localhost>. However, by using
$dsn = "DBI:mysql:test;mysql_read_default_group=perl;"
. "mysql_read_default_file=/home/joe/my.cnf";
$dbh = DBI->connect($dsn, $user, $password);
you'll be connected to I<perlhost>. Note that if you specify a
default group and do not specify a file, then the default config
files will all be read. See the documentation of
the C function mysql_options() for details.
=item mysql_socket
It is possible to choose the Unix socket that is
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.622 second using v1.00-cache-2.02-grep-82fe00e-cpan-1925d2aa809 )