Mysql Perl Api - Oracle 5.0 Reference Manual

Table of Contents

Advertisement

1. Configure PHP like this:
./configure --with-mysqli=/usr/bin/mysql_config --with-mysql=/usr
2. Edit the
Makefile
one line):
EXTRA_LIBS = -lcrypt -lcrypt -lmysqlclient -lz -lresolv -lm -ldl -lnsl
-lxml2 -lz -lm -lxml2 -lz -lm -lmysqlclient -lz -lcrypt -lnsl -lm
-lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lcrypt
Remove all duplicates, so that the line looks like this (all on one line):
EXTRA_LIBS = -lcrypt -lcrypt -lmysqlclient -lz -lresolv -lm -ldl -lnsl
-lxml2
3. Build and install PHP:
make
make install

20.8. MySQL Perl API

The Perl
DBI
that works with many different database engines without change. To use DBI with MySQL, install the
following:
1. The
DBI
2. The
DBD::mysql
3. Optionally, the DBD module for any other type of database server you want to access.
Perl DBI is the recommended Perl interface. It replaces an older interface called mysqlperl, which
should be considered obsolete.
These sections contain information about using Perl with MySQL and writing MySQL applications in
Perl:
• For installation instructions for Perl DBI support, see
• For an example of reading options from option files, see
Multiple-Server
• For secure coding tips, see
• For debugging tips, see
• For some Perl-specific environment variables, see
• For considerations for running on Mac OS X, see
• For ways to quote string literals, see
DBI information is available at the command line, online, or in printed form:
• Once you have the
the command line with the
shell>
perldoc DBI
shell>
perldoc DBI::FAQ
shell>
perldoc DBD::mysql
You can also use pod2man, pod2html, and so on to translate this information into other formats.
and search for a line that starts with EXTRA_LIBS. It might look like this (all on
module provides a generic interface for database access. You can write a DBI script
module.
module. This is the DataBase Driver (DBD) module for Perl.
Environment".
Section 6.1.1, "Security
Section 21.3.1.4, "Debugging
and
DBI
DBD::mysql
perldoc
MySQL Perl API
Section 2.22, "Perl Installation
Section 5.3.4, "Using Client Programs in a
Guidelines".
mysqld
Section 2.21, "Environment
Using the Bundled MySQL on Mac OS X
Section 9.1.1, "String
Literals".
modules installed, you can get information about them at
command:
2805
Notes".
under
gdb".
Variables".
Server.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 5.0 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Mysql 5.0

Table of Contents