1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-18297 How to reset a forgotten root password

After FLUSH PRIVILEGES remember if the connection started under
--skip-grant-tables and keep it all-powerful, not a lowly anonymous.

One could use this connection to reset passwords as needed.

Also fix a crash in SHOW CREATE USER
This commit is contained in:
Sergei Golubchik
2019-02-19 12:58:11 +01:00
parent a94b20a8e0
commit 4386d93500
5 changed files with 62 additions and 40 deletions

View File

@ -882,7 +882,7 @@ mysql_rm_db_internal(THD *thd, const LEX_CSTRING *db, bool if_exists, bool silen
lock_db_routines(thd, dbnorm))
goto exit;
if (!thd->bootstrap && !rm_mysql_schema)
if (!rm_mysql_schema)
{
for (table= tables; table; table= table->next_local)
{