Skip to content

Commit 1e7c454

Browse files
authored
Update README.md
1 parent efe2f24 commit 1e7c454

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

docs/SkyCopilot Guide/README.md

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -82,29 +82,24 @@ When a user asks a question, it breaks the query down into discrete steps, each
8282

8383
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.
8484

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.
8686

87-
Note the following:
87+
Note: The default DB user created in SkySQL (eg. “dbpgf12345678”) already has the required privileges pre-create.
8888

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.
9193

9294
<!-- 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+
9397

9498
```sql
95-
CREATE USER IF NOT EXISTS 'skyai'@'%' IDENTIFIED BY 'some_compliant_password';
96-
GRANT SELECT, PROCESS, SHOW VIEW, SHOW DATABASES ON *.* TO `skyai`@`%`;
97-
GRANT CREATE, DROP, CREATE VIEW ON `sky_sys_catalog`.* TO `skyai`@`%`;
99+
GRANT SELECT, PROCESS, SHOW VIEW, SHOW DATABASES ON *.* TO `your_datasource_username`@`%`;
100+
GRANT CREATE, DROP, CREATE VIEW ON `sky_sys_catalog`.* TO `your_datasource_username`@`%`;
98101
```
99102

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-
108103
### Slow Query Analysis
109104

110105
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

Comments
 (0)