3 ms·
https://dev.mysql.com/doc/refman/8.0/en/default-privileges.html https://dev.mysql.com/doc/refman/8.0/en/default-privileges.h... > Installation of MySQL creates
by viraptor 5y ago
https://dev.mysql.com/doc/refman/8.0/en/default-privileges.html https://dev.mysql.com/doc/refman/8.0/en/default-privileges.h...
> Installation of MySQL creates only a 'root'@'localhost' superuser account that has all privileges and can do anything.
It's only a local account. Sure, it would be great to have a password on it, but it's not "a completely open root account".
- johannes1234321 5y ago> Sure, it would be great to have a password on it It has a password, which the user has to change, before they can do anything else. From that same page you linked: """ For data directory initialization performed manually using mysqld --initialize, mysqld generates an initial random password, marks it expired, and writes it to the server error log. """
- slim 5y agoThat documentation is outdated. Debian does not prompt you for a password, it creates a root account but you can't connect to the database using "mysql -uroot" you can only use it if you are root on the server (I forgot how they do the trick)