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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
mysqlImporter
mysqlExporter
mysqlProxyExporter
mysqlProxyImporter
mariadbImporter
mariadbExporter
dist/
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ build:
${GO} build -v -o mysqlExporter${EXT} ./plugin/mysql-exporter
${GO} build -v -o mariadbImporter${EXT} ./plugin/mariadb-importer
${GO} build -v -o mariadbExporter${EXT} ./plugin/mariadb-exporter
${GO} build -v -o mysqlProxyImporter${EXT} ./plugin/mysql-proxy-importer
${GO} build -v -o mysqlProxyExporter${EXT} ./plugin/mysql-proxy-exporter

package: build
rm -f $(PTAR)
Expand Down Expand Up @@ -42,4 +44,4 @@ test:
${GO} test -v ./tests/...

clean:
rm -f mysqlImporter mysqlExporter
rm -f mysqlImporter mysqlExporter mariadbImporter mariadbExporter mysqlProxyImporter mysqlProxyExporter
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,18 @@ and can be restored without Plakar if needed.
| Protocol | Target | Dump tool | Client tool |
|-------------------|------------------|-----------------|-------------|
| `mysql://` | MySQL 5.7 / 8.x | `mysqldump` | `mysql` |
| `mysql+gcsql://` | MySQL 5.7 / 8.x | `mysqldump` | `mysql` |
| `mysql+mariadb://`| MariaDB 10.x / 11.x | `mariadb-dump` | `mariadb` |
Comment thread
mathieu-plak marked this conversation as resolved.

Use the protocol that matches your server. The two connectors are independent:
`mysql://` always uses MySQL binaries; `mysql+mariadb://` always uses MariaDB
binaries.

The `gcsql` variant is specific to databases hosted at Google Cloud (TM), it
uses Cloud SQL Proxy to connect to the database to make the experience easier.
As Google does not offer MariaDB backends it's only available for the MySQL
flavor.

## Prerequisites

**MySQL**
Expand Down
36 changes: 24 additions & 12 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
module github.com/PlakarKorp/integration-mysql

go 1.25.0
go 1.25.7

require (
cloud.google.com/go/cloudsqlconn v1.21.0
github.com/PlakarKorp/go-kloset-sdk v1.1.0-beta.1
github.com/PlakarKorp/kloset v1.1.0-beta.2
github.com/go-sql-driver/mysql v1.8.1
github.com/go-sql-driver/mysql v1.9.3
github.com/testcontainers/testcontainers-go v0.41.0
)

require (
cloud.google.com/go/auth v0.20.0 // indirect
cloud.google.com/go/auth/oauth2adapt v0.2.8 // indirect
cloud.google.com/go/compute/metadata v0.9.0 // indirect
dario.cat/mergo v1.0.2 // indirect
filippo.io/edwards25519 v1.1.0 // indirect
filippo.io/edwards25519 v1.2.0 // indirect
github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c // indirect
github.com/Microsoft/go-winio v0.6.2 // indirect
github.com/PlakarKorp/integration-grpc v1.1.0-beta.3 // indirect
Expand All @@ -34,8 +38,12 @@ require (
github.com/go-logr/logr v1.4.3 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
github.com/golang/snappy v1.0.0 // indirect
github.com/google/s2a-go v0.1.9 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.14 // indirect
github.com/googleapis/gax-go/v2 v2.21.0 // indirect
github.com/klauspost/compress v1.18.2 // indirect
github.com/klauspost/cpuid/v2 v2.3.0 // indirect
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
Expand Down Expand Up @@ -68,23 +76,27 @@ require (
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
github.com/yusufpapurcu/wmi v1.2.4 // indirect
github.com/zeebo/blake3 v0.2.4 // indirect
go.opencensus.io v0.24.0 // indirect
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.67.0 // indirect
go.opentelemetry.io/otel v1.43.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.43.0 // indirect
go.opentelemetry.io/otel/metric v1.43.0 // indirect
go.opentelemetry.io/otel/sdk/metric v1.43.0 // indirect
go.opentelemetry.io/otel/trace v1.43.0 // indirect
go.opentelemetry.io/proto/otlp v1.10.0 // indirect
golang.org/x/crypto v0.48.0 // indirect
golang.org/x/crypto v0.50.0 // indirect
golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546 // indirect
golang.org/x/mod v0.32.0 // indirect
golang.org/x/net v0.50.0 // indirect
golang.org/x/sync v0.19.0 // indirect
golang.org/x/sys v0.42.0 // indirect
golang.org/x/text v0.34.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20260209200024-4cfbd4190f57 // indirect
google.golang.org/grpc v1.79.2 // indirect
golang.org/x/mod v0.34.0 // indirect
golang.org/x/net v0.53.0 // indirect
golang.org/x/oauth2 v0.36.0 // indirect
golang.org/x/sync v0.20.0 // indirect
golang.org/x/sys v0.43.0 // indirect
golang.org/x/text v0.36.0 // indirect
golang.org/x/time v0.15.0 // indirect
google.golang.org/api v0.276.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20260414002931-afd174a4e478 // indirect
google.golang.org/grpc v1.80.0 // indirect
google.golang.org/protobuf v1.36.11 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
modernc.org/libc v1.67.6 // indirect
Expand Down
Loading
Loading