NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQLSERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MySQL to secure it, we'll need the current,password for the root user. If you've just installed MySQL, and,you haven't set the root password yet, the password will be blank,,so you should just press enter here.Enter current password for root (enter for none):?#初次运行直接回车,因为root用户没有密码.
OK, successfully used password, moving on,Setting the root password ensures that nobody can log into the MySQL,root user without the proper authorisation.,Set root password? [Y/n] Y#是否设置root用户密码,输入Y.
Success!Normally, root should only be allowed to connect from 'localhost'.? Thisensures that someone cannot guess at the root password from the network.Disallow root login remotely? [Y/n] Y?#是否禁止root远程登录,根据自己的需求选择Y/n并回车建议禁止.
Success!By default, MariaDB comes with a database named 'test' that anyone canaccess.? This is also intended only for testing, and should be removedbefore moving into a production environment.Remove test database and access to it? [Y/n] Y?#是否删除test数据库,直接回车或Y.
mysql在linux下有三种安装方式,依照难以程度排序:
安装mysql方法/步骤:
方法/步骤
以上就是土嘎嘎小编为大家整理的mysql怎么安装相关主题介绍,如果您觉得小编更新的文章只要能对粉丝们有用,就是我们最大的鼓励和动力,不要忘记讲本站分享给您身边的朋友哦!!