Логинимся под рутом
Пароль как всегда невидимый.
root ~ # mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 50535903 Server version: 10.3.22-MariaDB MariaDB Server Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
Выбираем системную базу данных MySQL
MariaDB [(none)]> use mysql; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed
Смотрим всех пользователей и их хосты
MariaDB [mysql]> select user,host from user; +---------------+-----------+ | user | host | +---------------+-----------+ | root | 127.0.0.1 | | root | ::1 | | romasa_i | localhost | | root | localhost | +---------------+-----------+ 4 rows in set (0.000 sec)
Удаляем пользователя
А именно пользователя romasa_i
MariaDB [mysql]> drop user romasa_i@localhost; Query OK, 0 rows affected (0.001 sec)