I just installed mariadb 10.6 and can't understand...
SELECT Host,User,Password FROM mysql.user;
mariadb.sys@localhost
password is empty.root@localhost
password hashed.mysql@localhost
password has "invalid" value in cell.
SHOW CREATE USER 'mariadb.sys'@localhost\G;
CREATE USER `mariadb.sys`@`localhost` ACCOUNT LOCK PASSWORD EXPIRE
SHOW CREATE USER 'root'@localhost\G;
CREATE USER `root`@`localhost` IDENTIFIED
VIA mysql_native_password USING '***' OR unix_socket
SHOW CREATE USER 'mysql'@localhost\G;
CREATE USER `mysql`@`localhost` IDENTIFIED
VIA mysql_native_password USING 'invalid' OR unix_socket
- What for default users are?
root@localhost
= for me,mariadb.sys@localhost
= for mariadb.sys system,mysql@localhost
= for mysql user and for linux system. - I used
mysql_secure_installation
command. Do i really need do anything else? Is everything OK with secure? - Can I delete
mariadb.sys@localhost
ormysql@localhost
users? - Why do I need to setup password for
mysql@localhost
user? - "invalid" in password cell means not password, but mariadb "secure feature"?
ACCOUNT LOCK PASSWORD EXPIRE
what is this?- As far as I understand I can't and I don't need to setup password for
mariadb.sys@localhost
?
Thank you!
Versions:
- Kernel: linux510 (Linux 5.10.56-1)
- Distro: Manjaro 21.1.0 (Arch Linux)
- MariaDB Version: MariaDB 10.6.4