Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Improve create instance form UX. Set max width for the connection result and break link for the GRANT_STATEMENT

天舟51f5bb629640
diff --git a/frontend/src/components/InstanceForm.vue b/frontend/src/components/InstanceForm.vue
index cd5c824466..2e993e353e 100644
--- a/frontend/src/components/InstanceForm.vue
+++ b/frontend/src/components/InstanceForm.vue
@@ -258,7 +258,7 @@ input[type="number"] {
</div>
<div
v-if="state.connectionResult && state.connectionResult != 'OK'"
- class="flex items-center text-error"
+ class="flex items-center text-error w-128"
>
{{ state.connectionResult }}
</div>
@@ -337,7 +337,7 @@ import {
import isEmpty from "lodash-es/isEmpty";
const GRANT_STATEMENT =
- "CREATE USER bytebase@'%' IDENTIFIED BY '{{YOUR_SECRET_PWD}}';\nGRANT ALTER, ALTER ROUTINE, CREATE, CREATE ROUTINE, CREATE USER, CREATE VIEW, DELETE, DROP, EXECUTE, INDEX, PROCESS, REFERENCES, SELECT, SHOW DATABASES, SHOW VIEW, TRIGGER, UPDATE, USAGE ON *.* to bytebase@'%';";
+ "CREATE USER bytebase@'%' IDENTIFIED BY '{{YOUR_SECRET_PWD}}';\n\nGRANT ALTER, ALTER ROUTINE, CREATE, CREATE ROUTINE, CREATE USER, \nCREATE VIEW, DELETE, DROP, EXECUTE, INDEX, PROCESS, REFERENCES, \nSELECT, SHOW DATABASES, SHOW VIEW, TRIGGER, UPDATE, USAGE \nON *.* to bytebase@'%';";
interface LocalState {
originalInstance?: Instance;