You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/SkyCopilot Guide/README.md
+10-15Lines changed: 10 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,29 +82,24 @@ When a user asks a question, it breaks the query down into discrete steps, each
82
82
83
83
The simplest way to get started is by using our Demo DB in the "DataSource" drop down. It features a standalone MariaDB server preloaded with sample data and includes logged slow queries for testing.
84
84
85
-
You can begin by exploring some of the sample questions provided below. Alternatively, connect to any of the list of SkySQL Services you've launched in SkySQL.
85
+
You can begin by exploring some of the sample questions provided below. Alternatively, connect to any MariaDB server running on SkySQL or another platform to experiment with your own workloads.
86
86
87
-
Notethe following:
87
+
Note: The default DB user created in SkySQL (eg. “dbpgf12345678”) already has the required privileges pre-create.
88
88
89
-
90
-
* The DB user used by DBA Copilot needs the privileges as noted below. Create the following user and grant the privileges as shown below. Please note, Copilot doesn't require write privileges to your schema.
89
+
Steps to follow when using a non-SkySQL Datasource:
90
+
* First, add a Datasource and test the connectivity.
91
+
* We recommend testing with a Development/Test DB first.
92
+
* The DB user specified in this Datasource needs the privileges as noted below.
91
93
92
94
<!-- end list -->
95
+
Grant the privileges as shown below. Please note, Copilot doesn’t require write privileges to your schema. Remember to replace “your_datasource_username” with the username you specified during the Copilot Datasource creation.
96
+
93
97
94
98
```sql
95
-
CREATEUSERIF NOT EXISTS 'skyai'@'%' IDENTIFIED BY 'some_compliant_password';
96
-
GRANTSELECT, PROCESS, SHOW VIEW, SHOW DATABASES ON*.* TO `skyai`@`%`;
97
-
GRANT CREATE, DROP, CREATE VIEW ON`sky_sys_catalog`.* TO `skyai`@`%`;
99
+
GRANTSELECT, PROCESS, SHOW VIEW, SHOW DATABASES ON*.* TO `your_datasource_username`@`%`;
100
+
GRANT CREATE, DROP, CREATE VIEW ON`sky_sys_catalog`.* TO `your_datasource_username`@`%`;
98
101
```
99
102
100
-
These SQL statements:
101
-
102
-
* Create a new user named 'skyai' that can connect from any host ('%')
103
-
* Grant read-only privileges plus some system-level viewing permissions on all databases
104
-
* Grant create/drop privileges specifically on the `sky_sys_catalog` database
105
-
106
-
Remember to replace 'some\_compliant\_password' with a secure password of your choice.
107
-
108
103
### Slow Query Analysis
109
104
110
105
To analyze slow queries, you need to turn on 'Slow query' logging. The `slow_query_log` overhead is proportional to the amount of queries logged.
0 commit comments