Skip to content

Commit 17b77d1

Browse files
committed
Merge pull request #17 from mbeijen/doc-improvements
Doc improvements
2 parents a81744e + b0b9739 commit 17b77d1

File tree

1 file changed

+38
-95
lines changed

1 file changed

+38
-95
lines changed

lib/DBD/mysql.pm

Lines changed: 38 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1869,32 +1869,27 @@ If you are using precompiled binaries, then it may be possible to
18691869
use just selected RPM's like MySQL-client and MySQL-devel or something
18701870
similar, depending on the distribution.
18711871
1872-
First you need to install the DBI module. For using I<dbimon>, a
1873-
simple DBI shell it is recommended to install Data::ShowTable another
1874-
Perl module.
1875-
18761872
I recommend trying automatic installation via the CPAN module. Try
18771873
1878-
perl -MCPAN -e shell
1874+
cpan
18791875
18801876
If you are using the CPAN module for the first time, it will prompt
18811877
you a lot of questions. If you finally receive the CPAN prompt, enter
18821878
1883-
install Bundle::DBD::mysql
1879+
install DBD::mysql
18841880
18851881
=head2 Manual Installation
18861882
18871883
If this fails (which may be the case for a number of reasons, for
18881884
example because you are behind a firewall or don't have network
18891885
access), you need to do a manual installation. First of all you
1890-
need to fetch the modules from CPAN search
1886+
need to fetch the modules from CPAN
18911887
1892-
http://search.cpan.org/
1888+
L<https://metacpan.org>
18931889
18941890
The following modules are required
18951891
18961892
DBI
1897-
Data::ShowTable
18981893
DBD::mysql
18991894
19001895
Then enter the following commands (note - versions are just examples):
@@ -1906,13 +1901,6 @@ Then enter the following commands (note - versions are just examples):
19061901
make test
19071902
make install
19081903
1909-
cd ..
1910-
gzip -cd Data-ShowTable-(version).tar.gz | tar xf -
1911-
cd Data-ShowTable-3.3
1912-
perl Makefile.PL
1913-
make
1914-
make install
1915-
19161904
cd ..
19171905
gzip -cd DBD-mysql-(version)-tar.gz | tar xf -
19181906
cd DBD-mysql-(version)
@@ -1931,8 +1919,6 @@ F</usr/lib/mysql/libmysqlclient.a> or F</usr/lib/libmysqlclient.so>.
19311919
=head1 WIN32 INSTALLATION
19321920
19331921
If you are using ActivePerl, you may use ppm to install DBD-mysql.
1934-
For Perl 5.6, upgrade to Build 623 or later, then it is sufficient
1935-
to run
19361922
19371923
ppm install DBI
19381924
ppm install DBD::mysql
@@ -1942,19 +1928,6 @@ variable http_proxy, for example like this:
19421928
19431929
set http_proxy=http://myproxy.com:8080/
19441930
1945-
As of this writing, DBD::mysql is missing in the ActivePerl 5.8.0
1946-
repository. However, Randy Kobes has kindly donated an own
1947-
distribution and the following might succeed:
1948-
1949-
ppm install http://theoryx5.uwinnipeg.ca/ppms/DBD-mysql.ppd
1950-
1951-
Otherwise you definitely *need* a C compiler. And it *must* be the same
1952-
compiler that was being used for compiling Perl itself. If you don't
1953-
have a C compiler, the file README.win32 from the Perl source
1954-
distribution tells you where to obtain freely distributable C compilers
1955-
like egcs or gcc. The Perl sources are available via CPAN search
1956-
1957-
http://search.cpan.org
19581931
19591932
I recommend using the win32clients package for installing DBD::mysql
19601933
under Win32, available for download on www.tcx.se. The following steps
@@ -1964,28 +1937,6 @@ have been required for me:
19641937
19651938
=item -
19661939
1967-
The current Perl versions (5.6, as of this writing) do have a problem
1968-
with detecting the C libraries. I recommend to apply the following
1969-
patch:
1970-
1971-
*** c:\Perl\lib\ExtUtils\Liblist.pm.orig Sat Apr 15 20:03:40 2000
1972-
--- c:\Perl\lib\ExtUtils\Liblist.pm Sat Apr 15 20:03:45 2000
1973-
***************
1974-
*** 230,235 ****
1975-
--- 230,239 ----
1976-
# add "$Config{installarchlib}/CORE" to default search path
1977-
push @libpath, "$Config{installarchlib}/CORE";
1978-
1979-
+ if ($VC and exists($ENV{LIB}) and defined($ENV{LIB})) {
1980-
+ push(@libpath, split(/;/, $ENV{LIB}));
1981-
+ }
1982-
+
1983-
foreach (Text::ParseWords::quotewords('\s+', 0, $potential_libs)){
1984-
1985-
$thislib = $_;
1986-
1987-
=item -
1988-
19891940
Extract sources into F<C:\>. This will create a directory F<C:\mysql>
19901941
with subdirectories include and lib.
19911942
@@ -2003,7 +1954,7 @@ example F<C:\src\siteperl>
20031954
20041955
=item -
20051956
2006-
Open a DOS shell and change directory to F<C:\src\siteperl>.
1957+
Open a CMD.exe shell and change directory to F<C:\src\siteperl>.
20071958
20081959
=item -
20091960
@@ -2040,30 +1991,6 @@ Continued in the usual way:
20401991
nmake
20411992
nmake install
20421993
2043-
=back
2044-
2045-
If you want to create a PPM package for the ActiveState Perl version, then
2046-
modify the above steps as follows: Run
2047-
2048-
perl Makefile.PL NAME=DBD-mysql BINARY_LOCATION=DBD-mysql.tar.gz
2049-
nmake ppd
2050-
nmake
2051-
2052-
Once that is done, use tar and gzip (for example those from the CygWin32
2053-
distribution) to create an archive:
2054-
2055-
mkdir x86
2056-
tar cf x86/DBD-mysql.tar blib
2057-
gzip x86/DBD-mysql.tar
2058-
2059-
Put the files x86/DBD-mysql.tar.gz and DBD-mysql.ppd onto some WWW server
2060-
and install them by typing
2061-
2062-
install http://your.server.name/your/directory/DBD-mysql.ppd
2063-
2064-
in the PPM program.
2065-
2066-
20671994
=head1 AUTHORS
20681995
20691996
Originally, there was a non-DBI driver, Mysql, which was much like
@@ -2104,43 +2031,58 @@ many features and fixes from DBD::mysql have come from the community.
21042031
21052032
=head1 COPYRIGHT
21062033
2107-
21082034
This module is
2109-
Large Portions Copyright (c) 2004-2010 Patrick Galbraith
2035+
2036+
=over
2037+
2038+
=item *
2039+
2040+
Large Portions Copyright (c) 2004-2013 Patrick Galbraith
2041+
2042+
=item *
2043+
21102044
Large Portions Copyright (c) 2004-2006 Alexey Stroganov
2045+
2046+
=item *
2047+
21112048
Large Portions Copyright (c) 2003-2005 Rudolf Lippan
2049+
2050+
=item *
2051+
21122052
Large Portions Copyright (c) 1997-2003 Jochen Wiedmann, with code portions
2113-
Copyright (c)1994-1997 their original authors This module is
2114-
released under the same license as Perl itself. See the Perl README
2115-
for details.
2053+
2054+
=item *
2055+
2056+
Copyright (c)1994-1997 their original authors
2057+
2058+
=back
2059+
2060+
2061+
=head1 LICENSE
2062+
2063+
This module is released under the same license as Perl itself. See
2064+
L<http://www.perl.com/perl/misc/Artistic.html> for details.
21162065
21172066
21182067
=head1 MAILING LIST SUPPORT
21192068
21202069
This module is maintained and supported on a mailing list, dbi-users.
21212070
2122-
To subscribe to this list, send and email to
2071+
To subscribe to this list, send an email to
21232072
21242073
dbi-users-subscribe@perl.org
21252074
21262075
Mailing list archives are at
21272076
2128-
http://groups.google.com/group/perl.dbi.users?hl=en&lr=
2129-
2130-
Also, the main DBI site is at
2131-
2132-
http://dbi.perl.org/
2133-
2134-
And source:
2077+
L<http://groups.google.com/group/perl.dbi.users?hl=en&lr=>
21352078
2136-
https://github.com/perl5-dbi/DBD-mysql/
21372079
21382080
=head1 ADDITIONAL DBI INFORMATION
21392081
21402082
Additional information on the DBI project can be found on the World
21412083
Wide Web at the following URL:
21422084
2143-
http://dbi.perl.org
2085+
L<http://dbi.perl.org>
21442086
21452087
where documentation, pointers to the mailing lists and mailing list
21462088
archives and pointers to the most current versions of the modules can
@@ -2150,10 +2092,11 @@ Information on the DBI interface itself can be gained by typing:
21502092
21512093
perldoc DBI
21522094
2153-
Information on the DBD::mysql specifically can be gained by typing:
2095+
Information on DBD::mysql specifically can be gained by typing:
21542096
21552097
perldoc DBD::mysql
21562098
2099+
(this will display the document you're currently reading)
21572100
21582101
21592102
=head1 BUG REPORTING, ENHANCEMENT/FEATURE REQUESTS
@@ -2162,7 +2105,7 @@ Please report bugs, including all the information needed
21622105
such as DBD::mysql version, MySQL version, OS type/version, etc
21632106
to this link:
21642107
2165-
http://rt.cpan.org
2108+
L<https://rt.cpan.org/Dist/Display.html?Name=DBD-mysql>
21662109
21672110
Note: until recently, MySQL/Sun/Oracle responded to bugs and assisted in
21682111
fixing bugs which many thanks should be given for their help!

0 commit comments

Comments
 (0)