提交合并

Signed-off-by: 萌森 <qyg2297248353@163.com>
This commit is contained in:
2024-07-17 16:30:13 +08:00
committed by qyg2297248353
commit 6c18fe434d
449 changed files with 21391 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
[mysqld]
#
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M
#
# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin
#
# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M
skip-host-cache
skip-name-resolve
datadir=/var/lib/mysql
socket=/var/run/mysqld/mysqld.sock
secure-file-priv=/var/lib/mysql-files
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
#log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
max_allowed_packet=64M
character_set_server=utf8mb4
lower_case_table_names=1
group_concat_max_len=1024000
[client]
socket=/var/run/mysqld/mysqld.sock
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/
+24
View File
@@ -0,0 +1,24 @@
additionalProperties:
formFields:
- default: "/home/mysql"
edit: true
envKey: MYSQL_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: 3306
envKey: PANEL_APP_PORT_HTTP
labelZh: 连接端口
labelEn: Connection Port
required: true
rule: paramPort
type: number
- default: ""
envKey: MYSQL_ROOT_PASSWORD
labelZh: 管理员密码
labelEn: Admin Password
random: true
required: true
rule: paramComplexity
type: password
+32
View File
@@ -0,0 +1,32 @@
version: "3.8"
networks:
1panel-network:
external: true
services:
mysql:
image: mysql:5.7.44
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
networks:
- 1panel-network
user: 1000:1000
ports:
- ${PANEL_APP_PORT_HTTP}:3306
env_file:
- /etc/1panel/envs/global.env
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ${MYSQL_ROOT_PATH}/data/:/var/lib/mysql
- ${MYSQL_ROOT_PATH}/config/my.cnf:/etc/mysql/my.cnf
- ${MYSQL_ROOT_PATH}/log:/var/log/mysql
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
command:
- --character-set-server=utf8mb4
- --lower_case_table_names=1
- --collation-server=utf8mb4_general_ci
- --explicit_defaults_for_timestamp=true
+23
View File
@@ -0,0 +1,23 @@
#!/bin/bash
if [ -f .env ]; then
source .env
# setup-1 add default values
CURRENT_DIR=$(pwd)
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
mkdir -p "$MYSQL_ROOT_PATH"
mkdir -p "$MYSQL_ROOT_PATH/config"
mkdir -p "$MYSQL_ROOT_PATH/data"
mkdir -p "$MYSQL_ROOT_PATH/log"
cp ./config/my.cnf "$MYSQL_ROOT_PATH/config/my.cnf"
chown -R 1000:1000 "$MYSQL_ROOT_PATH"
echo "Check Finish."
else
echo "Error: .env file not found."
fi
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
if [ -f .env ]; then
source .env
# setup-1 add default values
CURRENT_DIR=$(pwd)
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi
+20
View File
@@ -0,0 +1,20 @@
[mysqld]
host_cache_size=0
skip-name-resolve
datadir=/var/lib/mysql
socket=/var/run/mysqld/mysqld.sock
user=mysql
mysql_native_password=ON
character_set_server=utf8mb4
collation_server=utf8mb4_unicode_ci
lower_case_table_names=1
group_concat_max_len=1024000
log_bin_trust_function_creators=1
secure_file_priv=
pid_file=/var/run/mysqld/mysqld.pid
[client]
socket=/var/run/mysqld/mysqld.sock
!includedir /etc/mysql/conf.d/
+24
View File
@@ -0,0 +1,24 @@
additionalProperties:
formFields:
- default: "/home/mysql"
edit: true
envKey: MYSQL_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: 3306
envKey: PANEL_APP_PORT_HTTP
labelZh: 连接端口
labelEn: Connection Port
required: true
rule: paramPort
type: number
- default: ""
envKey: MYSQL_ROOT_PASSWORD
labelZh: 管理员密码
labelEn: Admin Password
random: true
required: true
rule: paramComplexity
type: password
+31
View File
@@ -0,0 +1,31 @@
version: "3.8"
networks:
1panel-network:
external: true
services:
mysql:
image: mysql:8.4.1
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
networks:
- 1panel-network
user: 1000:1000
ports:
- ${PANEL_APP_PORT_HTTP}:3306
env_file:
- /etc/1panel/envs/global.env
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ${MYSQL_ROOT_PATH}/data:/var/lib/mysql
- ${MYSQL_ROOT_PATH}/config/my.cnf:/etc/my.cnf
- ${MYSQL_ROOT_PATH}/log:/var/log/mysql
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
- --mysql-native-password=ON
+23
View File
@@ -0,0 +1,23 @@
#!/bin/bash
if [ -f .env ]; then
source .env
# setup-1 add default values
CURRENT_DIR=$(pwd)
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
mkdir -p "$MYSQL_ROOT_PATH"
mkdir -p "$MYSQL_ROOT_PATH/config"
mkdir -p "$MYSQL_ROOT_PATH/data"
mkdir -p "$MYSQL_ROOT_PATH/log"
cp ./config/my.cnf "$MYSQL_ROOT_PATH/config/my.cnf"
chown -R 1000:1000 "$MYSQL_ROOT_PATH"
echo "Check Finish."
else
echo "Error: .env file not found."
fi
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
if [ -f .env ]; then
source .env
# setup-1 add default values
CURRENT_DIR=$(pwd)
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi
+18
View File
@@ -0,0 +1,18 @@
# MySQL
![MySQL](https://file.lifebus.top/imgs/mysql_logo.svg)
MySQL 是一个关系型数据库管理系统,由瑞典MySQL AB 公司开发,目前属于Oracle 公司。
## 特性
+ 使用C和C++编写,并使用了多种编译器进行测试,保证源代码的可移植性。
+ 支持AIX、BSDi、FreeBSD、HP-UX、Linux、Mac OS、Novell NetWare、NetBSD、OpenBSD、OS/2 Wrap、Solaris、Windows等多种操作系统。
+ 为多种编程语言提供了API。这些編程语言包括C、C++、C#、VB.NET、Delphi、Eiffel、Java、Perl、PHP、Python、Ruby和Tcl等。
+ 支持多线程,充分利用CPU资源,支持多用户。
+ 优化的SQL查询算法,有效地提高查询速度。
+ 既能够作为一个单独的应用程序在客户端服务器网络环境中执行,也能够作为一个程序库而嵌入到其他的软件中。
+ 提供多语言支持,常见的编码如中文的GB 2312、BIG5,日文的Shift JIS等都可以用作数据表名和数据列名。
+ 提供TCP/IP、ODBC和JDBC等多种数据库连接途径。
+ 提供用于管理、检查、優化数据库操作的管理工具。
+ 可以处理拥有上千万条记录的大型数据库。
+17
View File
@@ -0,0 +1,17 @@
name: MySQL
title: 开源关系型数据库
description: 开源关系型数据库
additionalProperties:
key: mysql
name: MySQL
tags:
- Database
- Local
shortDescZh: 开源关系型数据库
shortDescEn: Open source relational database management system
type: runtime
crossVersionUpdate: true
limit: 0
website: https://www.mysql.com/
github: https://github.com/mysql/mysql-server/
document: https://dev.mysql.com/doc/
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB