setup-mariadb
December 7, 2025 · View on GitHub
The missing action for MariaDB :tada:
- Simpler than containers
- Works on Linux, Mac, and Windows
- Supports different versions
Getting Started
Add it as a step to your workflow
- uses: ankane/setup-mariadb@v1
The default credentials are:
- user: the OS user (
runneron Linux and Mac,runneradminon Windows) - password: none
- host:
localhostor socket - port:
3306
Versions
Specify a version
- uses: ankane/setup-mariadb@v1
with:
mariadb-version: 11.8
Currently supports
| Version | 11.8 | 11.4 | 10.11 | 10.6 |
|---|---|---|---|---|
ubuntu-24.04 | default | ✓ | ✓ | |
ubuntu-24.04-arm | default | ✓ | ✓ | |
ubuntu-22.04 | default | ✓ | ✓ | |
ubuntu-22.04-arm | default | ✓ | ✓ | |
macos-26 | default | ✓ | ✓ | ✓ |
macos-15 | default | ✓ | ✓ | ✓ |
macos-15-intel | default | ✓ | ✓ | ✓ |
macos-14 | default | ✓ | ✓ | ✓ |
windows-2025 | default | ✓ | ✓ | ✓ |
windows-2022 | default | ✓ | ✓ | ✓ |
Test against multiple versions
strategy:
matrix:
mariadb-version: [11.8, 11.4, 10.11, 10.6]
steps:
- uses: ankane/setup-mariadb@v1
with:
mariadb-version: ${{ matrix.mariadb-version }}
Options
Create a database
- uses: ankane/setup-mariadb@v1
with:
database: testdb
Specify a user
- uses: ankane/setup-mariadb@v1
with:
user: testuser
Extra Steps
Run queries
- run: mysql -D testdb -e 'SELECT VERSION()'
Related Actions
Contributing
Everyone is encouraged to help improve this project. Here are a few ways you can help:
- Report bugs
- Fix bugs and submit pull requests
- Write, clarify, or fix documentation
- Suggest or add new features