通常,只允许root连接“本地主机”。这确保了别人不能通过网络访问你的root用户,我是本地安装的 mysql,因此就选择y,就是不允许root用户远程连接

3.5 删除test数据库

By default, MySQL comes with a database named 'test' that
anyone can access. This is also intended only for testing,
and should be removed before moving into a production
environment.


Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y
 - Dropping test database...
Success.
 class="hljs-button signin active" data-title="登录复制" data-report-click="{"spm":"1001.2101.3001.4334"}">

默认情况下,MySQL附带了一个名为“test”的数据库,任何人都可以访问。这也仅用于测试,在投入生产之前,应将其删除。
我选择的删除这个test库

3.6 重新载入权限表

Reloading the privilege tables will ensure that all changes
made so far will take effect immediately.

Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y
Success.

All done!
 class="hljs-button signin active" data-title="登录复制" data-report-click="{"spm":"1001.2101.3001.4334"}">

重新加载权限表将确保迄今为止所做的所有更改立即生效。
选择y,之后就会重新刷新权限,至此mysql就安装完成了

data-report-view="{"mod":"1585297308_001","spm":"1001.2101.3001.6548","dest":"https://blog.csdn.net/chenpy/article/details/142644556","extend1":"pc","ab":"new"}">>
注:本文转载自blog.csdn.net的炼丹狮的文章"https://blog.csdn.net/chenpy/article/details/142644556"。版权归原作者所有,此博客不拥有其著作权,亦不承担相应法律责任。如有侵权,请联系我们删除。
复制链接

评论记录:

未查询到任何数据!