【正文】
thatanyone can access. This is also intended only for testing,and should be removed before moving into a productionenvironment.Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y 刪除 test 庫及相應(yīng)權(quán)限 Dropping test database...Success. Removing privileges on test database...Success.Reloading the privilege tables will ensure that all changesmade so far will take effect immediately.Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y 重新加載權(quán)限表使設(shè)置生效 Success.All done!2重啟服務(wù)器,檢測 mysql 是否能開機(jī)自動(dòng)啟動(dòng):[rootcpmysql01 ~] reboot 。. This ensures that someone cannot guess atthe root password from the network.Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y 一般不允許 root 遠(yuǎn)程登錄,可添加普通用戶, 然后設(shè)置允許遠(yuǎn)程登錄 Success.By default, MySQL es with a database named 39。Securing the MySQL server deployment.Enter password for user root: VALIDATE PASSWORD PLUGIN can be used to test passwordsand improve security. It checks the strength of passwordand allows the users to set only those passwords which aresecure enough. Would you like to setup VALIDATE PASSWORD plugin?Press y|Y for Yes, any other key for No: n 密碼復(fù)雜度插件,這里設(shè)置不需要nUsing existing password for root.Change the password for root ? ((Press y|Y for Yes, any other key for No) : n 上已為 root 設(shè)置了密碼,此處可輸 n ... skipping.By default, a MySQL installation has an anonymous user,allowing anyone to log into MySQL without having to havea user account created for them. This is intended only fortesting, and to make the installation go a bit smoother.You should remove them before moving into a productionenvironment.Remove anonymous users? (Press y|Y for Yes, any other key for No) : y 刪除匿名用戶 Success.Normally, root should only be allowed to connect from39。2運(yùn)行安全設(shè)置腳本,強(qiáng)烈建議生產(chǎn)服務(wù)器使用(可選): [rootcpmysql01 ~] /usr/local/mysql/bin/mysql_secure_installation mys