From 79f03f12c2587d35fdfe89d677b6eee15e4aa935 Mon Sep 17 00:00:00 2001 From: liang-ys Date: Tue, 28 Apr 2026 14:57:04 +0800 Subject: [PATCH] =?UTF-8?q?[add]=E5=A2=9E=E5=A4=A7mysql=E7=9A=84=E5=85=81?= =?UTF-8?q?=E8=AE=B8=E5=8C=85=E7=9A=84=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- installer/others/readme.txt | 6 ++- installer/others/z1-oe-mysql-custom.cnf | 66 +++++++++++++++++++++++++ 2 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 installer/others/z1-oe-mysql-custom.cnf diff --git a/installer/others/readme.txt b/installer/others/readme.txt index a0c9a148..6e20745c 100644 --- a/installer/others/readme.txt +++ b/installer/others/readme.txt @@ -6,4 +6,8 @@ window环境下的安装卸载脚本:StartService.bat 和 StopService.bat 在麒麟环境下,由于定制化的操作系统中polkit版本较低只支持 .plka文件机制管理权限,而非js的规则文件:allow-program-kylin.pkla -针对欧拉以非root权限登入polkit .js的规则文档:51-custom-authentication.rules \ No newline at end of file +针对欧拉以非root权限登入polkit .js的规则文档:51-custom-authentication.rules + +针对window系统 添加注册表脚本:registry_software.bat + +z1-oe-mysql-custom.cnf 针对欧拉环境下使用mysql服务端和客户端数据导入导出配置文件 \ No newline at end of file diff --git a/installer/others/z1-oe-mysql-custom.cnf b/installer/others/z1-oe-mysql-custom.cnf new file mode 100644 index 00000000..39cff9b3 --- /dev/null +++ b/installer/others/z1-oe-mysql-custom.cnf @@ -0,0 +1,66 @@ + +#**************************************************************************************** +[client] +default-character-set = utf8mb4 + +#**************************************************************************************** +# This group is not read by mysql client library, +# If you use the same .cnf file for MySQL and MariaDB, +# use it for MariaDB-only client options +[client-mariadb] + +#**************************************************************************************** +# this is read by the standalone daemon and embedded servers +[server] +bind-address = 0.0.0.0 +port = 3306 + +character-set-server = utf8mb4 +collation-server = utf8mb4_general_ci +lower_case_table_names = 1 + +default-storage-engine = INNODB +thread_cache_size = 8 +max_connections = 512 +max_connect_errors = 1000 +max_allowed_packet = 256M +query_cache_size = 16M +sql-mode = "NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" + +#this is the Database Import And Export Configurations +secure_file_priv = "" +local_infile = ON +net_buffer_length = 16384 + +#** table_cache = 256 +#** tmp_table_size = 18M + +#*** MyISAM Specific options *** +key_buffer_size = 128M +myisam_max_sort_file_size = 64G +myisam_sort_buffer_size = 35M + +#** read_buffer_size = 64K +#** read_rnd_buffer_size = 256K +#** sort_buffer_size = 256K + +#*** INNODB Specific options *** +#** innodb_file_per_table = 1 +innodb_buffer_pool_size = 128M +innodb_flush_log_at_trx_commit = 2 + +#** innodb_additional_mem_pool_size = 2M +#** innodb_log_buffer_size = 1M +#** innodb_log_file_size = 24M +#** innodb_thread_concurrency = 8 + +#**************************************************************************************** +# 关闭加密,降低资源开销 +[mariadb] +aria-encrypt-tables = off +encrypt-binlog = off +encrypt-tmp-disk-tables = off +encrypt-tmp-files = off +loose-innodb-encrypt-log = off +loose-innodb-encrypt-tables = off +