Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,20 @@ jobs:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: "Setup generic dependencies"
run: |
sudo apt update
sudo apt install -y gcc make libdbi-perl libdevel-checklib-perl libtest-deep-perl wget lsb-release gnupg
sudo apt install -y \
gcc \
gnupg \
libdbi-perl \
libdevel-checklib-perl \
libtest-deep-perl \
libtest-pod-perl \
lsb-release \
make \
wget \
- if: matrix.client == '8.0'
run: |
sudo debconf-set-selections <<EOF
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/ci_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@ jobs:
test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: "Install dependencies"
run: |
brew install cpanminus mysql@8.0 mysql-client@8.0
cpanm DBI
cpanm Devel::CheckLib
cpanm Test::More
cpanm Test::Deep
cpanm DBI
cpanm Test::More
cpanm Test::Pod
- name: "Run build"
run: |
export PATH="/usr/local/opt/mysql@8.0/bin:$PATH"
export PATH="/usr/local/opt/mysql@8.0/bin:/opt/homebrew/opt/mysql-client@8.0/bin:/opt/homebrew/opt/mysql@8.0/bin:$PATH"
perl Makefile.PL --testhost=127.0.0.1 --testuser=root
make
- name: "Start MySQL"
Expand Down
2 changes: 2 additions & 0 deletions lib/DBD/mysql.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1347,6 +1347,8 @@ This returns:

=back

=back

=head1 DATABASE HANDLES

The DBD::mysql driver supports the following attributes of database
Expand Down
7 changes: 4 additions & 3 deletions lib/DBD/mysql/INSTALL.pod
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,12 @@ be on a remote machine.
On Fedora the process is as follows. In this example we install and
start a local server for running the tests against.

dnf -y install make gcc community-mysql-devel community-mysql-libs community-mysql-server
dnf -y install "perl(Test::Deep)" "perl(Test::More)"
dnf -y install make gcc mysql-devel mysql-libs mysql-server mysql
dnf -y install "perl(Test::Deep)" "perl(Test::More)" "perl(Test::Pod)" \
"perl(bigint)" "perl(DBI)" "perl(ExtUtils::MakeMaker)" \
"perl(Devel::CheckLib)"
systemctl start mysqld.service


=head2 Environment Variables

For ease of use, you can set environment variables for
Expand Down