✨ feat(mysql): update mysql versions to latest releases
- upgrade mysql 8.0.43 to 8.0.44 - upgrade mysql 8.4.6 to 8.4.7
This commit is contained in:
14
apps/mysql/8.4.7/conf/my.cnf
Normal file
14
apps/mysql/8.4.7/conf/my.cnf
Normal file
@@ -0,0 +1,14 @@
|
||||
[mysqld]
|
||||
host-cache-size=0
|
||||
skip-name-resolve
|
||||
datadir=/var/lib/mysql
|
||||
socket=/var/run/mysqld/mysqld.sock
|
||||
secure-file-priv=/var/lib/mysql-files
|
||||
user=mysql
|
||||
|
||||
pid-file=/var/run/mysqld/mysqld.pid
|
||||
lower_case_table_names=1
|
||||
[client]
|
||||
socket=/var/run/mysqld/mysqld.sock
|
||||
|
||||
!includedir /etc/mysql/conf.d/
|
||||
34
apps/mysql/8.4.7/data.yml
Normal file
34
apps/mysql/8.4.7/data.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: mysql
|
||||
envKey: PANEL_DB_ROOT_PASSWORD
|
||||
labelEn: Root Password
|
||||
labelZh: root用户密码
|
||||
random: true
|
||||
required: true
|
||||
type: password
|
||||
label:
|
||||
en: Root Password
|
||||
ja: ルートパスワード
|
||||
ms: Kata Laluan Root
|
||||
pt-br: Senha Root
|
||||
ru: Пароль Root
|
||||
ko: 루트 비밀번호
|
||||
zh-Hant: Root 密碼
|
||||
zh: Root 密码
|
||||
- default: 3306
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
label:
|
||||
en: Port
|
||||
ja: ポート
|
||||
ms: Port
|
||||
pt-br: Porta
|
||||
ru: Порт
|
||||
ko: 포트
|
||||
zh-Hant: 埠
|
||||
zh: 端口
|
||||
22
apps/mysql/8.4.7/docker-compose.yml
Normal file
22
apps/mysql/8.4.7/docker-compose.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
services:
|
||||
mysql:
|
||||
image: mysql:8.4.7
|
||||
container_name: ${CONTAINER_NAME}
|
||||
restart: always
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: ${PANEL_DB_ROOT_PASSWORD}
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:3306
|
||||
volumes:
|
||||
- ./data/:/var/lib/mysql
|
||||
- ./conf/my.cnf:/etc/my.cnf
|
||||
- ./log:/var/log/mysql
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
9
apps/mysql/8.4.7/scripts/upgrade.sh
Normal file
9
apps/mysql/8.4.7/scripts/upgrade.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
CONFIG_FILE="./conf/my.cnf"
|
||||
|
||||
if grep -q "skip-host-cache" "$CONFIG_FILE"; then
|
||||
sed -i '/skip-host-cache/d' "$CONFIG_FILE"
|
||||
else
|
||||
echo "'skip-host-cache' does not exist in the configuration file."
|
||||
fi
|
||||
Reference in New Issue
Block a user