要求输入正确的原root密码,因为我们是新装,没有密码,所以直接回车 第二个:Switch to unix_socket authentication [Y/n] 是否切换到unix_socket 权限验证,因为这个验证不需要密码不安全,所以输入n,回车 第三个:Change the root password? [Y/n] 是否修改root密码,参考其他文章说跟系统有联系所以不建议修改,输入n...
sudo apt install mariadb-server -y 查看服务状态: sudo systemctl status mariadb 结果如下即为安装成功 3. 配置Mariadb 运行以下命令进行配置: sudo mysql_secure_installation Enter current password for root (enter for none):直接按回车 Switch to unix_socket authentication [Y/n]:y 回车 Change the r...
Switch to unix_socket authentication [Y/n] n ... skipping. You already have your root account protected, so you can safely answer 'n'. Change the root password? [Y/n] n ... skipping. By default, a MariaDB installation has an anonymous user, allowing anyone to log into MariaDB ...
(2) Switch to unix_socket authentication [Y/n]: 答:选择 “Y” 开启 socket 认证,选择 “N” 关闭 socket 认证。 (3) Set root password: 答:选择“Y”,给 root 用户设置一个加强密码。 (4) Remove anonymous users: 答: 选择 “Y” (5) Disallow root login remotely: 答:选择 “Y” (6) R...
Switch to unix_socket authentication[Y/n]y # 是否设置root用户密码(设置root用户密码为:mariadblab#PWD) Change the root password?[Y/n]y New password:Re-enternewpassword:# 是否删除匿名用户 Remove anonymous users?[Y/n]y # 是否取消root用户远程登录 ...
Switch to unix_socket authentication [Y/n] y Enabled successfully! Reloading privilege tables.. ... Success!You already have your root account protected, so you can safely answer 'n'. Change the root password? [Y/n] y #是否设置root密码,输入y或者回车,并回答 New password:6a.Ajn3ihlOaF #...
(2) Switch to unix_socket authentication [Y/n]: 答:选择 “Y” 开启 socket 认证,选择 “N” 关闭 socket 认证。 (3) Set root password: 答:选择“Y”,给 root 用户设置一个加强密码。 (4) Remove anonymous users: 答: 选择 “Y”
(2) Switch to unix_socket authentication [Y/n]: 答:选择 “Y” 开启 socket 认证,选择 “N” 关闭 socket 认证。 (3) Set root password: 答:选择“Y”,给 root 用户设置一个加强密码。 (4) Remove anonymous users: 答: 选择 “Y”
Setting the root password or using the unix_socket ensures that nobody can log into the MariaDB root user without the proper authorisation. You already have your root account protected, so you can safely answer 'n'. Switch to unix_socket authentication [Y/n] y ...
Switch to unix_socket authentication [Y/n] n The next prompt asks you whether you’d like to set up a database root password. On Ubuntu, the root account for MariaDB is tied closely to automated system maintenance, so you should not change the configured authentication methods for that ...