From b8d2d4e7afcdde17b6f6f5a5c3b8cf8c2bddef61 Mon Sep 17 00:00:00 2001
From: ssongliu <73214554+ssongliu@users.noreply.github.com>
Date: Mon, 9 Oct 2023 11:48:19 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20MySQL=20=E6=80=A7=E8=83=BD=E5=8F=82?=
=?UTF-8?q?=E6=95=B0=E5=8C=BA=E5=88=86=E7=89=88=E6=9C=AC=E6=98=BE=E7=A4=BA?=
=?UTF-8?q?=20(#2474)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/src/views/database/mysql/setting/index.vue | 2 +-
frontend/src/views/database/mysql/setting/variables/index.vue | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/frontend/src/views/database/mysql/setting/index.vue b/frontend/src/views/database/mysql/setting/index.vue
index 09997fe2c..23a410b11 100644
--- a/frontend/src/views/database/mysql/setting/index.vue
+++ b/frontend/src/views/database/mysql/setting/index.vue
@@ -304,7 +304,7 @@ const loadVariables = async () => {
variablesRef.value!.acceptParams({
type: props.type,
database: props.database,
- mysqlVersion: mysqlVersion.value,
+ version: mysqlVersion.value,
variables: res.data,
});
};
diff --git a/frontend/src/views/database/mysql/setting/variables/index.vue b/frontend/src/views/database/mysql/setting/variables/index.vue
index b39e9caf4..76c344926 100644
--- a/frontend/src/views/database/mysql/setting/variables/index.vue
+++ b/frontend/src/views/database/mysql/setting/variables/index.vue
@@ -76,7 +76,7 @@
{{ $t('database.readRndBufferSizeHelper') }}
-
+
MB
@@ -303,7 +303,7 @@ const onSaveVariables = async () => {
};
const showCacheSize = () => {
- return currentDB.version.startsWith('5.7');
+ return currentDB.version?.startsWith('5.7');
};
defineExpose({
acceptParams,