mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 21:24:20 +01:00
Don't delete the mariadb.sys yser (#1450)
* Don't delete the mariadb.sys yser Since 10.4.13 `mysql.user` (and probably others) have a new definer `mariadb.sys` instead of `mysql.sys` that should be added to the list of users which are retained. The Docker library has fixed their bootstrap code in https://github.com/docker-library/mariadb/pull/306 - this change applies the same fix here. * Bump version * Update CHANGELOG.md
This commit is contained in:
@@ -45,12 +45,12 @@ if bashio::var.true "${NEW_INSTALL}"; then
|
||||
DELETE FROM
|
||||
mysql.user
|
||||
WHERE
|
||||
user NOT IN ('mysql.sys', 'mysqlxsys', 'root', 'mysql', 'proxies_priv')
|
||||
user NOT IN ('mysql.sys', 'mariadb.sys', 'mysqlxsys', 'root', 'mysql', 'proxies_priv')
|
||||
OR host NOT IN ('localhost');
|
||||
DELETE FROM
|
||||
mysql.proxies_priv
|
||||
WHERE
|
||||
user NOT IN ('mysql.sys', 'mysqlxsys', 'root', 'mysql', 'proxies_priv')
|
||||
user NOT IN ('mysql.sys', 'mariadb.sys', 'mysqlxsys', 'root', 'mysql', 'proxies_priv')
|
||||
OR host NOT IN ('localhost');
|
||||
DROP DATABASE IF EXISTS test;
|
||||
FLUSH PRIVILEGES;
|
||||
|
||||
Reference in New Issue
Block a user