首先呢,我想要承认说,我是一个小白,这里的记录是我自己的一个笔记。大神就直接跳过吧。 mysql_secure_installation Set root password? [Y/n] y New password: Re-enter new password: Password updated successfully! Reloading privilege tables.. … Success! By default, a MariaDB installation has an anonymous