Update user
documentation
The documentation mentions a bug in MariaDB 10.2.9 that causes problems with the new users query.
This commit is contained in:
parent
8c2f6aafcc
commit
1689fe7f48
@ -909,30 +909,12 @@ GRANT SELECT ON mysql.roles_mapping TO 'maxscale'@'maxscalehost';
|
||||
GRANT SHOW DATABASES ON *.* TO 'maxscale'@'maxscalehost';
|
||||
```
|
||||
|
||||
MariaDB MaxScale will execute the following query to retrieve the users. If you
|
||||
suspect that you might have problems with grants, it is recommended to run this
|
||||
query and see the results it returns.
|
||||
See [MaxScale Troubleshooting](https://mariadb.com/kb/en/mariadb-enterprise/maxscale-troubleshooting/)
|
||||
for more information on how to troubleshoot authentication related problems.
|
||||
|
||||
```
|
||||
SELECT DISTINCT
|
||||
user.user AS user,
|
||||
user.host AS host,
|
||||
user.password AS password,
|
||||
concat(user.user,user.host,user.password,
|
||||
IF((user.Select_priv+0)||find_in_set('Select',Coalesce(tp.Table_priv,0)),'Y','N') ,
|
||||
COALESCE( db.db,tp.db, '')) AS userdata,
|
||||
user.Select_priv AS anydb,
|
||||
COALESCE( db.db,tp.db, NULL) AS db
|
||||
FROM
|
||||
mysql.user LEFT JOIN
|
||||
mysql.db ON user.user=db.user AND user.host=db.host LEFT JOIN
|
||||
mysql.tables_priv tp ON user.user=tp.user AND user.host=tp.host
|
||||
WHERE user.user IS NOT NULL AND user.user <> ''
|
||||
```
|
||||
|
||||
In versions of MySQL 5.7.6 and later, the `Password` column was replaced by
|
||||
`authentication_string`. Change `user.password` above with
|
||||
`user.authentication_string`.
|
||||
**Note:** Due to a bug in MariaDB 10.2.9, if you see a
|
||||
`SELECT command denied to user ... for table 'users'`
|
||||
error, grant `SELECT ON mysql.*` to this user.
|
||||
|
||||
<a id="passwd"></a>
|
||||
#### `password`
|
||||
|
Loading…
x
Reference in New Issue
Block a user