@@ -1869,32 +1869,27 @@ If you are using precompiled binaries, then it may be possible to
1869
1869
use just selected RPM's like MySQL-client and MySQL-devel or something
1870
1870
similar, depending on the distribution.
1871
1871
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
-
1876
1872
I recommend trying automatic installation via the CPAN module. Try
1877
1873
1878
- perl -MCPAN -e shell
1874
+ cpan
1879
1875
1880
1876
If you are using the CPAN module for the first time, it will prompt
1881
1877
you a lot of questions. If you finally receive the CPAN prompt, enter
1882
1878
1883
- install Bundle:: DBD::mysql
1879
+ install DBD::mysql
1884
1880
1885
1881
=head2 Manual Installation
1886
1882
1887
1883
If this fails (which may be the case for a number of reasons, for
1888
1884
example because you are behind a firewall or don't have network
1889
1885
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
1891
1887
1892
- http ://search.cpan. org/
1888
+ L<https ://metacpan. org>
1893
1889
1894
1890
The following modules are required
1895
1891
1896
1892
DBI
1897
- Data::ShowTable
1898
1893
DBD::mysql
1899
1894
1900
1895
Then enter the following commands (note - versions are just examples):
@@ -1906,13 +1901,6 @@ Then enter the following commands (note - versions are just examples):
1906
1901
make test
1907
1902
make install
1908
1903
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
-
1916
1904
cd ..
1917
1905
gzip -cd DBD-mysql-(version)-tar.gz | tar xf -
1918
1906
cd DBD-mysql-(version)
@@ -1931,8 +1919,6 @@ F</usr/lib/mysql/libmysqlclient.a> or F</usr/lib/libmysqlclient.so>.
1931
1919
=head1 WIN32 INSTALLATION
1932
1920
1933
1921
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
1936
1922
1937
1923
ppm install DBI
1938
1924
ppm install DBD::mysql
@@ -1942,19 +1928,6 @@ variable http_proxy, for example like this:
1942
1928
1943
1929
set http_proxy=http://myproxy.com:8080/
1944
1930
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
1958
1931
1959
1932
I recommend using the win32clients package for installing DBD::mysql
1960
1933
under Win32, available for download on www.tcx.se. The following steps
@@ -1964,28 +1937,6 @@ have been required for me:
1964
1937
1965
1938
=item -
1966
1939
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
-
1989
1940
Extract sources into F<C:\> . This will create a directory F<C:\mysql>
1990
1941
with subdirectories include and lib.
1991
1942
@@ -2003,7 +1954,7 @@ example F<C:\src\siteperl>
2003
1954
2004
1955
=item -
2005
1956
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> .
2007
1958
2008
1959
=item -
2009
1960
@@ -2040,30 +1991,6 @@ Continued in the usual way:
2040
1991
nmake
2041
1992
nmake install
2042
1993
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
-
2067
1994
=head1 AUTHORS
2068
1995
2069
1996
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.
2104
2031
2105
2032
=head1 COPYRIGHT
2106
2033
2107
-
2108
2034
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
+
2110
2044
Large Portions Copyright (c) 2004-2006 Alexey Stroganov
2045
+
2046
+ =item *
2047
+
2111
2048
Large Portions Copyright (c) 2003-2005 Rudolf Lippan
2049
+
2050
+ =item *
2051
+
2112
2052
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.
2116
2065
2117
2066
2118
2067
=head1 MAILING LIST SUPPORT
2119
2068
2120
2069
This module is maintained and supported on a mailing list, dbi-users.
2121
2070
2122
- To subscribe to this list, send and email to
2071
+ To subscribe to this list, send an email to
2123
2072
2124
2073
dbi-users-subscribe@perl.org
2125
2074
2126
2075
Mailing list archives are at
2127
2076
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=>
2135
2078
2136
- https://github.com/perl5-dbi/DBD-mysql/
2137
2079
2138
2080
=head1 ADDITIONAL DBI INFORMATION
2139
2081
2140
2082
Additional information on the DBI project can be found on the World
2141
2083
Wide Web at the following URL:
2142
2084
2143
- http://dbi.perl.org
2085
+ L< http://dbi.perl.org>
2144
2086
2145
2087
where documentation, pointers to the mailing lists and mailing list
2146
2088
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:
2150
2092
2151
2093
perldoc DBI
2152
2094
2153
- Information on the DBD::mysql specifically can be gained by typing:
2095
+ Information on DBD::mysql specifically can be gained by typing:
2154
2096
2155
2097
perldoc DBD::mysql
2156
2098
2099
+ (this will display the document you're currently reading)
2157
2100
2158
2101
2159
2102
=head1 BUG REPORTING, ENHANCEMENT/FEATURE REQUESTS
@@ -2162,7 +2105,7 @@ Please report bugs, including all the information needed
2162
2105
such as DBD::mysql version, MySQL version, OS type/version, etc
2163
2106
to this link:
2164
2107
2165
- http ://rt.cpan.org
2108
+ L<https ://rt.cpan.org/Dist/Display.html?Name=DBD-mysql>
2166
2109
2167
2110
Note: until recently, MySQL/Sun/Oracle responded to bugs and assisted in
2168
2111
fixing bugs which many thanks should be given for their help!
0 commit comments