cd /usr/local/mysql/bin
./mysql_secure_installation (安全初始化)
请输入root口令,你没有直接回车
Enter current password for root (enter for none):
是否设置root口令
Set root password? [Y/n] y
New password:
Re-enter new password:
是否删除匿名账户
Remove anonymous users? [Y/n] y
是否禁用root用户远程连接
Disallow root login remotely? [Y/n] n
是否删除test测试文件
Remove test database and access to it? [Y/n] y
是否生效保存
Reload privilege tables now? [Y/n] y