[MXS-4258] Add permission for SHOW DATABASES for Xpand Service to work Created: 2022-08-24 Updated: 2022-08-29 Resolved: 2022-08-29 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | Documentation, xpandmon |
| Affects Version/s: | 6.4.1 |
| Fix Version/s: | 6.4.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Manjinder Nijjar | Assignee: | Johan Wikman |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
three node Xpand 6.0.5 with Maxscale 6.4.1 |
||
| Sprint: | MXS-SPRINT-165 |
| Description |
|
We should add following permission as a must have for Xpand service to work. Without it, tools like sysbench throw "Unknown database" error even though database exists on Xpand backend. I could not find this permission in the required grants in the docs.
I get following error when I run Sysbench via maxscale on Xpand (without SHOW DATABASES) even though database exists on the server:
Database Exists on Xpand server:
All tools work fine once SHOW DATABASE permissions are granted. |
| Comments |
| Comment by Johan Wikman [ 2022-08-25 ] |
|
I suppose you use the same user/password for both the Xpand monitor and the service? It's the service user that needs the SHOW DATABASE grant, the monitor user does not need that. However, if you use the same user for both the service and the monitor, this distinction is blurred. But yes, this paragraph must be updated https://mariadb.com/kb/en/mariadb-maxscale-6-authentication-modules/#xpand |
| Comment by Manjinder Nijjar [ 2022-08-25 ] |
|
johan.wikmanThanks for the explanation. I have updated the bug. |