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
Recently, I was working on a website. Because I took over the website last week, and the boss requested that the website be completed by next Monday. I am not familiar with PHP templates and PostgreSQL databases. I used to use MySQL more often.
DBI is a module of the Perl script connection database.Perl scripts are more flexible, more powerful, and cross-platform than the shell. The relative executable jar package is much simpler.? 1, download the installation packageDbi-1.631.tar.gzperl
I. DBI InstallationWget http://www.cpan.org/modules/by-module/DBD/DBI-1.604.tar.gzTar-zxvf DBI-1.604.tar.gzCD DBI-1.604Perl makefile. plMakeMake TestMake install
Ii. DBD InstallationYum-y intallMysql-develNote the MySQL environment variables. If
Webmin is a very powerful Linux system management panel. So that you can add the user account through the browser, manage apache,dns,mysql and so on various functions. Webmin is a development based on the Perl language panel, using Webmin management
One of the most important modules in Perl is the DBI module (Perl database Interface, DB interface). The DBI module provides a unified interface for many different databases. This interface makes it easy for Perl to manipulate the database. The
Using Perl to connect to MySQL, there are many cases on the Internet, and generally we are dbi under the Dbd::mysql this module. Here make a mask get a tips:Perl DBI MySQL's character set is UTF8Perl DBI special characters write times wrongPerl 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.