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: README-MULTI-DB.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,7 @@ To enable multi-DB mode, simply leave the `MYSQL_DB` environment variable empty:
34
34
2.**Query Any Database**: You can execute queries against any database to which the MySQL user has access.
35
35
36
36
3.**Schema Qualification Required**: When working in multi-DB mode, you should use fully qualified table names with schema/database prefixes:
37
+
37
38
```sql
38
39
-- Use fully qualified table names
39
40
SELECT*FROMdatabase_name.table_name;
@@ -46,6 +47,7 @@ To enable multi-DB mode, simply leave the `MYSQL_DB` environment variable empty:
46
47
4.**Automatic Read-Only Mode**: For safety, multi-DB mode enforces read-only operations by default. This can be customized using schema-specific permissions (see below).
47
48
48
49
5.**Database Exploration**: You can explore databases using commands like:
50
+
49
51
```sql
50
52
-- List all databases
51
53
SHOW DATABASES;
@@ -72,14 +74,15 @@ This new feature allows fine-grained control over which operations are allowed o
72
74
73
75
Set the following environment variables with a comma-separated list of schema:permission pairs:
0 commit comments