Perl DBI Programming Reading notes, in the original text see:http://www.ibm.com/developerworks/cn/linux/l-cn-perldbi/In order to communicate with the database, the Perl community developed a unified Database communication interface module: DBI. DBI,
Media Download Path:dbi:http://www.cpan.org/modules/by-module/dbi/dbd:http://www.cpan.org/modules/by-module/dbd/ora2pg:https://sourceforge.net/projects/ora2pg/files/Requirements: Perl version 5.8 or higher, perl-v view versionInstall using the root
Original DBI module installation Tutorial:
1.Install First, I use mysql for testing. You need to install the mysql database on your machine.Then execute:Gem install mysql
Download ruby-DBI from rubyforge, decompress it, and run the following command
The most commonly used package for Perl access to a database is DBI, which can be found in www.cpan.org. Also need to install the corresponding database driver package, such as Dbd::mysql, Dbd::oracle, dbd::sybase or DBD::ODBC.First, the basic
Install DBI and DBD in Linux
1. Media downloadWww.cpan.org open the home page of cpan, and then click search.cpan.org to search for DBI and DBD: Oracle-Rw-r -- 1 oracle oinstall 592307 Apr 5 DBI-1.633.tar.gz-Rw-r -- 1 oracle oinstall 452537 Apr 5
Ruby, as a powerful and flexible programming language, has been used by many programmers. They have gained great benefits in the use process. Today, we will introduce one of the following skills: Ruby's application skills for configuring Mysql DBI.
Using DBI to connect to a Microsoft SQL server is a relatively simple task. Rather than go with a simple example, I have chosen to demonstrate not just connectivity, but also error checking.As always, when you want to use a module, you must declare
Sometimes perl is required to operate mysql databases, which can be implemented through DBI. For more information, see
Sometimes perl is required to operate mysql databases, which can be implemented through DBI. For more information, see
DBI
Install bitsCN.com on the DBI and DBD-mysql modules
Install the DBI and DBD-mysql modules
I. DBI installation
Wget http://www.cpan.org/modules/by-module/DBD/DBI-1.604.tar.gz
Tar-zxvf DBI-1.604.tar.gz
Cd DBI-1.604
Perl Makefile. PL
Make
Make
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.