要求输入正确的原root密码,因为我们是新装,没有密码,所以直接回车 第二个:Switch to unix_socket authentication [Y/n] 是否切换到unix_socket 权限验证,因为这个验证不需要密码不安全,所以输入n,回车 第三个:Change the root password? [Y/n] 是否修改root密码,参考其他文章说跟系统有联系所以不建议修改,输入n...
(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回车,这里需要输入两次密码。然后会弹出多次询问,可以按Enter(默认是y)回答所有剩余的问题。 (5)、登录,输入 sudo mariadb -u root 回车,就可直接登录,Ubuntu 上的 MaraiDB 使用unix_socket 进行登录验证,所以可以使用操作系统的用户名...
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”
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用户远程登录 ...
(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 #...
Switch to unix_socket authentication [Y/n] n # step 2: 更改密码,选择修改 Change the root password? [Y/n] y # step 3: 移除匿名用户,选择是 Remove anonymous users? [Y/n] y # step 4: 是否允许root远程登录,根据个人需求,因为我是测试服务器选择允许 ...
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 ...