要求输入正确的原root密码,因为我们是新装,没有密码,所以直接回车 第二个:Switch to unix_socket authentication [Y/n] 是否切换到unix_socket 权限验证,因为这个验证不需要密码不安全,所以输入n,回车 第三个:Change the root password? [Y/n] 是否修改root密码,参考其他文章说跟系统有联系所以不建议修改,输入n...
Enter current passwordforroot(enterfornone):# 是否使用UNIX套接字认证方式进行登录认证 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?[...
接着Switch to unix_socket authentication [Y/n] 会让设置管理员密码,输入y回车,这里需要输入两次密码。然后会弹出多次询问,可以按Enter(默认是y)回答所有剩余的问题。 (5)、登录,输入 sudo mariadb -u root 回车,就可直接登录,Ubuntu 上的 MaraiDB 使用unix_socket 进行登录验证,所以可以使用操作系统的用户名...
(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] 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”
(2) Switch to unix_socket authentication [Y/n]: 答:选择 “Y” 开启 socket 认证,选择 “N” 关闭 socket 认证。 (3) Set root password: 答:选择“Y”,给 root 用户设置一个加强密码。 (4) Remove anonymous users: 答: 选择 “Y”
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 #...
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 ...
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] n ... skipping. You already ...