shogo82148/actions-setup-mysql
shogo82148/actions-setup-mysql has 71 GitHub stars and 8 forks. Star changes are not measured yet. Last checked 2026-11-14 09:09 UTC. Last push 2026-11-13.
측정된 스타 증가
- in 24h
- 기록 수집 중
- in 7 days
- 기록 수집 중
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
The distribution. The valid values are mysql or mariadb. The default value is mysql.
데이터README.md
Originalactions-setup-mysql
This action sets up a MySQL database for use in actions by:
- download a version of MySQL or MariaDB
- start mysqld
Motivation
- GitHub-Hosted Runners have MySQL Server, but only Linux.
- GitHub Actions supports Docker services, and there is the official MySQL image. But it works on only Linux.
- Some utils for MySQL (such as MySQL::Partition, App::Prove::Plugin::MySQLPool, Test::mysqld) requires MySQL installed on the local host.
Usage
steps:
- uses: actions/checkout@v4
- uses: shogo82148/actions-setup-mysql@v1
with:
mysql-version: "8.4"
- run: mysql -uroot -e 'SELECT version()'
Configuration
mysql-version
The version of MySQL or MariaDB.
Available Versions are:
- MySQL
26.10(latest)26.79.7(LTS)8.4(LTS)8.0
- MariaDB
12.3(latest)11.8(LTS)11.4(LTS)10.11(LTS)
distribution
The distribution. The valid values are mysql or mariadb.
The default value is mysql.
You can use mysql- and mariadb- prefixes in mysql-version instead of the distribution input.
For example, the following two workflows install MariaDB 12.3.
- uses: shogo82148/actions-setup-mysql@v1
with:
distribution: "mariadb"
mysql-version: "12.3"
- uses: shogo82148/actions-setup-mysql@v1
with:
mysql-version: "mariadb-12.3"
auto-start
If it is true, the action starts the MySQL server.
If it is false, the action doesn't start the MySQL sever.
You need to execute the mysqld command yourself.
The default value is true.
my-cnf
my.cnf settings for mysqld.
It uses the same syntax as my.cnf.
Example:
- uses: shogo82148/actions-setup-mysql@v1
with:
mysql-version: "8.4"
my-cnf: |
innodb_log_file_size=256MB
innodb_buffer_pool_size=512MB
max_allowed_packet=16MB
max_connections=50
local_infile=1
root-password
The password for the root user.
user
The name of the new user.
password
The password for the new user.
Outputs
base-dir
The directory under which the mysql database is being created.
It contains:
etc/my.cnftmp/mysqld.logtmp/mysqld.pidtmp/mysql.sockvar: The default path ofdatadirvar/ca.pem: The root certificate of the certification authority for SSL/TLSvar/server-cert.pem: The server certificate for SSL/TLSvar/server-key.pem: The server key for SSL/TLS
Here are some examples:
- id: setup-mysql
uses: shogo82148/actions-setup-mysql@v1
with:
mysql-version: "8.4"
- name: connect via unix domain socket
run: mysql -uroot \
--protocol=SOCKET \
--socket=${{ steps.setup-mysql.outputs.base-dir }}/tmp/mysql.sock
-e 'SELECT version()'
- name: configure the root certificate for connecting via SSL/TLS.
run: mysql -uroot \
--ssl --ssl-mode=REQUIRED \
--ssl-ca=${{ steps.setup-mysql.outputs.base-dir }}/var/ca.pem \
-e 'SELECT version()'
Environment Values
MYSQL_HOME
The path to the directory in which the server-specific my.cnf file resides.
LIBMYSQL_PLUGIN_DIR
Directory in which to look for client plugins.
관련 프로젝트 살펴보기
Asabeneh/30-Days-Of-Python
30 Days of Python 프로그래밍 챌린지는 Python 프로그래밍 언어를 30일 동안 배우기 위한 단계별 가이드입니다. 이 챌린지는 100일 이상 걸릴 수 있습니다. 자신의 속도에 맞춰 진행하세요. 다음 동영상도 도움이 될 수 있습니다: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,719 스타grafana/grafana
개방적이고 조합 가능한 옵저버빌리티 및 데이터 시각화 플랫폼입니다. Prometheus, Loki, Elasticsearch, InfluxDB, Postgres 등 여러 소스의 메트릭, 로그, 트레이스를 시각화합니다.
77,897 스타redis/redis
실시간 데이터 기반 애플리케이션을 구축하는 개발자에게 Redis는 가장 선호되고, 가장 빠르며, 기능이 가장 풍부한 캐시, 데이터 구조 서버이자 문서 및 벡터 쿼리 엔진입니다.
77,491 스타apache/superset
Apache Superset는 데이터 시각화 및 데이터 탐색 플랫폼입니다.
75,523 스타